Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp272431pxa; Tue, 4 Aug 2020 05:23:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBpPPKeJpLQRCmGkdG2SQNvfTEubw/h0MtZq05bGC/Z3YsGNfDnfoJ3yI+TA3gYTUggsTV X-Received: by 2002:aa7:dcd2:: with SMTP id w18mr20950210edu.307.1596543806051; Tue, 04 Aug 2020 05:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596543806; cv=none; d=google.com; s=arc-20160816; b=mQ1ZQiXXo/NqoaYpXcY6V9ltQufFzlaUUDHZaa3Q98WFKv1YgAR16pXvzB4CATwMj5 UXrQWcTvtgFrKgzaiWRgfYUDrqYYyMhr/qantvDVkD5HT8l0RHPjskuZigOmx2cxFgGu wg9iPQoazPsyjfEtSE11IDTnUHZJcNF5iCpfA5W1dLsZnJlP012y4cXDud51RUZn9Qlt D5P4eiDwSpLG6BHocQCOeF6jZ0ZDWoJZQykK7S6A10BPs7CoLXUZatopvuH73WzWczob onLeHO8rlJwlM6Xq69cWIjIwFhZY7UjPAFnE0VNpoc4LnAshUDYqPRqwvjMbkqikuwrz H6WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=xY32lLNAFjWV+x4Stbnzc/k/dUixaA4CRZ0dn348dPc=; b=yirYfI9sOMqXWDeNvBf6Wdjm8e/P6dfMNCIrnt5QcjdOoQ2Nxe9aXThiPxKq0Knxug E2MIhPTkC4szyforFPygaxA3ACO/Gskf0E1iH3NZPekcP+CMubRcWYdlW+crHiVX2wqN 6tygNi47ANgWlrtYZDtSATSfxcbywQd+5wpp4RU4Filk7/mUHDsDDmlcfbXDPawnPgES kKuHLe4KUcZ7hnPaoRpVKTy2LHbtQBovCTjVp+BLTxmq6llXiuilmpkPkhTkxqdYq6ig jl0lASKFuAkIGLk2m+N57BwLXybMFRy+h0owBTordoJjvFdIbft3pNUzXp3IkAypzrxY tIfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZZOJqEZ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lh27si12810425ejb.545.2020.08.04.05.23.02; Tue, 04 Aug 2020 05:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZZOJqEZ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726333AbgHDMRJ (ORCPT + 99 others); Tue, 4 Aug 2020 08:17:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:44392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbgHDMLC (ORCPT ); Tue, 4 Aug 2020 08:11:02 -0400 Received: from localhost (unknown [122.171.202.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E70462177B; Tue, 4 Aug 2020 12:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596542990; bh=gey3esvl8wxAFJQ2OBCATSygwLbCiyTXxmuo4omuQjo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZZOJqEZ7ULpCVvpaR+mEa6S1b07HmtrWcayO6oiJVvACUiM9YU99kR+7yCx509uj+ PqVDfLqST8/x5f9kYzlfz0llp8qz2n58fvd10CVoYrBGEspn96gmX4MXk1wNHuwGG3 oWqka7+RyZxNSFDocwiL3Av/TJINQWNRcXQbUhdc= Date: Tue, 4 Aug 2020 17:39:46 +0530 From: Vinod Koul To: Rob Clark Cc: Konrad Dybcio , Bjorn Andersson , martin.botka1@gmail.com, Sean Paul , David Airlie , Daniel Vetter , Rob Herring , Andy Gross , Kishon Vijay Abraham I , Greg Kroah-Hartman , Michael Turquette , Stephen Boyd , Felipe Balbi , Jordan Crouse , zhengbin , Jeffrey Hugo , AngeloGioacchino Del Regno , Ben Dooks , Krzysztof Wilczynski , Harigovindan P , Brian Masney , Sam Ravnborg , Xiaozhe Shi , Manu Gautam , linux-arm-msm , dri-devel , freedreno , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Linux USB List , linux-clk Subject: Re: [PATCH 4/9] drm/msm/dsi: Add phy configuration for SDM630/636/660 Message-ID: <20200804120946.GQ12965@vkoul-mobl> References: <20200726111215.22361-1-konradybcio@gmail.com> <20200726111215.22361-5-konradybcio@gmail.com> <20200803110016.GL12965@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03-08-20, 09:06, Rob Clark wrote: > On Mon, Aug 3, 2020 at 4:00 AM Vinod Koul wrote: > > > > On 26-07-20, 13:12, Konrad Dybcio wrote: > > > These SoCs make use of the 14nm phy, but at different > > > addresses than other 14nm units. > > > > > > Signed-off-by: Konrad Dybcio > > > --- > > > .../devicetree/bindings/display/msm/dsi.txt | 1 + > > > drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 ++ > > > drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 1 + > > > drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c | 18 ++++++++++++++++++ > > > > Is there a reason why dsi phy needs to be here and not in phy subsystem > > drivers/phy/ ? > > *maybe* it would be possible to split out all of the dsi (and hdmi) > phy to drivers/phy. But splitting out just the new ones wouldn't be > practical (it would duplicate a lot of code, and make the rest of the > dsi code have to deal with both cases). And unlike dp/usb-c I'm not > really sure I see an advantage to justify the churn. So the question would be if it helps in reuse if we do that and does it result in a better solution than dsi code managing the phy. The advantage of framework (like phy) is that different subsystems can use a (phy) driver and common framework helps reduce duplicates. Yes sure the question was not for a new phy but about the whole msm/dsi/phy code and future for it. -- ~Vinod