Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1441001

Re: [PATCH v2 18/22] usb: chipidea: msm: Add reset controller for PHY POR bit

From Peter Chen <hzpeterchen@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 18/22] usb: chipidea: msm: Add reset controller for PHY POR bit
Date 2016-07-12 03:20 +0200
Message-ID <rTUwF-6pa-1@gated-at.bofh.it> (permalink)
References <rSpXX-4yB-3@gated-at.bofh.it> <rSpXX-4yB-25@gated-at.bofh.it> <rTCgp-2Rz-7@gated-at.bofh.it> <rTRyN-4zt-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jul 11, 2016 at 03:07:24PM -0700, Stephen Boyd wrote:
> On 10 July 2016 at 22:32, Peter Chen <hzpeterchen@gmail.com> wrote:
> > On Thu, Jul 07, 2016 at 03:21:09PM -0700, Stephen Boyd wrote:
> >> @@ -40,11 +43,38 @@ struct ci_hdrc_msm {
> >>       struct clk *iface_clk;
> >>       struct clk *fs_clk;
> >>       struct ci_hdrc_platform_data pdata;
> >> +     struct reset_controller_dev rcdev;
> >>       bool secondary_phy;
> >>       bool hsic;
> >>       void __iomem *base;
> >>  };
> >>
> >> +static int
> >> +ci_hdrc_msm_por_reset(struct reset_controller_dev *r, unsigned long id)
> >> +{
> >> +     struct ci_hdrc_msm *ci_msm = container_of(r, struct ci_hdrc_msm, rcdev);
> >> +     void __iomem *addr = ci_msm->base;
> >> +     u32 val;
> >> +
> >> +     if (id)
> >> +             addr += HS_PHY_SEC_CTRL;
> >> +     else
> >> +             addr += HS_PHY_CTRL;
> >> +
> >> +     val = readl_relaxed(addr);
> >> +     val |= HS_PHY_POR_ASSERT;
> >> +     writel(val, addr);
> >> +     udelay(12);
> >
> > Does this delay is reference manual defines or experienced value?
> > Do you need to comment it?
> >
> 
> 10us comes from the manual but we add two more from experience. I can
> add a comment to that effect similar to the one above udelay(12) in
> phy-msm-usb.c?

Yes, you can move that comments from there.

-- 

Best Regards,
Peter Chen

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 18/22] usb: chipidea: msm: Add reset controller for  PHY POR bit Peter Chen <hzpeterchen@gmail.com> - 2016-07-11 07:50 +0200
  Re: [PATCH v2 18/22] usb: chipidea: msm: Add reset controller for PHY  POR bit Stephen Boyd <stephen.boyd@linaro.org> - 2016-07-12 00:10 +0200
    Re: [PATCH v2 18/22] usb: chipidea: msm: Add reset controller for  PHY POR bit Peter Chen <hzpeterchen@gmail.com> - 2016-07-12 03:20 +0200

csiph-web