SUPERH platform development
 help / color / mirror / Atom feed
* [PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value
@ 2015-04-02 11:22 Yoshihiro Shimoda
  2015-04-27 19:45 ` Felipe Balbi
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Yoshihiro Shimoda @ 2015-04-02 11:22 UTC (permalink / raw)
  To: linux-sh

According to the technical update (No. TN-RCS-B011A/E), the UGSTS LOCK
bit location is bit 8, not bits 9 and 8. So, this patch fixes the
USBHS_UGSTS_LOCK value.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 drivers/usb/phy/phy-rcar-gen2-usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/phy/phy-rcar-gen2-usb.c b/drivers/usb/phy/phy-rcar-gen2-usb.c
index f838084..f81800b 100644
--- a/drivers/usb/phy/phy-rcar-gen2-usb.c
+++ b/drivers/usb/phy/phy-rcar-gen2-usb.c
@@ -47,7 +47,7 @@ struct rcar_gen2_usb_phy_priv {
 
 /* USB General status register */
 #define USBHS_UGSTS_REG			0x88
-#define USBHS_UGSTS_LOCK		(3 << 8)
+#define USBHS_UGSTS_LOCK		(1 << 8)
 
 /* Enable USBHS internal phy */
 static int __rcar_gen2_usbhs_phy_enable(void __iomem *base)
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value
  2015-04-02 11:22 [PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value Yoshihiro Shimoda
@ 2015-04-27 19:45 ` Felipe Balbi
  2015-04-28  1:36 ` Yoshihiro Shimoda
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2015-04-27 19:45 UTC (permalink / raw)
  To: linux-sh

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

Hi,

On Thu, Apr 02, 2015 at 08:22:34PM +0900, Yoshihiro Shimoda wrote:
> According to the technical update (No. TN-RCS-B011A/E), the UGSTS LOCK
> bit location is bit 8, not bits 9 and 8. So, this patch fixes the
> USBHS_UGSTS_LOCK value.
> 
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

this doesn't apply to v4.1-rc1, if it's still needed, please rebase.

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value
  2015-04-02 11:22 [PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value Yoshihiro Shimoda
  2015-04-27 19:45 ` Felipe Balbi
@ 2015-04-28  1:36 ` Yoshihiro Shimoda
  2015-04-28  9:55 ` Geert Uytterhoeven
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Yoshihiro Shimoda @ 2015-04-28  1:36 UTC (permalink / raw)
  To: linux-sh

Hi,

> Sent: Tuesday, April 28, 2015 4:45 AM
> 
> Hi,
> 
> On Thu, Apr 02, 2015 at 08:22:34PM +0900, Yoshihiro Shimoda wrote:
> > According to the technical update (No. TN-RCS-B011A/E), the UGSTS LOCK
> > bit location is bit 8, not bits 9 and 8. So, this patch fixes the
> > USBHS_UGSTS_LOCK value.
> >
> > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> 
> this doesn't apply to v4.1-rc1, if it's still needed, please rebase.

Thank you for the notice. I found that this patch has been already merged in v4.1-rc1 by Greg.

Best regards,
Yoshihiro Shimoda

> --
> balbi

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value
  2015-04-02 11:22 [PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value Yoshihiro Shimoda
  2015-04-27 19:45 ` Felipe Balbi
  2015-04-28  1:36 ` Yoshihiro Shimoda
@ 2015-04-28  9:55 ` Geert Uytterhoeven
  2015-04-28 10:25 ` Yoshihiro Shimoda
  2015-04-28 11:21 ` Geert Uytterhoeven
  4 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2015-04-28  9:55 UTC (permalink / raw)
  To: linux-sh

Hi Shimoda-san,

On Tue, Apr 28, 2015 at 3:36 AM, Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com> wrote:
>> Sent: Tuesday, April 28, 2015 4:45 AM
>> On Thu, Apr 02, 2015 at 08:22:34PM +0900, Yoshihiro Shimoda wrote:
>> > According to the technical update (No. TN-RCS-B011A/E), the UGSTS LOCK
>> > bit location is bit 8, not bits 9 and 8. So, this patch fixes the
>> > USBHS_UGSTS_LOCK value.
>> >
>> > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
>>
>> this doesn't apply to v4.1-rc1, if it's still needed, please rebase.
>
> Thank you for the notice. I found that this patch has been already merged in v4.1-rc1 by Greg.

drivers/usb/phy/phy-rcar-gen2-usb.c (which supports legacy platform data only)
is unused since commit a483dcbfa21f919c ("ARM: shmobile: lager: Remove
legacy board support").

It's my understanding this driver has been replaced by a new driver, which
supports DT only (drivers/phy/phy-rcar-gen2.c).
That driver still has the wrong value:
#define USBHS_UGSTS_LOCK                0x00000300 /* The manuals have 0x3 */

So:
  1) Shouldn't drivers/phy/phy-rcar-gen2.c be fixed?
  2) Shouldn't drivers/usb/phy/phy-rcar-gen2-usb.c et al be removed?

Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value
  2015-04-02 11:22 [PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value Yoshihiro Shimoda
                   ` (2 preceding siblings ...)
  2015-04-28  9:55 ` Geert Uytterhoeven
@ 2015-04-28 10:25 ` Yoshihiro Shimoda
  2015-04-28 11:21 ` Geert Uytterhoeven
  4 siblings, 0 replies; 6+ messages in thread
From: Yoshihiro Shimoda @ 2015-04-28 10:25 UTC (permalink / raw)
  To: linux-sh

SGkgR2VlcnQtc2FuLA0KDQpUaGFuayB5b3UgZm9yIHlvdXIgY29tbWVudCENCg0KPiBTZW50OiBU
dWVzZGF5LCBBcHJpbCAyOCwgMjAxNSA2OjU1IFBNDQo+IA0KPiBIaSBTaGltb2RhLXNhbiwNCj4g
DQo+IE9uIFR1ZSwgQXByIDI4LCAyMDE1IGF0IDM6MzYgQU0sIFlvc2hpaGlybyBTaGltb2RhDQo+
IDx5b3NoaWhpcm8uc2hpbW9kYS51aEByZW5lc2FzLmNvbT4gd3JvdGU6DQo+ID4+IFNlbnQ6IFR1
ZXNkYXksIEFwcmlsIDI4LCAyMDE1IDQ6NDUgQU0NCj4gPj4gT24gVGh1LCBBcHIgMDIsIDIwMTUg
YXQgMDg6MjI6MzRQTSArMDkwMCwgWW9zaGloaXJvIFNoaW1vZGEgd3JvdGU6DQo+ID4+ID4gQWNj
b3JkaW5nIHRvIHRoZSB0ZWNobmljYWwgdXBkYXRlIChOby4gVE4tUkNTLUIwMTFBL0UpLCB0aGUg
VUdTVFMgTE9DSw0KPiA+PiA+IGJpdCBsb2NhdGlvbiBpcyBiaXQgOCwgbm90IGJpdHMgOSBhbmQg
OC4gU28sIHRoaXMgcGF0Y2ggZml4ZXMgdGhlDQo+ID4+ID4gVVNCSFNfVUdTVFNfTE9DSyB2YWx1
ZS4NCj4gPj4gPg0KPiA+PiA+IFNpZ25lZC1vZmYtYnk6IFlvc2hpaGlybyBTaGltb2RhIDx5b3No
aWhpcm8uc2hpbW9kYS51aEByZW5lc2FzLmNvbT4NC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[PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value
  2015-04-02 11:22 [PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value Yoshihiro Shimoda
                   ` (3 preceding siblings ...)
  2015-04-28 10:25 ` Yoshihiro Shimoda
@ 2015-04-28 11:21 ` Geert Uytterhoeven
  4 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2015-04-28 11:21 UTC (permalink / raw)
  To: linux-sh

Hi Shimoda-san,

On Tue, Apr 28, 2015 at 12:25 PM, Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com> wrote:
>> Sent: Tuesday, April 28, 2015 6:55 PM
>> On Tue, Apr 28, 2015 at 3:36 AM, Yoshihiro Shimoda
>> <yoshihiro.shimoda.uh@renesas.com> wrote:
>> >> Sent: Tuesday, April 28, 2015 4:45 AM
>> >> On Thu, Apr 02, 2015 at 08:22:34PM +0900, Yoshihiro Shimoda wrote:
>> >> > According to the technical update (No. TN-RCS-B011A/E), the UGSTS LOCK
>> >> > bit location is bit 8, not bits 9 and 8. So, this patch fixes the
>> >> > USBHS_UGSTS_LOCK value.
>> >> >
>> >> > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
>> >>
>> >> this doesn't apply to v4.1-rc1, if it's still needed, please rebase.
>> >
>> > Thank you for the notice. I found that this patch has been already merged in v4.1-rc1 by Greg.
>>
>> drivers/usb/phy/phy-rcar-gen2-usb.c (which supports legacy platform data only)
>> is unused since commit a483dcbfa21f919c ("ARM: shmobile: lager: Remove
>> legacy board support").
>>
>> It's my understanding this driver has been replaced by a new driver, which
>> supports DT only (drivers/phy/phy-rcar-gen2.c).
>
> Yes. You are correct.
>
>> That driver still has the wrong value:
>> #define USBHS_UGSTS_LOCK                0x00000300 /* The manuals have 0x3 */
>>
>> So:
>>   1) Shouldn't drivers/phy/phy-rcar-gen2.c be fixed?
>
> I already submitted such a patch. However, the patch is not merged yet.
> (I should have sent a ping or something about this patch.)
> http://thread.gmane.org/gmane.linux.ports.sh.devel/45089

Right. Sorry, I forgot about that patch.

>>   2) Shouldn't drivers/usb/phy/phy-rcar-gen2-usb.c et al be removed?
>
> We should remove this code because legacy board codes were already removed.
> (In other words, nobody uses this code now.)

I'll remove it, while you can enjoy Golden Week...

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-28 11:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-02 11:22 [PATCH] usb: phy: rcar-gen2-usb: Fix USBHS_UGSTS_LOCK value Yoshihiro Shimoda
2015-04-27 19:45 ` Felipe Balbi
2015-04-28  1:36 ` Yoshihiro Shimoda
2015-04-28  9:55 ` Geert Uytterhoeven
2015-04-28 10:25 ` Yoshihiro Shimoda
2015-04-28 11:21 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox