Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31605913rwd; Fri, 7 Jul 2023 01:37:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlFco98RdMmKKSngYDPxP/gfVHaD0W6I8Qvxvuz5uEGMpngiZEtiHWWAgyU/HEK2wqzMozFL X-Received: by 2002:a54:4591:0:b0:3a3:7e8d:b0b with SMTP id z17-20020a544591000000b003a37e8d0b0bmr3986694oib.22.1688719038387; Fri, 07 Jul 2023 01:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688719038; cv=none; d=google.com; s=arc-20160816; b=PNcS3Hn+R2hhLRBsqOzI/a4A6PLEgQQ/io+pY2enASIqKcCO4/k/H6FHYDw/dnZASS vCZXS+0/8MwCxW+emP66ochRNQ6sQ4nSHKrfVN7PgKsNWDtJcKGB8VJ7jhZofB1YF3/c NqDA1b+WsSC+rMov6AE2y3eC+rOQUY80D+MyKH3gbwdWqJVuKjS3tWhD5q1TJ/Y00BZw GeVJuu9kS9WxOMx+tAApf7r+AZcMPgSR6GYhnxYGI75fBM3io/b/QJ7TjYTbnEfQedEo 5Zw/KXQ7iai3PHGhw3E3eQLxrOV8vxEQR1wV3Sdh6OodU6PCMg3wt8qTZwzYaUacd6cY zNPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PEezH4b2cScdMbpbmxo4PeTYINT2696u1JyjwDyH+Yg=; fh=CvhQBvGbo6FzvSoPiLtmmNePKMI2Goz5iv6F0E+b0N4=; b=wZGM3U0WYLfd89OoP/BWezkFyaRRqzWvvtchSfPu2h6+BYrUuQY6Il0gdAkyv0TkoT 98ahVBhMOSnwXvzRJnuNU5kh/6ce4Z8m8nORI3kv4CfbTYTZVTx9Caglf1fXdfxkIMO9 cvLaaeAgIvu3jhOisT3r7HfsI37yjUn1My8BSChKd71Qp8c1vfbRqDal5YZECIYyu4TN UT9GN/k2FA1tpvnCBAglWR8ugUw2aA9VUhkkWzRF+UiDQpXf/GTfuFGmF9LOgs0sRAEr 6SOwmKqsPlVEAp1nPkIXWEGIeRqUxMZ4+rjmHZFxe1Z0scLDhTvP4LJEUbA/aCqNr+1r 0aPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=K6TfX1n7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ck20-20020a17090afe1400b00259b2f52633si1643180pjb.166.2023.07.07.01.37.06; Fri, 07 Jul 2023 01:37:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=K6TfX1n7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231965AbjGGIdi (ORCPT + 99 others); Fri, 7 Jul 2023 04:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjGGIdh (ORCPT ); Fri, 7 Jul 2023 04:33:37 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 764AE90; Fri, 7 Jul 2023 01:33:36 -0700 (PDT) Received: from pendragon.ideasonboard.com (85-76-32-136-nat.elisa-mobile.fi [85.76.32.136]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1B31B558; Fri, 7 Jul 2023 10:32:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1688718768; bh=MhmJ9pJ9a55aNDKmho1ipzodgSmPCUeGpN8jVIoi1BM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K6TfX1n7nEa3q8K8A56uubRqLS51TypqiKorlVPT5ruw7+2Fx6CS2/44IOziX9RUg y31CoOkEi+cNPZYSpdlRghX7/+jd7UaKoryNvLoFOt5GNcz05qobXUF15z7r5lI29j nS5pcxwa0r0lMb3N5mkXwrnyNU9U3GWafE6j+Fjk= Date: Fri, 7 Jul 2023 11:33:29 +0300 From: Laurent Pinchart To: Yangtao Li Cc: Kieran Bingham , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/18] drm/renesas: Convert to devm_platform_ioremap_resource() Message-ID: <20230707083329.GA16622@pendragon.ideasonboard.com> References: <20230707072034.48977-1-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230707072034.48977-1-frank.li@vivo.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yangtao, Thank you for the patch. On Fri, Jul 07, 2023 at 03:20:17PM +0800, Yangtao Li wrote: > Use devm_platform_ioremap_resource() to simplify code. > > Signed-off-by: Yangtao Li Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c > index e10e4d4b89a2..4bf9f5d15fa8 100644 > --- a/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c > +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_mipi_dsi.c > @@ -1002,7 +1002,6 @@ static int rcar_mipi_dsi_get_clocks(struct rcar_mipi_dsi *dsi) > static int rcar_mipi_dsi_probe(struct platform_device *pdev) > { > struct rcar_mipi_dsi *dsi; > - struct resource *mem; > int ret; > > dsi = devm_kzalloc(&pdev->dev, sizeof(*dsi), GFP_KERNEL); > @@ -1019,8 +1018,7 @@ static int rcar_mipi_dsi_probe(struct platform_device *pdev) > return ret; > > /* Acquire resources. */ > - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - dsi->mmio = devm_ioremap_resource(dsi->dev, mem); > + dsi->mmio = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(dsi->mmio)) > return PTR_ERR(dsi->mmio); > -- Regards, Laurent Pinchart