From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6952EC433EF for ; Mon, 16 May 2022 11:52:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232691AbiEPLw3 (ORCPT ); Mon, 16 May 2022 07:52:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbiEPLw2 (ORCPT ); Mon, 16 May 2022 07:52:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E3E7E0CD for ; Mon, 16 May 2022 04:52:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F11EC6102D for ; Mon, 16 May 2022 11:52:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97CADC385AA; Mon, 16 May 2022 11:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652701944; bh=ut68diDCfJv3RgBFK9QhzpxbMnwcHYQmhINCGtZhizc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g/qRp2TN1d0x3ymegxGekTb5aD89KFb1NsE8NvQv29zMEUk9bf0LkDfo8W4Vhasf+ fPCl7uzEEVDGSa9gC7gveQJDZ9hkeY+pJWfueH2PJC4DX+vCd1OUa/yKbmsA+ykN2N BBmkxyXJWDiqOUh1YHypbRkWyMJ04IIt/vGguuQY/nh2T1lq7wn0icDynJXmm3hGXQ D6HMLgyJriPhRDJvAMroFl6mQ4aa2NChPnsoVLWc9snZBN3/Qm5GXQFbSPoyilkxQB XvXf9VaFLP7+EImJjoUlb8aKQPMfhuWt5EinHSBvAx7gAuV2dtZzlUd3jS+zvnE6Q0 QyiH7wk6w0knw== Date: Mon, 16 May 2022 17:22:19 +0530 From: Vinod Koul To: Dmitry Baryshkov Cc: Andy Gross , Bjorn Andersson , Kishon Vijay Abraham I , Philipp Zabel , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org Subject: Re: [RFC PATCH 0/5] phy: qcom-qmp: split the QMP PHY driver Message-ID: References: <20220516114525.3596196-1-dmitry.baryshkov@linaro.org> <652b11e8-bd2e-e1e1-363f-4f460bb20913@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <652b11e8-bd2e-e1e1-363f-4f460bb20913@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 16-05-22, 14:50, Dmitry Baryshkov wrote: > On 16/05/2022 14:45, Dmitry Baryshkov wrote: > > While adding support for the PCIe EP mode support to the QMP driver I > > couldn't help but notice that the QMP PHY driver has slowly become the a > > beast with tons of conditions and corner cases being inserted here and > > there.r > > > > This an RFC for an attempt to to cleanup the QMP driver by splitting the > > QMP PHY driver into four smaller drivers, each targeting a particular > > family of PHY backends (DP/combo, PCIe, UFS and USB). Yes, this results > > in some code duplication, but I hope that the end result is still better > > than the current situation. > > > > If the idea looks good, I will continue polishing the drivers. A > > feedback regarding the common functions (ones, left in the > > phy-qcom-qmp.c file) would be appreciated. > > Oh. 3 patches out of five bounced because of moving the tables between > source files. It looks like for the review I will have to split this > somehow. Ideas are appreciated. I have released the patches but yes maybe do the table moves one bit at a time...? > > > > > Dmitry Baryshkov (5): > > phy: qcom-qmp: split combo PHY support > > phy: qcom-qmp: split DP data to DP-specific structures > > phy: qcom-qmp: split UFS PHY support > > phy: qcom-qmp: split PCIe PHY support > > phy: qcom-qmp: complete split of the QMP driver > > > > drivers/phy/qualcomm/Makefile | 2 +- > > drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 1362 +++++ > > drivers/phy/qualcomm/phy-qcom-qmp-lib.h | 290 + > > drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 1945 +++++++ > > drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 863 +++ > > drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 2104 ++++++++ > > drivers/phy/qualcomm/phy-qcom-qmp.c | 5983 +-------------------- > > drivers/phy/qualcomm/phy-qcom-qmp.h | 43 + > > 8 files changed, 6732 insertions(+), 5860 deletions(-) > > create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-combo.c > > create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-lib.h > > create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcie.c > > create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-ufs.c > > create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-usb.c > > > > > -- > With best wishes > Dmitry -- ~Vinod