Received: by 10.223.164.202 with SMTP id h10csp3816612wrb; Tue, 28 Nov 2017 18:11:08 -0800 (PST) X-Google-Smtp-Source: AGs4zMa6u4mvN3iVKBVWODcbvz1alzOSBG7e2fKFXagVBr1vo5ltKCWcXKzOLHxTgo+jxd6/3SPR X-Received: by 10.101.65.197 with SMTP id b5mr1204817pgq.91.1511921468190; Tue, 28 Nov 2017 18:11:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511921468; cv=none; d=google.com; s=arc-20160816; b=fcv3/oo1PrxJaPcQDL+rFgCcZ5C7YTCY0atAbC+Iwr4aTEnhKcawMV78G4pBl/JCCI JhBaSTBBDENP392RTLzp9mgp0AKXGBP5zElO/CVtbwHwcUXzl/5CIebPZUJP9m67wICi IGtmCBKJNkqqv5WzEKLohGccJalnkZEB3o1DYIEeeBHCvlYcF4noHd+X6WxBRl+JX7j2 f3uLTUyDQrZg2j/hUyxhB9tD8OVaBxEIAEh1YwZSUQkk0stFgVtxKu2807WoqXERll7Y 5rOqdLfCje4UL/wY9RA+078k7GQGb9R8fF9UxYLaZeC/O4s5OepITKJLnJnJTXIfgNWT CcyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=jTPikPEz7ZuZU4zFrA/RjxS3ip41Sa1LFdAiIN0N8LU=; b=RmOzD6NS+LET/eLucVL+3obJ8p+ylr88MBw9G7pTku+vTTyIUDMUj9VrTGphZ3gFL3 vfDMbxK9SW7IQ20EDHLtXEL94GEPi9C0Ht8Eph7QFSe9iPCu/IuXwFvs03cBV5ErHt6o 1uxPkVlKwY7A5+6BwPUCWyrWT6PYWcYdaXlzDkzjEXA7HhU/BgQx9QW+FfjHrCmTF8fJ weCCaxPclIsciXam2ie3AOhc98879yNY50JZ9U3U1R7rKBMGwrt84cOTMzkD0flPqaRk duc00fTnos0ZAhFQSuKW3w8CKr7ZqNEMCw6GYKN2aZ2UxW2a6PZwO8TVTyycChjDNEk8 appw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=l6c5jOVO; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11si422443pgq.406.2017.11.28.18.10.57; Tue, 28 Nov 2017 18:11:08 -0800 (PST) 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=@chromium.org header.s=google header.b=l6c5jOVO; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752071AbdK2CKU (ORCPT + 70 others); Tue, 28 Nov 2017 21:10:20 -0500 Received: from mail-yw0-f195.google.com ([209.85.161.195]:35652 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751239AbdK2CKT (ORCPT ); Tue, 28 Nov 2017 21:10:19 -0500 Received: by mail-yw0-f195.google.com with SMTP id m81so796852ywd.2 for ; Tue, 28 Nov 2017 18:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jTPikPEz7ZuZU4zFrA/RjxS3ip41Sa1LFdAiIN0N8LU=; b=l6c5jOVONcb+8rbzX1eQfikz0XXtCwQ0hTqMxvvdgb9sT8+1rrLkfeoW18myUheQD9 iomXFuenpDpPip5hl5oL+RXusHm7bcijMjmYZiZeSkak30pl7K2SBI/u09bns2yQ35KS C6iORxatIUZ60vVgIesBThq3DHjAnFGkvDjYo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jTPikPEz7ZuZU4zFrA/RjxS3ip41Sa1LFdAiIN0N8LU=; b=uB7i0hoCEXZbx4cnR4+sAkPt3X8mA4bfZ2Hps32kPMAPRIqyv7asWWvsLSnwZjTCtK VUrx9J7v3rdEUCZcXpIM1cidnQqHMnYneF0QI7A8Gx62zV49nVE6I7PomeVQeIG0ATDt EYUKyVA05gfKqH+3lybKSXhgJDbp9Gpw9ETHz5DJehqjaw1NWKAjQ/CdqwEcvfQGdL9R Z/Jmb5cdZE3zJoub7rvzqCsSPokhUPPeOo7+OrqSzmbYsVmfYS7L3iaQ0ELHSSyJFvRi cSrbPH2UqxdfVsyL7lMAGKDkwtAqWCkrQClca1UCWBh1UH91w5bEs2AbVgL9yW6wML5v qn1Q== X-Gm-Message-State: AJaThX6KPeN0wQ5UTUpevuEOmSgFiPKvDppTXdmNISZ9fYWcyy5vC66Y 2NZOS+ezq93g74JKTLzaqaNFJg== X-Received: by 10.129.53.11 with SMTP id c11mr877221ywa.82.1511921418723; Tue, 28 Nov 2017 18:10:18 -0800 (PST) Received: from localhost ([2620:0:1013:11:d3af:69ac:1964:28e8]) by smtp.gmail.com with ESMTPSA id v4sm344332ywv.37.2017.11.28.18.10.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Nov 2017 18:10:18 -0800 (PST) Date: Tue, 28 Nov 2017 21:10:17 -0500 From: Sean Paul To: Brian Norris Cc: Nickey Yang , robh+dt@kernel.org, heiko@sntech.de, mark.rutland@arm.com, airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, seanpaul@chromium.org, mka@chromium.org, hoegsberg@gmail.com, architt@codeaurora.org, philippe.cornu@st.com, yannick.fertre@st.com, hl@rock-chips.com, zyw@rock-chips.com, xbl@rock-chips.com Subject: Re: [PATCH v3 2/5] drm/stm: dsi: Adjust dw_mipi_dsi_probe and remove Message-ID: <20171129021017.76wbflr4w5dqhxsl@art_vandelay> References: <1511868006-27130-1-git-send-email-nickey.yang@rock-chips.com> <1511868006-27130-3-git-send-email-nickey.yang@rock-chips.com> <20171128184129.GB116479@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171128184129.GB116479@google.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 28, 2017 at 10:41:29AM -0800, Brian Norris wrote: > Hi Nickey, > > On Tue, Nov 28, 2017 at 07:20:03PM +0800, Nickey Yang wrote: > > Bridge drivers/helpers shouldn't be clobbering the drvdata, since a > > parent driver might need to own this. Instead, let's return our > > Other reviews have suggested this might be described as "SoC glue > driver", not "parent driver". Also, the subject probably should include > either "mipi" or "dw-mipi-dsi". > > > 'dw_mipi_dsi' object and have callers pass that back to us for removal. > > So adjust it. > > > > Signed-off-by: Nickey Yang > > --- > > drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 8 +++++--- > > 1 file changed, 5 insertions(+), 3 deletions(-) > > So, you've split my patch in 2 and called it your own (see patch 1, > which still has the 'From' (i.e., author) line as "Nickey Yang", not > "Brian Norris"). You need to keep the author accurate. (It's good to add > an additional 'Signed-off-by' of your own, but keep the author.) > Also cc everyone who commented on the previous version of the patch so they can review the new version. Laurent had questions about the patch, and was not cc'd here. Sean > When developing in your local git tree, make sure that the 'Author' line > is accurate in 'git log'. Then 'git format-patch + git send-email' will > format things correctly, such that your email headers will say "From: > Nickey Yang", but then git-send-email will make sure there's an > additional line within the body of the email to attribute the author. > > For example, see how this patch was sent by Doug in a later series, but has my > authorship: > > https://patchwork.kernel.org/patch/9188419/ > > The email header says: > > From: Douglas Anderson > > but the body of the mail includes: > > From: Brian Norris > > This ends up correctly-attributed in the mainline git tree: > > commit 36b5d460261f16563f9196c49c936b3e17d237e3 > Author: Brian Norris > Date: Mon Jun 20 10:56:42 2016 -0700 > > phy: rockchip-emmc: configure default output tap delay > ... > Signed-off-by: Brian Norris > Signed-off-by: Douglas Anderson > > > But more importantly: you can't split my patch in 2, because it makes > the series non-bisectable. As you split it, patch 1 is making an API > change, but it doesn't update the drivers that use that API. So the STM > DSI driver doesn't compile if you apply only patch 1. That's discouraged > within the Linux kernel. > > So, let's make sure to keep this patch in 1 piece. > > Brian > > > > > diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > > index e5b6310..80f9950 100644 > > --- a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > > +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c > > @@ -66,6 +66,7 @@ enum dsi_color { > > struct dw_mipi_dsi_stm { > > void __iomem *base; > > struct clk *pllref_clk; > > + struct dw_mipi_dsi *dmd; > > }; > > > > static inline void dsi_write(struct dw_mipi_dsi_stm *dsi, u32 reg, u32 val) > > @@ -318,10 +319,11 @@ static int dw_mipi_dsi_stm_probe(struct platform_device *pdev) > > dw_mipi_dsi_stm_plat_data.base = dsi->base; > > dw_mipi_dsi_stm_plat_data.priv_data = dsi; > > > > - ret = dw_mipi_dsi_probe(pdev, &dw_mipi_dsi_stm_plat_data); > > - if (ret) { > > + dsi->dmd = dw_mipi_dsi_probe(pdev, &dw_mipi_dsi_stm_plat_data); > > + if (IS_ERR(dsi->dmd)) { > > DRM_ERROR("Failed to initialize mipi dsi host\n"); > > clk_disable_unprepare(dsi->pllref_clk); > > + return PTR_ERR(dsi->dmd); > > } > > > > return ret; > > @@ -332,7 +334,7 @@ static int dw_mipi_dsi_stm_remove(struct platform_device *pdev) > > struct dw_mipi_dsi_stm *dsi = dw_mipi_dsi_stm_plat_data.priv_data; > > > > clk_disable_unprepare(dsi->pllref_clk); > > - dw_mipi_dsi_remove(pdev); > > + dw_mipi_dsi_remove(dsi->dmd); > > > > return 0; > > } > > -- > > 1.9.1 > > -- Sean Paul, Software Engineer, Google / Chromium OS From 1585336359444626193@xxx Tue Nov 28 18:42:48 +0000 2017 X-GM-THRID: 1585308689846818181 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread