Re: [RFC PATCH 1/4] arm: omap: Add phy binding info for musb in plat data

2013-06-14 Thread Tomi Valkeinen
On 14/06/13 08:47, Tony Lindgren wrote:
 * Kishon Vijay Abraham I kis...@ti.com [130613 22:41]:
 Hi,

 On Thursday 13 June 2013 06:35 PM, Tomi Valkeinen wrote:
 Hi,

 On 28/05/13 08:18, Kishon Vijay Abraham I wrote:
 Hi Tony,

 On Friday 17 May 2013 06:52 PM, Kishon Vijay Abraham I wrote:
 In order for controllers to get PHY in case of non dt boot, the phy
 binding information (phy label) should be added in the platform
 data of the controller.

 This series would be needed to get MUSB working in OMAP3 boards for
 non-dt boot case. Do you think this is good enough to go in this rc cycle?

 Did this or some other solution go forward? I'm still unable to boot
 with usb-gadget-ethernet with v3.10-rc5.

 No. I think Tony is ok to take this only during next merge window.
 
 Yes I'll apply them to omap-for-v3.11/fixes-non-critical. We really
 should have basic functionaly tested and working always before the
 merge window so we only need to do minimal fixes during the -rc cycle.

I'm mostly interested in the USB gadget ethernet for the boards I have,
but if I'm not mistaken, all USB gadget support for many OMAP boards is
broken in v3.10. Shouldn't that be fixed, no matter if it's a minimal
fix or not? Or is there some other, more minimal, way to fix this?

 Tomi




signature.asc
Description: OpenPGP digital signature


Re: [RFC PATCH 1/4] arm: omap: Add phy binding info for musb in plat data

2013-06-14 Thread Tony Lindgren
* Tomi Valkeinen tomi.valkei...@ti.com [130613 23:42]:
 On 14/06/13 08:47, Tony Lindgren wrote:
  * Kishon Vijay Abraham I kis...@ti.com [130613 22:41]:
  Hi,
 
  On Thursday 13 June 2013 06:35 PM, Tomi Valkeinen wrote:
  Hi,
 
  On 28/05/13 08:18, Kishon Vijay Abraham I wrote:
  Hi Tony,
 
  On Friday 17 May 2013 06:52 PM, Kishon Vijay Abraham I wrote:
  In order for controllers to get PHY in case of non dt boot, the phy
  binding information (phy label) should be added in the platform
  data of the controller.
 
  This series would be needed to get MUSB working in OMAP3 boards for
  non-dt boot case. Do you think this is good enough to go in this rc 
  cycle?
 
  Did this or some other solution go forward? I'm still unable to boot
  with usb-gadget-ethernet with v3.10-rc5.
 
  No. I think Tony is ok to take this only during next merge window.
  
  Yes I'll apply them to omap-for-v3.11/fixes-non-critical. We really
  should have basic functionaly tested and working always before the
  merge window so we only need to do minimal fixes during the -rc cycle.
 
 I'm mostly interested in the USB gadget ethernet for the boards I have,
 but if I'm not mistaken, all USB gadget support for many OMAP boards is
 broken in v3.10. Shouldn't that be fixed, no matter if it's a minimal
 fix or not? Or is there some other, more minimal, way to fix this?

Yes it's unfortunate it's broken. But frankly I'm pretty tired of this
constant fixing up of basic things for omaps after every merge window.

If some patches are not tested properly, then everybody,
_do_not_try_to_merge_broken_patches_upstream_. Let them float on the
mailing lists until they get fixed or forgotten. Simple as that.

If we want to fix something this late in the merge window, the patches
must have a clear description what caused the regression and what happens
without the patches. These patches don't have that. And they are marked
RFC also. So actually I'm not applying any of them before the regression
descriptions are there and the patches have been reposted without RFC
and have sufficient acks from people.

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [RFC PATCH 1/4] arm: omap: Add phy binding info for musb in plat data

2013-06-14 Thread Tomi Valkeinen
On 14/06/13 10:33, Tony Lindgren wrote:

 If we want to fix something this late in the merge window, the patches
 must have a clear description what caused the regression and what happens
 without the patches. These patches don't have that. And they are marked
 RFC also. So actually I'm not applying any of them before the regression
 descriptions are there and the patches have been reposted without RFC
 and have sufficient acks from people.

No disagreement there.

Kishon, I tested the patches on top of v3.10-rc5, booting with nfs root
via usb gadget eth:

Overo: works
Beagle: works, but I need to reconnect the usb cable after kernel is up
Beagle-xm: doesn't work. The cable is detected correctly, though
Panda: works

The problems with Beagles are there even without these patches, so they
do make things better (fix Overo).

 Tomi




signature.asc
Description: OpenPGP digital signature


Re: [RFC PATCH 1/4] arm: omap: Add phy binding info for musb in plat data

2013-06-14 Thread Kishon Vijay Abraham I

Hi,

On Friday 14 June 2013 01:47 PM, Tomi Valkeinen wrote:

On 14/06/13 10:33, Tony Lindgren wrote:


If we want to fix something this late in the merge window, the patches
must have a clear description what caused the regression and what happens
without the patches. These patches don't have that. And they are marked
RFC also. So actually I'm not applying any of them before the regression
descriptions are there and the patches have been reposted without RFC
and have sufficient acks from people.


I posted this as RFC since this series uses _label_ and initially Felipe 
din't want to find PHYs by _label_.
After the device names are created using PLATFORM_DEVID_AUTO, our 
original method of binding by device names doesn't work reliable (since 
the device name changes). And I couldn't think of any other way to find 
the PHY other than using _label_. So I just wanted to know if it's ok to 
use _label_ or if there is any other better way to find PHYs.




