Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1799207ybn; Thu, 26 Sep 2019 02:21:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzleS9qFxIyPRA62dtDZD71CHBFoJlKK5O38KznimDBZ1N6AZkAp3FQWLK3IByad3TR3UMA X-Received: by 2002:aa7:dc49:: with SMTP id g9mr2423641edu.1.1569489713497; Thu, 26 Sep 2019 02:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569489713; cv=none; d=google.com; s=arc-20160816; b=lMxZ5MIoXBbuA8N3F5xMcpvnbmNvZQ9XGI4xRePpqeEw6Zgu/x/Z78PXOggMPZiToU 6VeV9xYwB1W1LRM537ax0tksfpuQS0NR5bcBFir+ebQitMElOyTq1vDWvGhMww6A3UAP fpmIi/3+Tm/wKiXw/6GHZltcddmzFpRY62kpAvkEdyIkRh+h9fjyvJPRnCJWZgSwz0io M682ih/FRL9pbnWpWkAq8xK5VdH4+KktIAz1CE8vZ6Xghyg9U9wO9MeblScvpTdb49BC D1IZAilsL8NK5kAfoQ+EeUpM55N/DVu+wDTuwl/GaIfcaZWudt8Dd42/PcOKmtQIhDQc JeSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=lpAo3uu4Dyg/OQ5zC5Dglqf5pwQWN26o/2EDT3w2wuw=; b=YCpfgV6+/hLVj3hLnApG865BoxRqDMsXYAE/+D82LlumaAuPYkTbpzj3K0VfevWSeF NVs4Tt7u26jcNV2PSDpj6ReG+RvilfY4rA5NshZAOpE6kCdEt/oqy8QWdJpBUKL4/YeI nKNzNm5G7Goh0nBE+ET8eNugIL1cDdNw1aNTTiXiV5VChpikR4YDyjwyd0F4Igb1iLpM wfPAdk9NyZlR7zzZhCmD7WMuOPhDT8dLD52sH3JhuqcODIE7SYqDjvSM/OhBEGqKCwvs 6H5eIdCktO8Kuv827KsUbyqsIUDP3Sxl7JLzQKBFxUVaAPOOMdTfZNQYmJY4PPDRHEkd NeeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hmyPH1l+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jo18si705898ejb.27.2019.09.26.02.21.29; Thu, 26 Sep 2019 02:21:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hmyPH1l+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2634022AbfIYIJk (ORCPT + 99 others); Wed, 25 Sep 2019 04:09:40 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:51496 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2442722AbfIYIJk (ORCPT ); Wed, 25 Sep 2019 04:09:40 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190925080938euoutp026cb1a2feccdbd60f8d95ff6f333d21a6~HoA5h3O2A2989029890euoutp02R for ; Wed, 25 Sep 2019 08:09:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190925080938euoutp026cb1a2feccdbd60f8d95ff6f333d21a6~HoA5h3O2A2989029890euoutp02R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1569398978; bh=lpAo3uu4Dyg/OQ5zC5Dglqf5pwQWN26o/2EDT3w2wuw=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=hmyPH1l+FoJgzs2L2RuEnGzZzCBDyqDI6+UxrLBIXQXTvFk9lYziiZfwY4iFVqvMg ZoW3ugGtCBNf7HyczynUUgWAxTthJxEVH8FBbTkNamj07TL6wxCivTgzELGQJ1GAdH I9NfkZDk6QQ6+/3bxWUGX8F9MWGkkNbUMEJLma04= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190925080938eucas1p2f852704ff9bfa6c14598d9b6a3d784a6~HoA5PyGmn0821508215eucas1p2v; Wed, 25 Sep 2019 08:09:38 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 98.94.04469.2C02B8D5; Wed, 25 Sep 2019 09:09:38 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190925080938eucas1p137dd40d454d0d502efb5d8c04701f70a~HoA48swcA0500405004eucas1p1o; Wed, 25 Sep 2019 08:09:38 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190925080938eusmtrp1dbec5f9fd41ca67829c62c2973abee2e~HoA47XYC_0496404964eusmtrp1B; Wed, 25 Sep 2019 08:09:38 +0000 (GMT) X-AuditID: cbfec7f2-54fff70000001175-dd-5d8b20c2cf82 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 17.9F.04166.2C02B8D5; Wed, 25 Sep 2019 09:09:38 +0100 (BST) Received: from [106.120.51.74] (unknown [106.120.51.74]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190925080937eusmtip2a02839a3701b1772c5f3873977ac4399~HoA4RBOLm1383813838eusmtip2t; Wed, 25 Sep 2019 08:09:37 +0000 (GMT) Subject: Re: [PATCH] drm/bridge/synopsys: dsi: Use devm_platform_ioremap_resource() in __dw_mipi_dsi_probe() To: Yannick FERTRE , Markus Elfring , "dri-devel@lists.freedesktop.org" , Daniel Vetter , David Airlie , =?UTF-8?Q?Heiko_St=c3=bcbner?= , Jernej Skrabec , Jonas Karlman , Laurent Pinchart , Matt Redfearn , Neil Armstrong , Nickey Yang , Philippe CORNU , Sam Ravnborg Cc: LKML , "kernel-janitors@vger.kernel.org" From: Andrzej Hajda Message-ID: <475b8bc5-b7da-bf20-c322-e15e74d19378@samsung.com> Date: Wed, 25 Sep 2019 10:09:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <59343c81-3dd8-023c-6440-d48c8d74e05e@st.com> Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0hTYRj2O7edDSfHVezTpHIhdrcbdbALChHnV4QQWCa58qSRTtnUsiAN s7wlLqFwThNSG2Uq6i4JK5nlcmYXzdKsttRaKy9UTpultu0Y+e95n+d93vd9Pj4SFeUQgeQp WRorl0mTJIQA03W4nm80rSqM3dzcEEBffdaJ0PM6JUq/ck4Q9PzQN5zum3agdOdoH0Zr3y6n 85XVPLq3Ve0WVXacbrVWIbSpOIau+T0OaNulLzitcWkBfSU/l4igmIn+XB5jnKrCmPK8Mpx5 UtKDMPopG85YC80IU329j2BmVQ8xpu1qKcboX1eizKdfRpQpLx3CmZ9NK5jBzzrsoN8Rwe54 NulUBisP2xsnSCyyGdDUbuqs66MeyQYWYQHgk5DaDts7O3gFQECKKA2ABuc04IpJAK/MTCwU PwFsqba720iv5cM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eLShn4W kISwQJ7EqWMrWEASIgLPWSQeTf7OCpJgBkqcvdTPDtGxl1Hi+o+TjCAJNgFNib+bb7KB2LwC dhIvv3SD2SwCqhJzbq8Gs0UFIiQO75jFCFEjKHFy5hOwbZwCVhK/3u+FWqAu8WfeJWYIW16i eetsKFtc4taT+UwTGIVmIWmfhaRlFpKWWUhaFjCyrGIUSS0tzk3PLTbUK07MLS7NS9dLzs/d xAhME9uO/dy8g/HSxuBDjAIcjEo8vA6sXbFCrIllxZW5hxglOJiVRHhnyQCFeFMSK6tSi/Lj i0pzUosPMZoCPTeRWUo0OR+YwvJK4g1NDc0tLA3Njc2NzSyUxHk7BA7GCAmkJ5akZqemFqQW wfQxcXBKNTDa/9t8RMXG45G3D3+jh61FvPDU4ELuq21f1Wb9f92R/Ff/iK0qy/RVpplntbaV TZv7keMkc/uctQkctcvfykRWRHvOWrPNTVCwzE94H4/o8+n3+aZOYO9T02dw6srUV2lcrHBn Qeu/250fM1/anJs8K3bpk7TGwKefs7dLT5MSZw3YOS38c7ISS3FGoqEWc1FxIgC40rnJKQMA AA== X-CMS-MailID: 20190925080938eucas1p137dd40d454d0d502efb5d8c04701f70a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190923090614epcas5p215731e8359c634f7ed76759f68622e4f X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190923090614epcas5p215731e8359c634f7ed76759f68622e4f References: <59343c81-3dd8-023c-6440-d48c8d74e05e@st.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yannick, Markus. On 23.09.2019 11:05, Yannick FERTRE wrote: > Reviewed-by: Yannick Fertré > Tested-by: Yannick Fertré Yannick, next time could you put your tags after tags of the patch, otherwise patchwork is confused and creates incorrect patches [1]. [1]: https://patchwork.freedesktop.org/patch/332360/ > Best regards > > -- > Yannick Fertré | TINA: 166 7152 | Tel: +33 244027152 | Mobile: +33 > 620600270 > Microcontrollers and Digital ICs Group | Microcontrolleurs Division > > > On 9/21/19 8:20 PM, Markus Elfring wrote: >> From: Markus Elfring >> Date: Sat, 21 Sep 2019 20:04:08 +0200 >> >> Simplify this function implementation by using a known wrapper function. >> >> This issue was detected by using the Coccinelle software. >> >> Signed-off-by: Markus Elfring I meant here :) Anyway, patch queued. Regards Andrzej >> --- >> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 7 +------ >> 1 file changed, 1 insertion(+), 6 deletions(-) >> >> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >> index 675442bfc1bd..6ada149af9ef 100644 >> --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >> +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >> @@ -981,7 +981,6 @@ __dw_mipi_dsi_probe(struct platform_device *pdev, >> struct device *dev = &pdev->dev; >> struct reset_control *apb_rst; >> struct dw_mipi_dsi *dsi; >> - struct resource *res; >> int ret; >> >> dsi = devm_kzalloc(dev, sizeof(*dsi), GFP_KERNEL); >> @@ -997,11 +996,7 @@ __dw_mipi_dsi_probe(struct platform_device *pdev, >> } >> >> if (!plat_data->base) { >> - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); >> - if (!res) >> - return ERR_PTR(-ENODEV); >> - >> - dsi->base = devm_ioremap_resource(dev, res); >> + dsi->base = devm_platform_ioremap_resource(pdev, 0); >> if (IS_ERR(dsi->base)) >> return ERR_PTR(-ENODEV); >> >> -- >> 2.23.0 >> >