From: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
To: Julius Werner <jwerner@chromium.org>
Cc: Felipe Balbi <balbi@ti.com>, LKML <linux-kernel@vger.kernel.org>,
linux-samsung-soc@vger.kernel.org,
Tomasz Figa <t.figa@samsung.com>,
Vivek Gautam <gautam.vivek@samsung.com>,
devicetree@vger.kernel.org, Kamil Debski <k.debski@samsung.com>
Subject: Re: [PATCH] usb: phy-samsung-usb: Simplify PMU register handling
Date: Mon, 29 Jul 2013 23:46:47 +0200 [thread overview]
Message-ID: <51F6E2C7.9000407@gmail.com> (raw)
In-Reply-To: <CAODwPW-hxtazAO=scZR+ZWK5hwdWMQXFBeYLd1qqau+a9tMCvA@mail.gmail.com>
On 07/29/2013 11:12 PM, Julius Werner wrote:
>>> - if (sphy->phy_type == USB_PHY_TYPE_DEVICE) {
>>> - reg = sphy->pmuregs + sphy->drv_data->devphy_reg_offset;
>>> - en_mask = sphy->drv_data->devphy_en_mask;
>>> - } else if (sphy->phy_type == USB_PHY_TYPE_HOST) {
>>> - reg = sphy->pmuregs + sphy->drv_data->hostphy_reg_offset;
>>> - en_mask = sphy->drv_data->hostphy_en_mask;
>>> - }
>>
>>
>> How is en_mask supposed to get initialized, now when this code is removed ?
>> It's always 0 now, isn't it ?
>>
>
> Whoops... oh, I'm really sorry about that. I ported the patch from a
> branch with slightly different code there and overlooked this. Thanks
> for catching it, will send v2 in a minute.
v2 looks good, thanks. :) As a side note, we are working on the USB PHYs
driver using the generic PHY framework (actually Kamil is working on that).
Thus it is likely the original driver will get replaced in near future by
something else. Not sure when that happens exactly but I suspect it is
not worth to invest in the Samsung USB PHY drivers at drivers/usb/phy/
too much and introduce changes, especially in *.dts, that won't be for
long time in use. Perhaps Kamil can provide more details on which devices
are initially going to be covered by the new driver.
--
Thanks,
Sylwester
prev parent reply other threads:[~2013-07-29 21:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-29 20:47 [PATCH] usb: phy-samsung-usb: Simplify PMU register handling Julius Werner
2013-07-29 21:03 ` Sylwester Nawrocki
2013-07-29 21:12 ` Julius Werner
2013-07-29 21:46 ` Sylwester Nawrocki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51F6E2C7.9000407@gmail.com \
--to=sylvester.nawrocki@gmail.com \
--cc=balbi@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=gautam.vivek@samsung.com \
--cc=jwerner@chromium.org \
--cc=k.debski@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=t.figa@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).