From patchwork Thu Jul 13 16:25:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9839747 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 4D8E7602A0 for ; Fri, 14 Jul 2017 01:03:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58BEF28757 for ; Fri, 14 Jul 2017 01:03:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D5C128759; Fri, 14 Jul 2017 01:03:46 +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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E03422875F for ; Fri, 14 Jul 2017 01:03:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E78C26E72F; Fri, 14 Jul 2017 01:03:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0101.outbound.protection.outlook.com [104.47.0.101]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8D1146E6B2 for ; Thu, 13 Jul 2017 17:56:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentiatech.onmicrosoft.com; s=selector1-axentia-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PrPb+eS2era9fqN9Mbpx63zMDKPpic5spvVUC6Ogckg=; b=Ai+n9KGTMvgY+j8NLQasaZRZ5bCRI0fdF3NmysC0yxTGFE20d5yliHqrSZEXm7iXsIAfhJCesFrZcd1JpzQXB0VL7JYJb7jnMlfrCitu7FT0r2nMzF2RXNiIhsr/aKo3/jBbA+HHWg0s6S/zRyPK7zMU7ZTDwFHG3QNLGuoyxJU= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=axentia.se; Received: from orc.pedanet (81.224.168.30) by HE1PR0202MB2556.eurprd02.prod.outlook.com (2603:10a6:3:90::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Thu, 13 Jul 2017 16:24:39 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v5 13/14] drm: stm: remove dead code and pointless local lut storage Date: Thu, 13 Jul 2017 18:25:37 +0200 Message-Id: <20170713162538.22788-14-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170713162538.22788-1-peda@axentia.se> References: <20170713162538.22788-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.168.30] X-ClientProxiedBy: HE1PR09CA0048.eurprd09.prod.outlook.com (2603:10a6:7:3c::16) To HE1PR0202MB2556.eurprd02.prod.outlook.com (2603:10a6:3:90::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e9732703-f59b-4414-2ee3-08d4ca0ba979 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HE1PR0202MB2556; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 3:y6Ll0arZcvwZ+JB/7YopGacRO5GiEDNR7REdc1iDbrwsTWbSWvFFkMR/7zrgz+9P0TzPJ56Prsz59BHW5TKOn3cJ+wAePicZ020wl4CBiiRIoFaDXkjZq3bQfcRKJM06t6HNu8vt0ULSuMkbaRmJFIBQvtBWPy3IHX7BPwHo1dq93oKcxsTB3d/9HPKc2Op195EIcSOrERxY5k/H8eI1N90j42sl8RoQCpzxBnwWwM9pl5187zeHz0Z57Lyo/WpneSZId1OQdh5p96CRYcxPIUK+stxHZop503UYK4PFExXEcyNYUKkqhZN/MUpIiHbqyNGVnqeb4RJnULKdlL/aeoznSqoFXD9iObpMVaG7/DdNtMFMGGIoF1wQDjoZu8Sqxp4CELtwVueGvtely51LUStE+nSFvjG8SoB878isAdNhHwxHLk6nr7V8iZfv89eUVADqtnewSXpQv+A2A5bWb0c3EDAaLeAPTQENikagSTwO+vrmxTEOO4YEI5w5IzFPfI3nQcnkAIs5QlJHdG9qB+RbkCrW4PudpWlyKj2x7w8T7bxnC9/gVsu8A32Htji/nBPIJ3ZnZ8LmZMAdKvvnUcHBFuqbj2KkvyYC4GA0IUIScZ4seEKEZJ/GOW5YOQ5D8R09wicKh8fzKRDa4fuuyTZhSrYvPGKi/5LHMldCpLLX+fWl5G9JocsO+qh9ECPL0Y25R7kEXMBJqItkmnROUA== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2556: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 25:4h0ltJ6dhdwdpAD++fhkiAkWOA71KXPvI7feW06sUbBRYw9tkX7fCxlAlj7it/fuxBJ7WjCZjbPgmJw5KBDsMuK36Je+zULQ3viJ8Wct9Ms8X0vGS3pFAWkRXGAGjzw+8gmagB4Hvu+IND2JvziCIVH/1maL5biApIhElT0CsDpPIDR30oFIMaAQGJZiNKyG54IFdMiFMizDHMeuEfalU9guMhkiiZ3/mJOgoPpkq9rTVJVIKT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2q4apPl1aTXbTSX+xoBRfkGHn9z7YKngBDgJbQl3fFh3Lr7SxLH4GgAANU2sUeLn1+yokz5EEanbFiSzLWCwShcp8RKHYK9Q7VIOIHl8aeNuziICJxDmswLN8EKTxp/qF1Vve2HEwOZjPYWlDIkoGi3lZMQcJF2/B6FCObIPEMyYNHQYzQzbqJJaRxSw8SAwXG5AlcEujrnSnaEyiiEMgltowPDv0WOpR7cb5dvkdVEMXnnFEBnjtcUzgz5DEbNoilaRfu8LXUrMTULBY7B2IFDu6suGyLnv3ahEVnjxLvwYH1tmjE7g5c+H+mxWvCXWVaf/D3ls8jI5vtVFLD9yrK8lB9UKPYa3BP5EXvUSVHM= X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123564025)(2016111802025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0202MB2556; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0202MB2556; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2556; 4:lk1My2OLmzPBiqk/nT3pIO6Zh//b7KxQiPvLC8rJ?= =?us-ascii?Q?3JjGifgwn1xKoTuHutcDSNR4bIllSGiuMM4W3KxLUtLtAP/lse0wBcscFNDu?= =?us-ascii?Q?E0IEGX/OInDwDJ6eBroCrAbwjO4fUwQY2nhwc78pi7QZUCXtAxX/zhkJ5+up?= =?us-ascii?Q?cVOilpsbl4nCJiX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uC+l5xCjFv?= =?us-ascii?Q?VloH6Q3h5ppnShHy15y+d3kzH8v0mOCn/DjDgKRYPOBubp+Jq5UjbEcDSPrq?= =?us-ascii?Q?OkuVah4xRJikOHxqCkA79b5n3xWOf8NbKhc4HvlZu0lpa6katHRsAzgrGw9n?= =?us-ascii?Q?NttBMjo3YPY3ksWAaoMc+R6N45grVJyjmwectfA/JiqcgkJhCgQg9HCtmBJv?= =?us-ascii?Q?sKgyL+KWa5ANMHzTrsfnx0ZsoTc3SIlOY8ARJFxa?= X-Forefront-PRVS: 0367A50BB1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(7370300001)(4630300001)(6009001)(39840400002)(39400400002)(39410400002)(39450400003)(54906002)(8676002)(81166006)(5003940100001)(50226002)(6512007)(6506006)(38730400002)(110136004)(7350300001)(53936002)(6486002)(7736002)(189998001)(5660300001)(305945005)(4326008)(25786009)(2361001)(2351001)(33646002)(3846002)(6116002)(7416002)(74482002)(48376002)(50466002)(36756003)(86362001)(76176999)(50986999)(1076002)(42186005)(2950100002)(6916009)(478600001)(66066001)(47776003)(2906002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2556; H:orc.pedanet; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2556; 23:vxjaPqWdCXFfl13e7XK3Qo9Zeh7DYvXsp5DiljM?= =?us-ascii?Q?v88XkYHQbVPDYLS8pDCPhquNxem/c3dtPMjgICXb1yichEPo6hsxHsd4gJ9Z?= =?us-ascii?Q?qm8l04EmkFFaK0cmGQgs7F+yPUefoD6vXOf8jhLXalcBGGDakFFPECE/vqpa?= =?us-ascii?Q?4xHUG+bc79+UVt1/RwQIR885VgbYSCDaoLdpLGuBPUxYA3Soa4S39Rvbv7lJ?= =?us-ascii?Q?CLLEdFcOOhqvMXyY9dH8AuCe4ge2uYrMPMM4BpzPcrf1bqHk6HvoaVVt1JNw?= =?us-ascii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MzZLeW/1Wsl1Kx/OKIkNOJz/oz9wvuN?= =?us-ascii?Q?KIDjkxTb/MNDaF970ACCwY8deKZ9Lew3E1F/flIGPez/NvEr+LXgoCvzcSwe?= =?us-ascii?Q?PTzMabq6PQ+4RifPH0443zzY+5imVL58Te1Ztrjcdwgd59nJ453pYfr39lqE?= =?us-ascii?Q?zUHv1qia9LAd6x2drYtGVTVmCtgwrt4xlHMv/kKV8Tu0mGzFBJ01oGSIwONW?= =?us-ascii?Q?0sE=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 5:d96McyWh8ZhGzj+QCkaHtDgFQJQ52yJZxdV8DaRal4tUyCeNBqLRQc053EIYY2Y8ytJhyKDhFinBqdbGDeTdkb0HyAc/nreegNS0XpZwZhvokqrp8lA+8aRUgVYK3glyrmBusxRVc/ofxVAV6pxkc4TcUdeV548HOamKWdf5MsHPJ3Q6L7j+OU7nqwoHIefgPJrp2W0t7xhkmVnf382P2SO9vXfLZ1p3E+Wz99wXwxXiludQCuOXuC4b+zGWA3yc3madljl+ldfUh/6hvua0KHzL/kBah7YylEykS3I0VxYfnmw3t7jgda3wO09ztZ4WBv1tYhJl5hhZS3Na8Y9gPNDkAANJL5dO5MkOJCw4Mup3xMgl9kjAMFiNlr4z2SrHegfMThNaFwN2qSLxOnByD4qEVfc7YlRrbGpQksS4APn1EXILmaSEfS9WTK8EVlGLcKP/pkfxWHvwxTrl9m5OzO4s4T+lWKqfjNvYpKHlnbTK5hquVM0sQCxshUgwJ5Xd; 24:OAgQZsGXOByNdUv520pd+CWEs3YFnNggvmz0TwPiN+WdknjUWJbQmWprOeuOO9RdH2JR6MCdTUyNal2dB15SbaMzNOPZpz1zDLmjS2YU1CQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 7:3SW/9ac6NJ4WSJJE0uB5X14HyvJt7GYMTyjYUT2KK1g+omsaROW2m5VBJyUIOhpSzw+M+wtEXziX9Khk6Ye2XwqEEpAMPOfL7cqY/fLQMRl0p+1wNok/RzGXunLTUsikbFNsFhcr7aOvdkLpIi33wABxmUQxglQH/4gb4C13gTedO4GmjRTtTUbZDHdWghQsjLhmI5lx9JSNd444wHglNp+bf+v4WNVp2+e3mD0ZVj6NE7um9IMTezR+N31YnCOWgYzNGM5TZfd2Y//Tm0xJu66qULj9FCsq0xEBUhlEuc0xvFICd9/GloBxXLmg+IyjjFvvXwF6jzrYJ7rYtjyhFnGN5rvHyt/r25y5n5wy30Qu6JDY7lkQga7IQ5JrU6TvhzM/I2nwVzdF65Tj0lyDeraucuYUaFjvRZsK/bYuv0RYZ/7s8Qfq0v0BW1V5MSNYrR4Uq1ptbLtrxfaAXHCYv8yJ4lv4BHrG6qPLNMkCVv7S5aXV7f2Llrc2lf2YJR18liyAS7aKe4DGzE+PU1nBQGk45EuIMNLMULqRVPfkWDl+1Gz+eulVSpoSkSd08R6uO2VeBcfUFTY2MyRotcl5gnGyPY2mqjsDAP4/mK6vW+tYuHPDOclyin8U7Fc0SJPZWrcy4WbSrMB/NZOzSXHzyr/zvwUmJBKNKJ9X614WNg/5sB3or34qoar/b2SEFK/YKIxivdiyznyBO835GeCmI/VqSIcyd5b7bqcqqtxPu3dtwqZaFRAjL8rJvUof6FhjQMxYUHp3atM1P+DxqfPXuwLG5Mo7Xiz8FuDLTNMcrrU= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2017 16:24:39.4074 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2556 X-Mailman-Approved-At: Fri, 14 Jul 2017 01:03:04 +0000 Cc: Boris Brezillon , Philippe Cornu , dri-devel@lists.freedesktop.org, Yannick Fertre , Daniel Vetter , Vincent Abriou , Peter Rosin X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The redundant fb helper .load_lut is no longer used, and can not work right without also providing the fb helpers .gamma_set and .gamma_get thus rendering the code in this driver suspect. Just remove the dead code. Acked-by: Daniel Vetter Signed-off-by: Peter Rosin Acked-by: Philippe Cornu --- drivers/gpu/drm/stm/ltdc.c | 12 ------------ drivers/gpu/drm/stm/ltdc.h | 1 - 2 files changed, 13 deletions(-) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index 533176015cbb..3e95b4d1f4cc 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b/drivers/gpu/drm/stm/ltdc.c @@ -375,17 +375,6 @@ static irqreturn_t ltdc_irq(int irq, void *arg) * DRM_CRTC */ -static void ltdc_crtc_load_lut(struct drm_crtc *crtc) -{ - struct ltdc_device *ldev = crtc_to_ltdc(crtc); - unsigned int i, lay; - - for (lay = 0; lay < ldev->caps.nb_layers; lay++) - for (i = 0; i < 256; i++) - reg_write(ldev->regs, LTDC_L1CLUTWR + lay * LAY_OFS, - ldev->clut[i]); -} - static void ltdc_crtc_atomic_enable(struct drm_crtc *crtc, struct drm_crtc_state *old_state) { @@ -525,7 +514,6 @@ static void ltdc_crtc_atomic_flush(struct drm_crtc *crtc, } static struct drm_crtc_helper_funcs ltdc_crtc_helper_funcs = { - .load_lut = ltdc_crtc_load_lut, .mode_set_nofb = ltdc_crtc_mode_set_nofb, .atomic_flush = ltdc_crtc_atomic_flush, .atomic_enable = ltdc_crtc_atomic_enable, diff --git a/drivers/gpu/drm/stm/ltdc.h b/drivers/gpu/drm/stm/ltdc.h index d7a9c736ac1e..620ca5555abf 100644 --- a/drivers/gpu/drm/stm/ltdc.h +++ b/drivers/gpu/drm/stm/ltdc.h @@ -27,7 +27,6 @@ struct ltdc_device { struct drm_panel *panel; struct mutex err_lock; /* protecting error_status */ struct ltdc_caps caps; - u32 clut[256]; /* color look up table */ u32 error_status; u32 irq_status; };