No disagreement there.

Kishon, I tested the patches on top of v3.10-rc5, booting with nfs root
via usb gadget eth:

Overo: works
Beagle: works, but I need to reconnect the usb cable after kernel is up
Beagle-xm: doesn't work. The cable is detected correctly, though
Panda: works

The problems with Beagles are there even without these patches, so they
do make things better (fix Overo).


Thanks for testing this. I'll post a new version removing RFC after 
Felipe ACKs it.


Thanks
Kishon
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [RFC PATCH 1/4] arm: omap: Add phy binding info for musb in plat data

2013-06-13 Thread Tomi Valkeinen
Hi,

On 28/05/13 08:18, Kishon Vijay Abraham I wrote:
 Hi Tony,
 
 On Friday 17 May 2013 06:52 PM, Kishon Vijay Abraham I wrote:
 In order for controllers to get PHY in case of non dt boot, the phy
 binding information (phy label) should be added in the platform
 data of the controller.
 
 This series would be needed to get MUSB working in OMAP3 boards for
 non-dt boot case. Do you think this is good enough to go in this rc cycle?

Did this or some other solution go forward? I'm still unable to boot
with usb-gadget-ethernet with v3.10-rc5.

 Tomi




signature.asc
Description: OpenPGP digital signature


Re: [RFC PATCH 1/4] arm: omap: Add phy binding info for musb in plat data

2013-06-13 Thread Kishon Vijay Abraham I

Hi,

On Thursday 13 June 2013 06:35 PM, Tomi Valkeinen wrote:

Hi,

On 28/05/13 08:18, Kishon Vijay Abraham I wrote:

Hi Tony,

On Friday 17 May 2013 06:52 PM, Kishon Vijay Abraham I wrote:

In order for controllers to get PHY in case of non dt boot, the phy
binding information (phy label) should be added in the platform
data of the controller.


This series would be needed to get MUSB working in OMAP3 boards for
non-dt boot case. Do you think this is good enough to go in this rc cycle?


Did this or some other solution go forward? I'm still unable to boot
with usb-gadget-ethernet with v3.10-rc5.


No. I think Tony is ok to take this only during next merge window.

Thanks
Kishon
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [RFC PATCH 1/4] arm: omap: Add phy binding info for musb in plat data

2013-06-13 Thread Tony Lindgren
* Kishon Vijay Abraham I kis...@ti.com [130613 22:41]:
 Hi,
 
 On Thursday 13 June 2013 06:35 PM, Tomi Valkeinen wrote:
 Hi,
 
 On 28/05/13 08:18, Kishon Vijay Abraham I wrote:
 Hi Tony,
 
 On Friday 17 May 2013 06:52 PM, Kishon Vijay Abraham I wrote:
 In order for controllers to get PHY in case of non dt boot, the phy
 binding information (phy label) should be added in the platform
 data of the controller.
 
 This series would be needed to get MUSB working in OMAP3 boards for
 non-dt boot case. Do you think this is good enough to go in this rc cycle?
 
 Did this or some other solution go forward? I'm still unable to boot
 with usb-gadget-ethernet with v3.10-rc5.
 
 No. I think Tony is ok to take this only during next merge window.

Yes I'll apply them to omap-for-v3.11/fixes-non-critical. We really
should have basic functionaly tested and working always before the
merge window so we only need to do minimal fixes during the -rc cycle.

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [RFC PATCH 1/4] arm: omap: Add phy binding info for musb in plat data

2013-05-27 Thread Kishon Vijay Abraham I

Hi Tony,

On Friday 17 May 2013 06:52 PM, Kishon Vijay Abraham I wrote:

In order for controllers to get PHY in case of non dt boot, the phy
binding information (phy label) should be added in the platform
data of the controller.


This series would be needed to get MUSB working in OMAP3 boards for 
non-dt boot case. Do you think this is good enough to go in this rc cycle?


Thanks
Kishon
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[RFC PATCH 1/4] arm: omap: Add phy binding info for musb in plat data

2013-05-17 Thread Kishon Vijay Abraham I
In order for controllers to get PHY in case of non dt boot, the phy
binding information (phy label) should be added in the platform
data of the controller.

Signed-off-by: Kishon Vijay Abraham I kis...@ti.com
---
 arch/arm/mach-omap2/usb-musb.c |6 +-
 include/linux/usb/musb.h   |3 +++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c
index 3242a55..5ddbe39 100644
--- a/arch/arm/mach-omap2/usb-musb.c
+++ b/arch/arm/mach-omap2/usb-musb.c
@@ -85,8 +85,12 @@ void __init usb_musb_init(struct omap_musb_board_data 
*musb_board_data)
musb_plat.mode = board_data-mode;
musb_plat.extvbus = board_data-extvbus;
 
-   if (cpu_is_omap44xx())
+   if (cpu_is_omap44xx()) {
musb_plat.has_mailbox = true;
+   musb_plat.phy_name = omap-usb2;
+   } else if (cpu_is_omap34xx()) {
+   musb_plat.phy_name = twl4030;
+   }
 
if (soc_is_am35xx()) {
oh_name = am35x_otg_hs;
diff --git a/include/linux/usb/musb.h b/include/linux/usb/musb.h
index 053c268..c05d46d 100644
--- a/include/linux/usb/musb.h
+++ b/include/linux/usb/musb.h
@@ -104,6 +104,9 @@ struct musb_hdrc_platform_data {
/* for clk_get() */
const char  *clock;
 
+   /* phy device label */
+   const char  *phy_name;
+
/* (HOST or OTG) switch VBUS on/off */
int (*set_vbus)(struct device *dev, int is_on);
 
-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html