Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp382004pxa; Tue, 4 Aug 2020 07:52:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX9MvNEI1F1aVdcisnLF1YxWfjIr7dxbIEtZFOcS3Jyigk7ZQvwkCwe0rGEpOwbCisTQRH X-Received: by 2002:a17:906:454f:: with SMTP id s15mr11477631ejq.130.1596552740504; Tue, 04 Aug 2020 07:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596552740; cv=none; d=google.com; s=arc-20160816; b=r3yHP6rxlECgCgt+tf+Cmz0ojB49cocWkuzR/jh6HNTunCRCbFFD8E4XDGHBln2knR oWQw2wI8U8WZ/pDyhAWj+es1tomYW0Sg8PxPlvVMfiXe8z2llu24KJGbWDMH62s2NYhh cXKvOozxIrWrH52l+BdE46M+2OE+5zz3ewIdKEWP1NQ7AxXIUCeAvh9ZiEhrH2HO0Im/ cFjMD+Oeq54W5XDJnn+8V+nS9qP3XdHs9uq/+//mqKD1EIgR3dkRQj4USInMOurbTo4p pv5AE95TKF+bfIhAd6dJ/g0Lo7ndkMcHujA4O3Dt92sP4FFs5oI4SGSAnKqhmLqK6l+A e/CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=g4HmwOYH2FipfU55YwXNgn+/KWI9nU6qQar00eEKnTI=; b=E+OFqfDdwzJVyadP6/GgneBp9cIUaxA7wf6zF6YLM7mo+0KExI3vvJnt9qdL/nHrHR /2dawG3tLUsxbpWxhlE89Iu+UNPrCXkIrQ2ZOhnrfeBuhsClrwmi8cCtG7WBNnVn7c5I QfN0TGNJm0SGyuEll9NA+1xJ8qNnhvGWr/Du0/LfXHEpBI11q/whVeGSPgizi6kLoseG ZKKZw283bb/GdoGlqrEmiaNoSFYUXm7N/qtv2966ANDQQzNtRnHsWnToF+OJQxQzlGbh W4/I/zmrKFoAmvJsJgrQSQ3O5jx0FBBSkNMh5bVa7zuuDD+x1eb2MRI2B9ttEsK/iCno CY3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jARuo43f; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u12si12525402edp.476.2020.08.04.07.51.46; Tue, 04 Aug 2020 07:52:20 -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=@gmail.com header.s=20161025 header.b=jARuo43f; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729427AbgHDOtQ (ORCPT + 99 others); Tue, 4 Aug 2020 10:49:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728478AbgHDOtC (ORCPT ); Tue, 4 Aug 2020 10:49:02 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D025C06174A; Tue, 4 Aug 2020 07:49:01 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id c10so367736edk.6; Tue, 04 Aug 2020 07:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g4HmwOYH2FipfU55YwXNgn+/KWI9nU6qQar00eEKnTI=; b=jARuo43f4imeZbHxuoML4wNyRPTOwuEdSxdGaGmmEjiQMf0k+ARZ+35S8UliQueShq eP0wC8Ag/bCp+Zrr1kaAC9ZuZGyh2J/cqvk1OBx0WpDyelZgZdAiRCd0WFo8tZmYqo0Y 7PiuhEGNILTeXGo46kKTLVePah8v3wCgRDJum0EXMPbocMpUleVTqO0Y272GXbjUyPH5 lYGAdiePK9a28RHry1cVndmlMfgRO4RvoJjBqJJDQK0K4ygPlXwB8/yGPyFFCbWItV6u UQ9oavX098EpyXsAOA9V3NiotNgRWXOY0NuVucJnh4q/wfX2aBpvyy4qCt4UMFYOlEUY KpZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g4HmwOYH2FipfU55YwXNgn+/KWI9nU6qQar00eEKnTI=; b=uR4s7fc9k2GygDjZrzGQfdgslSJPqYUsMsgudBI6P6JrHsSCjsqa3ghYclKZsbviIs maHrjwbUOu+MX6+bfmZxTyCKwnUKgYrV5Q0HQUfHXm67e7VVaV9TswcPioa5SnVLzJmI +Mha3XjMjfIeOcTXUs1du3EV0h10LJjy2wej36TiqFAf4wpG0ICs0ofpCE98ootnAyce ZQQHB05KaLvAXixjn4RmJt2PQ2Pi7zZ7jgYv5WcjMKM0xDYkgJBNu+duwgWIDEHGuunH ViEfzHSZGoPE5yOduI3fOC9g9n0q4Mixzn2/fwMG0zEx/KD3LSfW1gplJfxBsGmhQDdt d9hw== X-Gm-Message-State: AOAM530/c0gq4NONL6YrIlnQtKdGFPv+LIHPB0KgPRrAUsjwlPWOSH8Q IEjjoyONn2j0TZCGH2XC+Txd05ALmpuSVHq7BI0= X-Received: by 2002:aa7:da46:: with SMTP id w6mr17536741eds.7.1596552540239; Tue, 04 Aug 2020 07:49:00 -0700 (PDT) MIME-Version: 1.0 References: <20200726111215.22361-1-konradybcio@gmail.com> <20200726111215.22361-5-konradybcio@gmail.com> <20200803110016.GL12965@vkoul-mobl> <20200804120946.GQ12965@vkoul-mobl> In-Reply-To: <20200804120946.GQ12965@vkoul-mobl> From: Rob Clark Date: Tue, 4 Aug 2020 07:49:44 -0700 Message-ID: Subject: Re: [PATCH 4/9] drm/msm/dsi: Add phy configuration for SDM630/636/660 To: Vinod Koul 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 4, 2020 at 5:09 AM Vinod Koul wrote: > > 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. I'm not aware of any re-use that would be possible by splitting it out.. if there were, it would be a more compelling argument. It does increase the complexity and possibilities for getting kernel config wrong. There are devices like the aarch64 laptops which do not have a debug serial port, where debugging issues like that can be a pain when you get no display. OTOH that might be balanced out a bit by using a common framework/api that others are familiar with. Overall, nowhere near high enough on my priority list to spend time on.. there are bigger fires. If someone was really motivated about this and wanted to send (tested) patches, then I'd take a look and see how it turned out. BR, -R > Yes sure the question was not for a new phy but about the whole > msm/dsi/phy code and future for it. > > -- > ~Vinod