Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752587AbdLFVjI (ORCPT ); Wed, 6 Dec 2017 16:39:08 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36561 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751610AbdLFVjD (ORCPT ); Wed, 6 Dec 2017 16:39:03 -0500 X-Google-Smtp-Source: AGs4zMYpZbPIB/HHWsrePywfnj6l41sBEdadsx/0HYlceTdyGEbyvUfYNM5ciQ56nUKA3Drc+kqk+Q== Date: Wed, 6 Dec 2017 13:39:00 -0800 From: Brian Norris To: Nickey Yang Cc: 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, laurent.pinchart@ideasonboard.com, 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 v6 1/3] drm/bridge/synopsys: dsi: stop clobbering drvdata Message-ID: <20171206213858.GA14257@google.com> References: <1512551301-12946-1-git-send-email-nickey.yang@rock-chips.com> <1512551301-12946-2-git-send-email-nickey.yang@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1512551301-12946-2-git-send-email-nickey.yang@rock-chips.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1633 Lines: 49 On Wed, Dec 06, 2017 at 05:08:19PM +0800, Nickey Yang wrote: > From: Brian Norris > > Bridge drivers/helpers shouldn't be clobbering the drvdata, since a > parent driver might need to own this. Instead, let's return our > 'dw_mipi_dsi' object and have callers pass that back to us for removal. > > Signed-off-by: Brian Norris > Signed-off-by: Nickey Yang > Link:https://patchwork.kernel.org/patch/10078493/ > > --- > Changes > > v4: > - Add From tag,update subject line > - keep patch "drm/stm: dsi: Adjust dw_mipi_dsi_probe and remove" > in this piece together. > > v5: > - remove Review & Ack tag > - fix remove() directly referencing the static > dw_mipi_dsi_stm_plat_data struct. You've gotten this back into basically the shape I sent v1 in, so I guess this deserves an: Acked-by: Brian Norris :) Only net changes: you renamed the 'dsi' field to 'dmd' (Dwc Mipi Device?), and my 'return 0' changed back to the original 'return ret' at the end of probe(). Doesn't make any functional difference, so fine with me. If everybody's just as happy with this as with the first version...should it just be applied now, regardless of the status of the next 2 patches? Could help reduce the discussion (and confusion) surface. Regards, Brian > drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 36 ++++++++++----------------- > drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 10 +++++--- > include/drm/bridge/dw_mipi_dsi.h | 17 ++++++++----- > 3 files changed, 30 insertions(+), 33 deletions(-) ...