From: Manu Gautam Subject: Re: [PATCH v3 07/16] phy: qcom-qusb2: Add support for different register layouts Date: Tue, 12 Dec 2017 14:21:52 +0530 Message-ID: <3210de61-5094-ce04-5293-b701dc35dd49@codeaurora.org> References: <1511256206-1587-1-git-send-email-mgautam@codeaurora.org> <1511256206-1587-8-git-send-email-mgautam@codeaurora.org> <3c0dca03-bf9e-8747-8c31-546172f88d6f@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <3c0dca03-bf9e-8747-8c31-546172f88d6f-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> Content-Language: en-US Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Vivek Gautam , Kishon Vijay Abraham I Cc: linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Yoshihiro Shimoda , Stephen Boyd , "open list:GENERIC PHY FRAMEWORK" List-Id: linux-arm-msm@vger.kernel.org Hi Vivek, On 12/5/2017 3:53 PM, Vivek Gautam wrote: > > > On 11/21/2017 02:53 PM, Manu Gautam wrote: >> New version of QUSB2 PHY has some registers offset changed. >> Add support to have register layout for a target and update >> the same in phy_configuration. >> >> Signed-off-by: Manu Gautam >> --- >>   drivers/phy/qualcomm/phy-qcom-qusb2.c | 131 ++++++++++++++++++++++++---------- >>   1 file changed, 95 insertions(+), 36 deletions(-) >> >> diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c >> index 4a5b2a1..c0c5358 100644 >> --- a/drivers/phy/qualcomm/phy-qcom-qusb2.c >> +++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c > [snip] >>   /* >> @@ -198,7 +249,8 @@ static void qusb2_phy_set_tune2_param(struct qusb2_phy *qphy) > > We need to add following change to qusb2_phy_set_tune2_param() > since we have register layout now. > > @@ -333,7 +334,7 @@ static void qusb2_phy_set_tune2_param(struct qusb2_phy *qphy) >         } > >         /* Fused TUNE2 value is the higher nibble only */ > -       qusb2_setbits(qphy->base, QUSB2PHY_PORT_TUNE2, val[0] << 0x4); > +       qusb2_setbits(qphy->base, cfg->regs[QUSB2PHY_PORT_TUNE2], val[0] << 0x4); Thanks for catching this. Actually on qusb-v2 PHY, fused value is used to update TUNE1 instead of TUNE2 register. I will make changes accordingly. >  } > > regards > Vivek > -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html