From patchwork Thu Jun 27 14:07:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 11019773 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8AAB51580 for ; Thu, 27 Jun 2019 14:07:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BAE92887E for ; Thu, 27 Jun 2019 14:07:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70144288B9; Thu, 27 Jun 2019 14:07:10 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 EB3E528B8A for ; Thu, 27 Jun 2019 14:07:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726497AbfF0OHI (ORCPT ); Thu, 27 Jun 2019 10:07:08 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:41272 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726370AbfF0OHI (ORCPT ); Thu, 27 Jun 2019 10:07:08 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190627140706euoutp0161e8825691bf276ed701867823a246b5~sE1Tldq2n1495914959euoutp01h for ; Thu, 27 Jun 2019 14:07:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190627140706euoutp0161e8825691bf276ed701867823a246b5~sE1Tldq2n1495914959euoutp01h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1561644426; bh=BoDR/6hDAZqWyHMh5AaexlPeGMwWtQ0BBzLpqomvxMs=; h=From:Subject:To:Date:References:From; b=kCN5M8+lWqixxYpRA5Mc3uJkoEFbf/QmVtESNgWpri0Zg5YyH7IYEsBAUSoQoFb57 cGw7emnBTxMWgMQ6ysHOgIUUCX4k1fVXHiM7YMXbdL+tiurVumH3WjZ7gJVeA0d/kC y8YZ0q8aaxUWQrMmV2FlAyQmAluiQfcC1KYwj7cM= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190627140705eucas1p155a7549b3a5ecad192c62eea3edb1d64~sE1TF4dfO0763807638eucas1p1j; Thu, 27 Jun 2019 14:07:05 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 66.76.04377.98DC41D5; Thu, 27 Jun 2019 15:07:05 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190627140704eucas1p10f9aca669beb24f5359a0e86f2b6d0ba~sE1SboCPb0767107671eucas1p1Q; Thu, 27 Jun 2019 14:07:04 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190627140704eusmtrp29d70373c3a726d2bd680aa30fd6ab995~sE1SNb7zA0769707697eusmtrp2G; Thu, 27 Jun 2019 14:07:04 +0000 (GMT) X-AuditID: cbfec7f4-113ff70000001119-e2-5d14cd8924f7 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 67.A3.04146.88DC41D5; Thu, 27 Jun 2019 15:07:04 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190627140704eusmtip2fa88c590dce5dd666721e8beed9eb74a~sE1SAIW5X1698616986eusmtip27; Thu, 27 Jun 2019 14:07:04 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: [PATCH 1/3] video: fbdev: mmp: remove duplicated MMP_DISP dependency To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Message-ID: Date: Thu, 27 Jun 2019 16:07:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgleLIzCtJLcpLzFFi42LZduzned3OsyKxBu1/RSyufH3PZnGi7wOr xeVdc9gcmD3udx9n8vi8SS6AKYrLJiU1J7MstUjfLoEr48SeY+wF27kqnq54wNrA+JCji5GT Q0LARGLpg7dMXYxcHEICKxglPu95COV8YZS4OH8fO4TzmVHiyNfvrDAtNza/Z4FILGeUOPHv ExuE85ZR4ty6U2BVbAJWEhPbVzGC2MIC/hI9n86wg9giAgkSK6bPAIvzCthJtM15ywZiswio Ssxfv4sFxBYViJC4f2wDK0SNoMTJmU/A4swC4hK3nsxngrDlJba/ncMMslhC4DabxIvbIAs4 gBwXiakv5CAuFZZ4dXwLO4QtI/F/53wmiPp1jBJ/O15ANW9nlFg++R8bRJW1xOHjF1lBBjEL aEqs36UPEXaUaLh8jwliPp/EjbeCEDfwSUzaNp0ZIswr0dEmBFGtJrFh2QY2mLVdO1cyQ9ge EtPPfwB7XUggVmLyql3sExgVZiH5chaSL2ch+XIWwj0LGFlWMYqnlhbnpqcWG+WllusVJ+YW l+al6yXn525iBKaP0/+Of9nBuOtP0iFGAQ5GJR5ehZ0isUKsiWXFlbmHGCU4mJVEePPDgEK8 KYmVValF+fFFpTmpxYcYpTlYlMR5qxkeRAsJpCeWpGanphakFsFkmTg4pRoYcytu7M80OOf6 peMYR6GZqlJhhs8Bn0N3SyOleR9oXI/YX3F9wy33y09/fLu2T+Vp94H7ba6xcQUbOj7oVF8p txE6e+Ct93fTRsZlxy+mmteJRHx7k1f8+Uzp9H9sEY6uUeo+SnO2qXG9LDyq4nLviTXP4bjK FY7FcwWz4z0ltnEv7yqNnfdZiaU4I9FQi7moOBEA7XZ87xsDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCLMWRmVeSWpSXmKPExsVy+t/xe7odZ0ViDfa3qFlc+fqezeJE3wdW i8u75rA5MHvc7z7O5PF5k1wAU5SeTVF+aUmqQkZ+cYmtUrShhZGeoaWFnpGJpZ6hsXmslZGp kr6dTUpqTmZZapG+XYJexok9x9gLtnNVPF3xgLWB8SFHFyMnh4SAicSNze9ZQGwhgaWMEsf+ S3UxcgDFZSSOry+DKBGW+HOti62LkQuo5DWjxPaP55lBEmwCVhIT21cxgtjCAr4Sk5vus4PY IgIJEk9fz2cDsXkF7CTa5rwFs1kEVCXmr98FtktUIELizPsVLBA1ghInZz4Bs5kF1CX+zLvE DGGLS9x6Mp8JwpaX2P52DvMERv5ZSFpmIWmZhaRlFpKWBYwsqxhFUkuLc9Nziw31ihNzi0vz 0vWS83M3MQJDfNuxn5t3MF7aGHyIUYCDUYmHV2GnSKwQa2JZcWXuIUYJDmYlEd78MKAQb0pi ZVVqUX58UWlOavEhRlOghyYyS4km5wPjL68k3tDU0NzC0tDc2NzYzEJJnLdD4GCMkEB6Yklq dmpqQWoRTB8TB6dUA6PPRSbHS65xP6qfZmr+k9VYePLB3MYXvku5BU9x/TDpPZWju8rnz+/t J8VN/kV4vCtiXrr7jWT/j297M/J7/jQ62hslXy4/q8Gp0xwWcs6eIU//8rGlzZWzGG9HhOra fX65kdN7cf+v0/L8R8RnGLbpmLA1MJ0T4OthNDg9bdHCKZe/iR5weKDEUpyRaKjFXFScCAAF JL5nhwIAAA== X-CMS-MailID: 20190627140704eucas1p10f9aca669beb24f5359a0e86f2b6d0ba X-Msg-Generator: CA X-RootMTR: 20190627140704eucas1p10f9aca669beb24f5359a0e86f2b6d0ba X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190627140704eucas1p10f9aca669beb24f5359a0e86f2b6d0ba 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 This dependency is already present in higher level Kconfig file (drivers/video/fbdev/mmp/Kconfig). Signed-off-by: Bartlomiej Zolnierkiewicz Reviewed-by: Andrzej Hajda --- drivers/video/fbdev/mmp/fb/Kconfig | 4 ---- drivers/video/fbdev/mmp/hw/Kconfig | 4 ---- 2 files changed, 8 deletions(-) Index: b/drivers/video/fbdev/mmp/fb/Kconfig =================================================================== --- a/drivers/video/fbdev/mmp/fb/Kconfig +++ b/drivers/video/fbdev/mmp/fb/Kconfig @@ -1,6 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only -if MMP_DISP - config MMP_FB tristate "fb driver for Marvell MMP Display Subsystem" depends on FB @@ -10,5 +8,3 @@ config MMP_FB default y help fb driver for Marvell MMP Display Subsystem - -endif Index: b/drivers/video/fbdev/mmp/hw/Kconfig =================================================================== --- a/drivers/video/fbdev/mmp/hw/Kconfig +++ b/drivers/video/fbdev/mmp/hw/Kconfig @@ -1,6 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only -if MMP_DISP - config MMP_DISP_CONTROLLER bool "mmp display controller hw support" depends on CPU_PXA910 || CPU_MMP2 @@ -16,5 +14,3 @@ config MMP_DISP_SPI help Marvell MMP display hw controller spi port support will register as a spi master for panel usage - -endif From patchwork Thu Jun 27 14:07:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 11019775 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D63DF14E5 for ; Thu, 27 Jun 2019 14:07:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C78CC28B65 for ; Thu, 27 Jun 2019 14:07:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9D0A28B9D; Thu, 27 Jun 2019 14:07:47 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 5E42D28B3B for ; Thu, 27 Jun 2019 14:07:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726614AbfF0OHr (ORCPT ); Thu, 27 Jun 2019 10:07:47 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:41502 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726443AbfF0OHq (ORCPT ); Thu, 27 Jun 2019 10:07:46 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190627140745euoutp0193f8aba53b1f7ae5ffbedc746986619e~sE14f8XSd1690116901euoutp01W for ; Thu, 27 Jun 2019 14:07:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190627140745euoutp0193f8aba53b1f7ae5ffbedc746986619e~sE14f8XSd1690116901euoutp01W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1561644465; bh=wtMYutJk4G/BEWGw2w2IiAwGKBfNmaG+t5JjuWLikZY=; h=From:Subject:To:Date:References:From; b=Jnr33lW6/TCGOlaoPoTkVkD1xmIKnKqWGiLsrzWOoCA7FEWdUDiSPHyRST08fIQW4 zcqQrmaDDpMOvLJ8Mr9LFT31qXj04PABjQsXuAE2TiW8/OH+H6nf8k0DI6RfREi3Ze 059JxtVmzqA1R/CMlfn2puNronYEfOoZjcBsGNOw= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190627140745eucas1p11b0a7d6c492a778e735bfcdcb3315e0d~sE14DV-b-1939219392eucas1p1e; Thu, 27 Jun 2019 14:07:45 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 85.F1.04298.0BDC41D5; Thu, 27 Jun 2019 15:07:44 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190627140744eucas1p1eb91c6c21ae36105f38dbf5e42259a7c~sE13UtZ0v0868408684eucas1p1b; Thu, 27 Jun 2019 14:07:44 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190627140744eusmtrp2f308e03b19720ad74dba616f7ead0be0~sE13GopYg0769707697eusmtrp2P; Thu, 27 Jun 2019 14:07:44 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-4c-5d14cdb035cc Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 6E.B3.04146.0BDC41D5; Thu, 27 Jun 2019 15:07:44 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190627140744eusmtip26e4cc91b9c381ef565f6d51ad49fdc1e~sE126Tn0q1699316993eusmtip2d; Thu, 27 Jun 2019 14:07:44 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: [PATCH 2/3] video: fbdev: mmp: add COMPILE_TEST support To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Message-ID: Date: Thu, 27 Jun 2019 16:07:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgleLIzCtJLcpLzFFi42LZduzned0NZ0ViDR43WVlc+fqezeJE3wdW i8u75rA5MHvc7z7O5PF5k1wAUxSXTUpqTmZZapG+XQJXxq0fXxgLdnBVTLw+i7mB8Q1HFyMn h4SAicT12bcZuxi5OIQEVjBK7H6zkwkkISTwhVHiU38kROIzo8Tfi+0sMB175jUzQySWM0qc mt4P5bxllLjUc5kNpIpNwEpiYvsqRhBbWMBBYubsk6wgtohAgsSK6TPA4rwCdhIre1rB1rEI qErserKbHcQWFYiQuH9sAytEjaDEyZlPwDYzC4hL3HoynwnClpfY/nYO2GIJgdtsEs8a/jJB nOciceXoPWYIW1ji1fEt7BC2jMT/nSDNIA3rgP7peAHVvZ1RYvnkf2wQVdYSh49fBFrNAbRC U2L9Ln2IsKPE7msbmUDCEgJ8EjfeCkIcwScxadt0Zogwr0RHmxBEtZrEhmUb2GDWdu1cCXWO h8SOrmkskOCNldjev5xxAqPCLCRvzkLy5iwkb85CuGcBI8sqRvHU0uLc9NRiw7zUcr3ixNzi 0rx0veT83E2MwPRx+t/xTzsYv15KOsQowMGoxMOrsFMkVog1say4MvcQowQHs5IIb34YUIg3 JbGyKrUoP76oNCe1+BCjNAeLkjhvNcODaCGB9MSS1OzU1ILUIpgsEwenVAPjVoeyy4Ff0ifd 131YfaXh6ZYW+Z6k/syNd+Nv5n1oUbApCdvx5GWt0Qr13aXH73JOWbOrVfDPlh1xdfI2QvEV jg7ffk/lPLys5bhVYl3XjykVby8cXadYeHXT5ZoQJsvzB+J0TQXFFbliw3MXRsr/3BpRdkq8 X/4U18xJwjtC4lufyl/e5H9AiaU4I9FQi7moOBEAEzkjJRsDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKLMWRmVeSWpSXmKPExsVy+t/xe7obzorEGnzbzG9x5et7NosTfR9Y LS7vmsPmwOxxv/s4k8fnTXIBTFF6NkX5pSWpChn5xSW2StGGFkZ6hpYWekYmlnqGxuaxVkam Svp2NimpOZllqUX6dgl6Gbd+fGEs2MFVMfH6LOYGxjccXYycHBICJhJ75jUzdzFycQgJLGWU 2Dn7DnsXIwdQQkbi+PoyiBphiT/Xutggal4zSizpm80OkmATsJKY2L6KEcQWFnCQmDn7JCuI LSKQIPH09Xw2EJtXwE5iZU8rE4jNIqAqsevJbrBeUYEIiTPvV7BA1AhKnJz5BMxmFlCX+DPv EjOELS5x68l8JghbXmL72znMExj5ZyFpmYWkZRaSlllIWhYwsqxiFEktLc5Nzy021CtOzC0u zUvXS87P3cQIDPJtx35u3sF4aWPwIUYBDkYlHl6FnSKxQqyJZcWVuYcYJTiYlUR488OAQrwp iZVVqUX58UWlOanFhxhNgR6ayCwlmpwPjMC8knhDU0NzC0tDc2NzYzMLJXHeDoGDMUIC6Ykl qdmpqQWpRTB9TBycUg2MNnMO1X+3fOy595/W0e97evqNGTRfp7JbdT81lY75Zvo3dcdBiZYN Gx46KR3Nq2SNbYrVmH1+13OZFxK6v+6bxAkd3HI0RbWn+UITKw9fgW7Uq70P83YuORFn1CYe MPFLO8PeyWo73d6VfGc435/vrC8TZKFQ1cj10085JG+66GbuWe75k9mUWIozEg21mIuKEwF9 7/0uiAIAAA== X-CMS-MailID: 20190627140744eucas1p1eb91c6c21ae36105f38dbf5e42259a7c X-Msg-Generator: CA X-RootMTR: 20190627140744eucas1p1eb91c6c21ae36105f38dbf5e42259a7c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190627140744eucas1p1eb91c6c21ae36105f38dbf5e42259a7c 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 Add COMPILE_TEST support to mmp display subsystem for better compile testing coverage. Signed-off-by: Bartlomiej Zolnierkiewicz Reviewed-by: Andrzej Hajda --- drivers/video/fbdev/mmp/Kconfig | 2 +- drivers/video/fbdev/mmp/hw/Kconfig | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) Index: b/drivers/video/fbdev/mmp/Kconfig =================================================================== --- a/drivers/video/fbdev/mmp/Kconfig +++ b/drivers/video/fbdev/mmp/Kconfig @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only menuconfig MMP_DISP tristate "Marvell MMP Display Subsystem support" - depends on CPU_PXA910 || CPU_MMP2 + depends on CPU_PXA910 || CPU_MMP2 || COMPILE_TEST help Marvell Display Subsystem support. Index: b/drivers/video/fbdev/mmp/hw/Kconfig =================================================================== --- a/drivers/video/fbdev/mmp/hw/Kconfig +++ b/drivers/video/fbdev/mmp/hw/Kconfig @@ -1,7 +1,8 @@ # SPDX-License-Identifier: GPL-2.0-only config MMP_DISP_CONTROLLER bool "mmp display controller hw support" - depends on CPU_PXA910 || CPU_MMP2 + depends on HAVE_CLK && HAS_IOMEM + depends on CPU_PXA910 || CPU_MMP2 || COMPILE_TEST help Marvell MMP display hw controller support this controller is used on Marvell PXA910 and From patchwork Thu Jun 27 14:08:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 11019781 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A440714E5 for ; Thu, 27 Jun 2019 14:08:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94C1B28B96 for ; Thu, 27 Jun 2019 14:08:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8952028B97; Thu, 27 Jun 2019 14:08:53 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 C8DAC28B9B for ; Thu, 27 Jun 2019 14:08:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726566AbfF0OIt (ORCPT ); Thu, 27 Jun 2019 10:08:49 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:35351 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726370AbfF0OIs (ORCPT ); Thu, 27 Jun 2019 10:08:48 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190627140846euoutp027920580dacfbb9562af7853b4e8502f3~sE2wuWEBj2347223472euoutp02w for ; Thu, 27 Jun 2019 14:08:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190627140846euoutp027920580dacfbb9562af7853b4e8502f3~sE2wuWEBj2347223472euoutp02w DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1561644526; bh=QUHj+ijud0YQLnEdLNjj5as4RJcIrXVoCpYGX7Oob0I=; h=From:Subject:To:Date:References:From; b=hjXGLQ40zKF7EdNNWi9tJhTcCQy38IlVdPY+KyofyCyjifFGfMDMF8AFOQDjnSE2b 9GrCPuknPQud6d94g8epKpPe7q+uAhh+KJOnBuRHr97/S1GTbEMRIpD1mR49f4ARHO xLbfC64PwkYAYBhQzQ6QzIGAjg5qhafDz5Sn7hiA= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190627140845eucas1p1f76ae8049ca9593a2c793f7b25b6b0c5~sE2wHY7ME1952719527eucas1p1E; Thu, 27 Jun 2019 14:08:45 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 6A.1F.04325.DEDC41D5; Thu, 27 Jun 2019 15:08:45 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190627140844eucas1p1fac4e639a3445c6ae1a51b0743289f1c~sE2vXXMAD1952319523eucas1p1V; Thu, 27 Jun 2019 14:08:44 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190627140844eusmtrp21af8ea6f188e6e7cca07acb6122d7237~sE2vF1gWa0820108201eusmtrp2O; Thu, 27 Jun 2019 14:08:44 +0000 (GMT) X-AuditID: cbfec7f5-b8fff700000010e5-be-5d14cdedba30 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 29.D3.04146.CEDC41D5; Thu, 27 Jun 2019 15:08:44 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190627140844eusmtip1fcbf84fd2dbe0c477b25fffcf6a8d1b6~sE2uyf4xl2147321473eusmtip10; Thu, 27 Jun 2019 14:08:44 +0000 (GMT) From: Bartlomiej Zolnierkiewicz Subject: [PATCH 3/3] video: fbdev: mmp: fix sparse warnings about using incorrect types To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Message-ID: Date: Thu, 27 Jun 2019 16:08:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnleLIzCtJLcpLzFFi42LZduznOd23Z0ViDXZ/4bG48vU9m8WJvg+s Fpd3zWFzYPa4332cyePzJrkApigum5TUnMyy1CJ9uwSujI/3jzMWvLat2LCktoFxkkkXIyeH hICJxPW3O1m7GLk4hARWMEoc/rWVDcL5wihxYvc6JgjnM6PEqlu7WGBavixbDNWynFFi0uLV zBDOW0aJ6/3/WEGq2ASsJCa2r2IEsYUFIiW2HnvLDmKLCCRIrJg+AyzOK2AnseHYEjYQm0VA VWLfjp9gcVGBCIn7xzawQtQISpyc+QRsM7OAuMStJ/OZIGx5ie1v5zBDXHSdTWLmWQEI20Vi y7c2JghbWOLV8S3sELaMxP+d88HekRBYxyjxt+MFM4SznVFi+eR/bBBV1hKHj18E2swBtEFT Yv0ufYiwo8TatsOMIGEJAT6JG28FIW7gk5i0bTozRJhXoqNNCKJaTWLDsg1sMGu7dq6EOtND 4un6uWCvCAnESrxuvss6gVFhFpIvZyH5chaSL2ch3LOAkWUVo3hqaXFuemqxcV5quV5xYm5x aV66XnJ+7iZGYPI4/e/41x2M+/4kHWIU4GBU4uFV2CkSK8SaWFZcmXuIUYKDWUmENz8MKMSb klhZlVqUH19UmpNafIhRmoNFSZy3muFBtJBAemJJanZqakFqEUyWiYNTqoGxRCSAYWXEuZqX DHsOvzC48+/xukW+rBzTfikEef/NP9ZkeUtZ73r9k0Ozlc0vfS3d43DwUrhAtZxK5z3R18yT ns7tmcVwXcy+wYDtyQOxt/9nPOSo8TnyYPKv/xsWPzmo59FubSnYnVF/QzvL903gZ6nmiWff ymcrh/dyiYt4aXUwtp1sb36qxFKckWioxVxUnAgA3FldIhoDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMLMWRmVeSWpSXmKPExsVy+t/xu7pvzorEGkw/zW9x5et7NosTfR9Y LS7vmsPmwOxxv/s4k8fnTXIBTFF6NkX5pSWpChn5xSW2StGGFkZ6hpYWekYmlnqGxuaxVkam Svp2NimpOZllqUX6dgl6GR/vH2cseG1bsWFJbQPjJJMuRk4OCQETiS/LFrN2MXJxCAksZZR4 ee0MUxcjB1BCRuL4+jKIGmGJP9e62EBsIYHXjBJ7diqA2GwCVhIT21cxgtjCApESW4+9ZQex RQQSJJ6+ng9WzytgJ7Hh2BIwm0VAVWLfjp9g9aICERJn3q9ggagRlDg58wmYzSygLvFn3iVm CFtc4taT+UwQtrzE9rdzmCcw8s9C0jILScssJC2zkLQsYGRZxSiSWlqcm55bbKhXnJhbXJqX rpecn7uJERjg24793LyD8dLG4EOMAhyMSjy8CjtFYoVYE8uKK3MPMUpwMCuJ8OaHAYV4UxIr q1KL8uOLSnNSiw8xmgI9NJFZSjQ5Hxh9eSXxhqaG5haWhubG5sZmFkrivB0CB2OEBNITS1Kz U1MLUotg+pg4OKUaGBV+ZbVPEl4hb9pzhaPre7TB7NVOcu0972JuLHm8U6zXJsx4wcTnU/YI 3591tEIpUyb119zOtIONXdv2bw6cr1mzR2HN9+ZvRZ6bfYSL9f9vFLv/K1wlP4xzb6NdXIDT Zgn5NYxLBSQZJKd/cj/kOMP6Rz83q+u2K/0T7HTjIlZOrXm8j+HZUiWW4oxEQy3mouJEAPzc fS6GAgAA X-CMS-MailID: 20190627140844eucas1p1fac4e639a3445c6ae1a51b0743289f1c X-Msg-Generator: CA X-RootMTR: 20190627140844eucas1p1fac4e639a3445c6ae1a51b0743289f1c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190627140844eucas1p1fac4e639a3445c6ae1a51b0743289f1c 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 Use ->screen_buffer instead of ->screen_base in mmpfb driver. [ Please see commit 17a7b0b4d974 ("fb.h: Provide alternate screen_base pointer") for details. ] Also fix all other sparse warnings about using incorrect types in mmp display subsystem. Signed-off-by: Bartlomiej Zolnierkiewicz Reviewed-by: Andrzej Hajda --- drivers/video/fbdev/mmp/fb/mmpfb.c | 2 - drivers/video/fbdev/mmp/hw/mmp_ctrl.c | 55 +++++++++++++++++++--------------- drivers/video/fbdev/mmp/hw/mmp_ctrl.h | 10 +++--- drivers/video/fbdev/mmp/hw/mmp_spi.c | 6 +-- 4 files changed, 41 insertions(+), 32 deletions(-) Index: b/drivers/video/fbdev/mmp/fb/mmpfb.c =================================================================== --- a/drivers/video/fbdev/mmp/fb/mmpfb.c +++ b/drivers/video/fbdev/mmp/fb/mmpfb.c @@ -522,7 +522,7 @@ static int fb_info_setup(struct fb_info info->var.bits_per_pixel / 8; info->fbops = &mmpfb_ops; info->pseudo_palette = fbi->pseudo_palette; - info->screen_base = fbi->fb_start; + info->screen_buffer = fbi->fb_start; info->screen_size = fbi->fb_size; /* For FB framework: Allocate color map and Register framebuffer*/ Index: b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c =================================================================== --- a/drivers/video/fbdev/mmp/hw/mmp_ctrl.c +++ b/drivers/video/fbdev/mmp/hw/mmp_ctrl.c @@ -136,19 +136,26 @@ static void overlay_set_win(struct mmp_o mutex_lock(&overlay->access_ok); if (overlay_is_vid(overlay)) { - writel_relaxed(win->pitch[0], ®s->v_pitch_yc); - writel_relaxed(win->pitch[2] << 16 | - win->pitch[1], ®s->v_pitch_uv); - - writel_relaxed((win->ysrc << 16) | win->xsrc, ®s->v_size); - writel_relaxed((win->ydst << 16) | win->xdst, ®s->v_size_z); - writel_relaxed(win->ypos << 16 | win->xpos, ®s->v_start); + writel_relaxed(win->pitch[0], + (void __iomem *)®s->v_pitch_yc); + writel_relaxed(win->pitch[2] << 16 | win->pitch[1], + (void __iomem *)®s->v_pitch_uv); + + writel_relaxed((win->ysrc << 16) | win->xsrc, + (void __iomem *)®s->v_size); + writel_relaxed((win->ydst << 16) | win->xdst, + (void __iomem *)®s->v_size_z); + writel_relaxed(win->ypos << 16 | win->xpos, + (void __iomem *)®s->v_start); } else { - writel_relaxed(win->pitch[0], ®s->g_pitch); + writel_relaxed(win->pitch[0], (void __iomem *)®s->g_pitch); - writel_relaxed((win->ysrc << 16) | win->xsrc, ®s->g_size); - writel_relaxed((win->ydst << 16) | win->xdst, ®s->g_size_z); - writel_relaxed(win->ypos << 16 | win->xpos, ®s->g_start); + writel_relaxed((win->ysrc << 16) | win->xsrc, + (void __iomem *)®s->g_size); + writel_relaxed((win->ydst << 16) | win->xdst, + (void __iomem *)®s->g_size_z); + writel_relaxed(win->ypos << 16 | win->xpos, + (void __iomem *)®s->g_start); } dmafetch_set_fmt(overlay); @@ -233,11 +240,11 @@ static int overlay_set_addr(struct mmp_o memcpy(&overlay->addr, addr, sizeof(struct mmp_addr)); if (overlay_is_vid(overlay)) { - writel_relaxed(addr->phys[0], ®s->v_y0); - writel_relaxed(addr->phys[1], ®s->v_u0); - writel_relaxed(addr->phys[2], ®s->v_v0); + writel_relaxed(addr->phys[0], (void __iomem *)®s->v_y0); + writel_relaxed(addr->phys[1], (void __iomem *)®s->v_u0); + writel_relaxed(addr->phys[2], (void __iomem *)®s->v_v0); } else - writel_relaxed(addr->phys[0], ®s->g_0); + writel_relaxed(addr->phys[0], (void __iomem *)®s->g_0); return overlay->addr.phys[0]; } @@ -268,16 +275,18 @@ static void path_set_mode(struct mmp_pat tmp |= dsi_rbswap & CFG_INTFRBSWAP_MASK; writel_relaxed(tmp, ctrl_regs(path) + intf_rbswap_ctrl(path->id)); - writel_relaxed((mode->yres << 16) | mode->xres, ®s->screen_active); + writel_relaxed((mode->yres << 16) | mode->xres, + (void __iomem *)®s->screen_active); writel_relaxed((mode->left_margin << 16) | mode->right_margin, - ®s->screen_h_porch); + (void __iomem *)®s->screen_h_porch); writel_relaxed((mode->upper_margin << 16) | mode->lower_margin, - ®s->screen_v_porch); + (void __iomem *)®s->screen_v_porch); total_x = mode->xres + mode->left_margin + mode->right_margin + mode->hsync_len; total_y = mode->yres + mode->upper_margin + mode->lower_margin + mode->vsync_len; - writel_relaxed((total_y << 16) | total_x, ®s->screen_size); + writel_relaxed((total_y << 16) | total_x, + (void __iomem *)®s->screen_size); /* vsync ctrl */ if (path->output_type == PATH_OUT_DSI) @@ -285,7 +294,7 @@ static void path_set_mode(struct mmp_pat else vsync_ctrl = ((mode->xres + mode->right_margin) << 16) | (mode->xres + mode->right_margin); - writel_relaxed(vsync_ctrl, ®s->vsync_ctrl); + writel_relaxed(vsync_ctrl, (void __iomem *)®s->vsync_ctrl); /* set pixclock div */ sclk_src = clk_get_rate(path_to_ctrl(path)->clk); @@ -366,9 +375,9 @@ static void path_set_default(struct mmp_ writel_relaxed(dma_ctrl1, ctrl_regs(path) + dma_ctrl(1, path->id)); /* Configure default register values */ - writel_relaxed(0x00000000, ®s->blank_color); - writel_relaxed(0x00000000, ®s->g_1); - writel_relaxed(0x00000000, ®s->g_start); + writel_relaxed(0x00000000, (void __iomem *)®s->blank_color); + writel_relaxed(0x00000000, (void __iomem *)®s->g_1); + writel_relaxed(0x00000000, (void __iomem *)®s->g_start); /* * 1.enable multiple burst request in DMA AXI Index: b/drivers/video/fbdev/mmp/hw/mmp_ctrl.h =================================================================== --- a/drivers/video/fbdev/mmp/hw/mmp_ctrl.h +++ b/drivers/video/fbdev/mmp/hw/mmp_ctrl.h @@ -1393,7 +1393,7 @@ struct mmphw_ctrl { /* platform related, get from config */ const char *name; int irq; - void *reg_base; + void __iomem *reg_base; struct clk *clk; /* sys info */ @@ -1429,7 +1429,7 @@ static inline struct mmphw_ctrl *overlay return path_to_ctrl(overlay->path); } -static inline void *ctrl_regs(struct mmp_path *path) +static inline void __iomem *ctrl_regs(struct mmp_path *path) { return path_to_ctrl(path)->reg_base; } @@ -1438,11 +1438,11 @@ static inline void *ctrl_regs(struct mmp static inline struct lcd_regs *path_regs(struct mmp_path *path) { if (path->id == PATH_PN) - return (struct lcd_regs *)(ctrl_regs(path) + 0xc0); + return (struct lcd_regs __force *)(ctrl_regs(path) + 0xc0); else if (path->id == PATH_TV) - return (struct lcd_regs *)ctrl_regs(path); + return (struct lcd_regs __force *)ctrl_regs(path); else if (path->id == PATH_P2) - return (struct lcd_regs *)(ctrl_regs(path) + 0x200); + return (struct lcd_regs __force *)(ctrl_regs(path) + 0x200); else { dev_err(path->dev, "path id %d invalid\n", path->id); BUG_ON(1); Index: b/drivers/video/fbdev/mmp/hw/mmp_spi.c =================================================================== --- a/drivers/video/fbdev/mmp/hw/mmp_spi.c +++ b/drivers/video/fbdev/mmp/hw/mmp_spi.c @@ -31,7 +31,7 @@ static inline int lcd_spi_write(struct s { int timeout = 100000, isr, ret = 0; u32 tmp; - void *reg_base = + void __iomem *reg_base = (void __iomem *) *(void **)spi_master_get_devdata(spi->master); /* clear ISR */ @@ -80,7 +80,7 @@ static inline int lcd_spi_write(struct s static int lcd_spi_setup(struct spi_device *spi) { - void *reg_base = + void __iomem *reg_base = (void __iomem *) *(void **)spi_master_get_devdata(spi->master); u32 tmp; @@ -146,7 +146,7 @@ int lcd_spi_register(struct mmphw_ctrl * return -ENOMEM; } p_regbase = spi_master_get_devdata(master); - *p_regbase = ctrl->reg_base; + *p_regbase = (void __force *)ctrl->reg_base; /* set bus num to 5 to avoid conflict with other spi hosts */ master->bus_num = 5;