From patchwork Fri Apr 14 12:03:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 9681153 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8ABD460132 for ; Fri, 14 Apr 2017 12:03:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BA9E28649 for ; Fri, 14 Apr 2017 12:03:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FD81286B2; Fri, 14 Apr 2017 12:03:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01628286BE for ; Fri, 14 Apr 2017 12:03:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752863AbdDNMDW (ORCPT ); Fri, 14 Apr 2017 08:03:22 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:36798 "EHLO epoutp02.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752239AbdDNMDM (ORCPT ); Fri, 14 Apr 2017 08:03:12 -0400 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by epoutp02.samsung.com (KnoxPortal) with ESMTP id 20170414120310epoutp022afbb068ff325f2ab9a59cf948e21541~1Qfk9GGhj2396623966epoutp02f; Fri, 14 Apr 2017 12:03:10 +0000 (GMT) Received: from epsmges5p5.samsung.com (unknown [182.195.42.89]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20170414120310epcas5p3f784b7c53bca5a87a7e2b7b18d1eed1d~1QfkzHAr11843518435epcas5p3x; Fri, 14 Apr 2017 12:03:10 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p5.samsung.com (EPCPMTA) with SMTP id 2C.51.06094.E7AB0F85; Fri, 14 Apr 2017 21:03:10 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20170414120309epcas5p2701f4ac334e1281359bfa05f6f82eae2~1QfkKZVI_0469204692epcas5p2X; Fri, 14 Apr 2017 12:03:09 +0000 (GMT) X-AuditID: b6c32a59-f79166d0000017ce-e0-58f0ba7ecc42 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 89.35.05013.D7AB0F85; Fri, 14 Apr 2017 21:03:09 +0900 (KST) Received: from amdc3058.localnet ([106.120.53.102]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OOE00FC6ET4GUA0@mmp1.samsung.com>; Fri, 14 Apr 2017 21:03:09 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Linus Torvalds Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [GIT PULL] fbdev fixes for v4.11-rc6 Date: Fri, 14 Apr 2017 14:03:03 +0200 Message-id: <2635631.Mn9kkJb8Ue@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset="us-ascii" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNIsWRmVeSWpSXmKPExsWy7bCmpm7drg8RBm2LWSyufH3PZnGi7wOr xeVdc9gsHvW9ZXdg8Tgx4zeLx/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GSVmztvMBlLFJmAlMbF9FSOI LSJgJPH5xRVWEJtZIEFi88pGZhBbWEBXYs6sZSwgC1gEVCXezTYGCfMKaEpsuHgRrERUwEti y752Joi4oMSPyfdYIMbIS+zbPxVqpJbE+p3HmSYw8s1CUjYLSdksJGULGJlXMUqkFiQXFCel 5xrlpZbrFSfmFpfmpesl5+duYgQH/zPpHYyHd7kfYhTgYFTi4Y2ofR8hxJpYVlyZe4hRgoNZ SYSXcceHCCHelMTKqtSi/Pii0pzU4kOMpkB/TGSWEk3OB0ZmXkm8oYm5ibmxgYW5paWJkZI4 b+PsZ+FCAumJJanZqakFqUUwfUwcnFINjFFp1auKTjjwLlY3nFw0awvf3lSH0Jlq+3IbGY40 cM9kejFx37afgmeDgq9MsRHpYFP3F/jTFnBedb1gEYt2Hfv/VX8zWI69TfNOunwha96TLUXn rvAw7JziNedyZfo5naUhPAttZ6RqM72yr567ZbljPpv3Ho75vL23r4dWin7Xe7DV4aiBtxJL cUaioRZzUXEiAMZMl8OUAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170414120309epcas5p2701f4ac334e1281359bfa05f6f82eae2 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?QmFydGxvbWllaiBab2xuaWVya2lld2ljehtTUlBPTC1LZXJu?= =?UTF-8?B?ZWwgKFRQKRvsgrzshLHsoITsnpAbU2VuaW9yIFNvZnR3YXJlIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?QmFydGxvbWllaiBab2xuaWVya2lld2ljehtTUlBPTC1LZXJu?= =?UTF-8?B?ZWwgKFRQKRtTYW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBF?= =?UTF-8?B?bmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 105P X-CMS-RootMailID: 20170414120309epcas5p2701f4ac334e1281359bfa05f6f82eae2 X-RootMTR: 20170414120309epcas5p2701f4ac334e1281359bfa05f6f82eae2 References: Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Linus, Please pull fbdev fixes for v4.11-rc6. Best regards, --- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://github.com/bzolnier/linux.git tags/fbdev-v4.11-rc6 for you to fetch changes up to e68d490def9f7d726eea6dc62ebd692af64ec8b5: fbdev: omapfb: delete check_required_callbacks() (2017-04-14 13:38:32 +0200) ---------------------------------------------------------------- fbdev fixes for v4.11-rc6: - fix probing time checks in omapfb driver (regression fix) - fix optional VBAT support in ssd1307fb driver (regression fix) - fix connecting to backend in xen-fbfront driver ---------------------------------------------------------------- Aaro Koskinen (1): fbdev: omapfb: delete check_required_callbacks() Bastian Stender (1): fbdev/ssd1307fb: fix optional VBAT support Juergen Gross (1): xen, fbfront: fix connecting to backend drivers/video/fbdev/omap/omapfb_main.c | 15 --------------- drivers/video/fbdev/ssd1307fb.c | 24 ++++++++++++++++-------- drivers/video/fbdev/xen-fbfront.c | 4 ++-- 3 files changed, 18 insertions(+), 25 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/video/fbdev/omap/omapfb_main.c b/drivers/video/fbdev/omap/omapfb_main.c index 1abba07..f4cbfb3 100644 --- a/drivers/video/fbdev/omap/omapfb_main.c +++ b/drivers/video/fbdev/omap/omapfb_main.c @@ -1608,19 +1608,6 @@ static int omapfb_find_ctrl(struct omapfb_device *fbdev) return 0; } -static void check_required_callbacks(struct omapfb_device *fbdev) -{ -#define _C(x) (fbdev->ctrl->x != NULL) -#define _P(x) (fbdev->panel->x != NULL) - BUG_ON(fbdev->ctrl == NULL || fbdev->panel == NULL); - BUG_ON(!(_C(init) && _C(cleanup) && _C(get_caps) && - _C(set_update_mode) && _C(setup_plane) && _C(enable_plane) && - _P(init) && _P(cleanup) && _P(enable) && _P(disable) && - _P(get_caps))); -#undef _P -#undef _C -} - /* * Called by LDM binding to probe and attach a new device. * Initialization sequence: @@ -1705,8 +1692,6 @@ static int omapfb_do_probe(struct platform_device *pdev, omapfb_ops.fb_mmap = omapfb_mmap; init_state++; - check_required_callbacks(fbdev); - r = planes_init(fbdev); if (r) goto cleanup; diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index bd017b5..f599520 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -578,10 +578,14 @@ static int ssd1307fb_probe(struct i2c_client *client, par->vbat_reg = devm_regulator_get_optional(&client->dev, "vbat"); if (IS_ERR(par->vbat_reg)) { - dev_err(&client->dev, "failed to get VBAT regulator: %ld\n", - PTR_ERR(par->vbat_reg)); ret = PTR_ERR(par->vbat_reg); - goto fb_alloc_error; + if (ret == -ENODEV) { + par->vbat_reg = NULL; + } else { + dev_err(&client->dev, "failed to get VBAT regulator: %d\n", + ret); + goto fb_alloc_error; + } } if (of_property_read_u32(node, "solomon,width", &par->width)) @@ -668,10 +672,13 @@ static int ssd1307fb_probe(struct i2c_client *client, udelay(4); } - ret = regulator_enable(par->vbat_reg); - if (ret) { - dev_err(&client->dev, "failed to enable VBAT: %d\n", ret); - goto reset_oled_error; + if (par->vbat_reg) { + ret = regulator_enable(par->vbat_reg); + if (ret) { + dev_err(&client->dev, "failed to enable VBAT: %d\n", + ret); + goto reset_oled_error; + } } ret = ssd1307fb_init(par); @@ -710,7 +717,8 @@ static int ssd1307fb_probe(struct i2c_client *client, pwm_put(par->pwm); }; regulator_enable_error: - regulator_disable(par->vbat_reg); + if (par->vbat_reg) + regulator_disable(par->vbat_reg); reset_oled_error: fb_deferred_io_cleanup(info); fb_alloc_error: diff --git a/drivers/video/fbdev/xen-fbfront.c b/drivers/video/fbdev/xen-fbfront.c index d0115a7..3ee309c 100644 --- a/drivers/video/fbdev/xen-fbfront.c +++ b/drivers/video/fbdev/xen-fbfront.c @@ -643,7 +643,6 @@ static void xenfb_backend_changed(struct xenbus_device *dev, break; case XenbusStateInitWait: -InitWait: xenbus_switch_state(dev, XenbusStateConnected); break; @@ -654,7 +653,8 @@ static void xenfb_backend_changed(struct xenbus_device *dev, * get Connected twice here. */ if (dev->state != XenbusStateConnected) - goto InitWait; /* no InitWait seen yet, fudge it */ + /* no InitWait seen yet, fudge it */ + xenbus_switch_state(dev, XenbusStateConnected); if (xenbus_read_unsigned(info->xbdev->otherend, "request-update", 0))