All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: multi_v7_defconfig: enable usb3503
@ 2015-03-13 13:54 ` riku.voipio at linaro.org
  0 siblings, 0 replies; 18+ messages in thread
From: riku.voipio @ 2015-03-13 13:54 UTC (permalink / raw)
  To: linux-arm-kernel, linux-samsung-soc; +Cc: Riku Voipio

From: Riku Voipio <riku.voipio@linaro.org>

CONFIG_USB_HSIC_USB3503 is needed by exynos5250-arndale for the on-board
asix network controller. Enable it so networking works with
multi_v7_defconfig out of box like it does with exynos_defconfig.

USB3503 is also referenced from exynos4412-odroidu3.dts and
exynos5250-spring.dts so this patch should improve
multi_v7_defconfig on those platforms as well.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 arch/arm/configs/multi_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index b7e6b6fb..a4b9bc3 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -426,6 +426,7 @@ CONFIG_USB_STORAGE=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_CHIPIDEA=y
 CONFIG_USB_CHIPIDEA_HOST=y
+CONFIG_USB_HSIC_USB3503=y
 CONFIG_AB8500_USB=y
 CONFIG_KEYSTONE_USB_PHY=y
 CONFIG_OMAP_USB3=y
-- 
2.1.4

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

* [PATCH] ARM: multi_v7_defconfig: enable usb3503
@ 2015-03-13 13:54 ` riku.voipio at linaro.org
  0 siblings, 0 replies; 18+ messages in thread
From: riku.voipio at linaro.org @ 2015-03-13 13:54 UTC (permalink / raw)
  To: linux-arm-kernel

From: Riku Voipio <riku.voipio@linaro.org>

CONFIG_USB_HSIC_USB3503 is needed by exynos5250-arndale for the on-board
asix network controller. Enable it so networking works with
multi_v7_defconfig out of box like it does with exynos_defconfig.

USB3503 is also referenced from exynos4412-odroidu3.dts and
exynos5250-spring.dts so this patch should improve
multi_v7_defconfig on those platforms as well.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 arch/arm/configs/multi_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index b7e6b6fb..a4b9bc3 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -426,6 +426,7 @@ CONFIG_USB_STORAGE=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_CHIPIDEA=y
 CONFIG_USB_CHIPIDEA_HOST=y
+CONFIG_USB_HSIC_USB3503=y
 CONFIG_AB8500_USB=y
 CONFIG_KEYSTONE_USB_PHY=y
 CONFIG_OMAP_USB3=y
-- 
2.1.4

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

* Re: [PATCH] ARM: multi_v7_defconfig: enable usb3503
  2015-03-13 13:54 ` riku.voipio at linaro.org
@ 2015-06-04  1:08   ` Kevin Hilman
  -1 siblings, 0 replies; 18+ messages in thread
From: Kevin Hilman @ 2015-06-04  1:08 UTC (permalink / raw)
  To: riku.voipio
  Cc: linux-arm-kernel, linux-samsung-soc, tyler.baker, javier.martinez

riku.voipio@linaro.org writes:

> From: Riku Voipio <riku.voipio@linaro.org>
>
> CONFIG_USB_HSIC_USB3503 is needed by exynos5250-arndale for the on-board
> asix network controller. Enable it so networking works with
> multi_v7_defconfig out of box like it does with exynos_defconfig.
>
> USB3503 is also referenced from exynos4412-odroidu3.dts and
> exynos5250-spring.dts so this patch should improve
> multi_v7_defconfig on those platforms as well.
>
> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>

Tyler pointed me to this in order to get arndale networking on mainline,
but looks like this might need to be revisited for current mainline.  

I tested this and it doesn't work because as of commit 7de7c6717f2c
(ARM: multi_v7_defconfig: Enable Exynos USB PHY) the PHY that this
depends on is built as a module in multi_v7_config, so having this
driver built-in doesn't help.  Even after the PHY driver is loaded, this
driver will not detect the hardware.

So instead, I think this driver should be built as a module as well.
Testing that, I can get networking by doing loading both the phy and
this driver after boot:

 # modprobe phy-exynos-usb2
 # modprobe usb3503

Kevin

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

* [PATCH] ARM: multi_v7_defconfig: enable usb3503
@ 2015-06-04  1:08   ` Kevin Hilman
  0 siblings, 0 replies; 18+ messages in thread
From: Kevin Hilman @ 2015-06-04  1:08 UTC (permalink / raw)
  To: linux-arm-kernel

riku.voipio at linaro.org writes:

> From: Riku Voipio <riku.voipio@linaro.org>
>
> CONFIG_USB_HSIC_USB3503 is needed by exynos5250-arndale for the on-board
> asix network controller. Enable it so networking works with
> multi_v7_defconfig out of box like it does with exynos_defconfig.
>
> USB3503 is also referenced from exynos4412-odroidu3.dts and
> exynos5250-spring.dts so this patch should improve
> multi_v7_defconfig on those platforms as well.
>
> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>

Tyler pointed me to this in order to get arndale networking on mainline,
but looks like this might need to be revisited for current mainline.  

I tested this and it doesn't work because as of commit 7de7c6717f2c
(ARM: multi_v7_defconfig: Enable Exynos USB PHY) the PHY that this
depends on is built as a module in multi_v7_config, so having this
driver built-in doesn't help.  Even after the PHY driver is loaded, this
driver will not detect the hardware.

So instead, I think this driver should be built as a module as well.
Testing that, I can get networking by doing loading both the phy and
this driver after boot:

 # modprobe phy-exynos-usb2
 # modprobe usb3503

Kevin

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

* Re: [PATCH] ARM: multi_v7_defconfig: enable usb3503
  2015-06-04  1:08   ` Kevin Hilman
@ 2015-06-04  6:38     ` Javier Martinez Canillas
  -1 siblings, 0 replies; 18+ messages in thread
From: Javier Martinez Canillas @ 2015-06-04  6:38 UTC (permalink / raw)
  To: Kevin Hilman, riku.voipio
  Cc: linux-arm-kernel, linux-samsung-soc, tyler.baker

Hello Kevin,

On 06/04/2015 03:08 AM, Kevin Hilman wrote:
> riku.voipio@linaro.org writes:
> 
>> From: Riku Voipio <riku.voipio@linaro.org>
>>
>> CONFIG_USB_HSIC_USB3503 is needed by exynos5250-arndale for the on-board
>> asix network controller. Enable it so networking works with
>> multi_v7_defconfig out of box like it does with exynos_defconfig.
>>
>> USB3503 is also referenced from exynos4412-odroidu3.dts and
>> exynos5250-spring.dts so this patch should improve
>> multi_v7_defconfig on those platforms as well.
>>
>> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> 
> Tyler pointed me to this in order to get arndale networking on mainline,
> but looks like this might need to be revisited for current mainline.  
> 
> I tested this and it doesn't work because as of commit 7de7c6717f2c
> (ARM: multi_v7_defconfig: Enable Exynos USB PHY) the PHY that this
> depends on is built as a module in multi_v7_config, so having this
> driver built-in doesn't help.  Even after the PHY driver is loaded, this
> driver will not detect the hardware.
> 
> So instead, I think this driver should be built as a module as well.
> Testing that, I can get networking by doing loading both the phy and
> this driver after boot:
> 
>  # modprobe phy-exynos-usb2
>  # modprobe usb3503
>

Current policy is to have as much as possible built as a module
in multi_v7_config so regardless of your issue I think that the
patch should be re-spun to change this.

But I wonder why is not working, shouldn't the driver defer and
be probed again once the PHY driver probe succeeds?

> Kevin
> 

Best regards,
Javier

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

* [PATCH] ARM: multi_v7_defconfig: enable usb3503
@ 2015-06-04  6:38     ` Javier Martinez Canillas
  0 siblings, 0 replies; 18+ messages in thread
From: Javier Martinez Canillas @ 2015-06-04  6:38 UTC (permalink / raw)
  To: linux-arm-kernel

Hello Kevin,

On 06/04/2015 03:08 AM, Kevin Hilman wrote:
> riku.voipio at linaro.org writes:
> 
>> From: Riku Voipio <riku.voipio@linaro.org>
>>
>> CONFIG_USB_HSIC_USB3503 is needed by exynos5250-arndale for the on-board
>> asix network controller. Enable it so networking works with
>> multi_v7_defconfig out of box like it does with exynos_defconfig.
>>
>> USB3503 is also referenced from exynos4412-odroidu3.dts and
>> exynos5250-spring.dts so this patch should improve
>> multi_v7_defconfig on those platforms as well.
>>
>> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> 
> Tyler pointed me to this in order to get arndale networking on mainline,
> but looks like this might need to be revisited for current mainline.  
> 
> I tested this and it doesn't work because as of commit 7de7c6717f2c
> (ARM: multi_v7_defconfig: Enable Exynos USB PHY) the PHY that this
> depends on is built as a module in multi_v7_config, so having this
> driver built-in doesn't help.  Even after the PHY driver is loaded, this
> driver will not detect the hardware.
> 
> So instead, I think this driver should be built as a module as well.
> Testing that, I can get networking by doing loading both the phy and
> this driver after boot:
> 
>  # modprobe phy-exynos-usb2
>  # modprobe usb3503
>

Current policy is to have as much as possible built as a module
in multi_v7_config so regardless of your issue I think that the
patch should be re-spun to change this.

But I wonder why is not working, shouldn't the driver defer and
be probed again once the PHY driver probe succeeds?

> Kevin
> 

Best regards,
Javier

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

* Re: [PATCH] ARM: multi_v7_defconfig: enable usb3503
  2015-06-04  6:38     ` Javier Martinez Canillas
@ 2015-06-04 17:47       ` Kevin Hilman
  -1 siblings, 0 replies; 18+ messages in thread
From: Kevin Hilman @ 2015-06-04 17:47 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: riku.voipio, linux-arm-kernel, linux-samsung-soc, tyler.baker

Javier Martinez Canillas <javier.martinez@collabora.co.uk> writes:

> Hello Kevin,
>
> On 06/04/2015 03:08 AM, Kevin Hilman wrote:
>> riku.voipio@linaro.org writes:
>> 
>>> From: Riku Voipio <riku.voipio@linaro.org>
>>>
>>> CONFIG_USB_HSIC_USB3503 is needed by exynos5250-arndale for the on-board
>>> asix network controller. Enable it so networking works with
>>> multi_v7_defconfig out of box like it does with exynos_defconfig.
>>>
>>> USB3503 is also referenced from exynos4412-odroidu3.dts and
>>> exynos5250-spring.dts so this patch should improve
>>> multi_v7_defconfig on those platforms as well.
>>>
>>> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
>> 
>> Tyler pointed me to this in order to get arndale networking on mainline,
>> but looks like this might need to be revisited for current mainline.  
>> 
>> I tested this and it doesn't work because as of commit 7de7c6717f2c
>> (ARM: multi_v7_defconfig: Enable Exynos USB PHY) the PHY that this
>> depends on is built as a module in multi_v7_config, so having this
>> driver built-in doesn't help.  Even after the PHY driver is loaded, this
>> driver will not detect the hardware.
>> 
>> So instead, I think this driver should be built as a module as well.
>> Testing that, I can get networking by doing loading both the phy and
>> this driver after boot:
>> 
>>  # modprobe phy-exynos-usb2
>>  # modprobe usb3503
>>
>
> Current policy is to have as much as possible built as a module
> in multi_v7_config so regardless of your issue I think that the
> patch should be re-spun to change this.

Correct.

> But I wonder why is not working, shouldn't the driver defer and
> be probed again once the PHY driver probe succeeds?

Yeah, I'm not sure why that isn't working, and didn't look into it.

FWIW, the same problem happens when both are modules.  If you modprobe
usb3503 first, then the phy, it doesn't work.  You have to load the phy
before the usb3503.

Kevin

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

* [PATCH] ARM: multi_v7_defconfig: enable usb3503
@ 2015-06-04 17:47       ` Kevin Hilman
  0 siblings, 0 replies; 18+ messages in thread
From: Kevin Hilman @ 2015-06-04 17:47 UTC (permalink / raw)
  To: linux-arm-kernel

Javier Martinez Canillas <javier.martinez@collabora.co.uk> writes:

> Hello Kevin,
>
> On 06/04/2015 03:08 AM, Kevin Hilman wrote:
>> riku.voipio at linaro.org writes:
>> 
>>> From: Riku Voipio <riku.voipio@linaro.org>
>>>
>>> CONFIG_USB_HSIC_USB3503 is needed by exynos5250-arndale for the on-board
>>> asix network controller. Enable it so networking works with
>>> multi_v7_defconfig out of box like it does with exynos_defconfig.
>>>
>>> USB3503 is also referenced from exynos4412-odroidu3.dts and
>>> exynos5250-spring.dts so this patch should improve
>>> multi_v7_defconfig on those platforms as well.
>>>
>>> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
>> 
>> Tyler pointed me to this in order to get arndale networking on mainline,
>> but looks like this might need to be revisited for current mainline.  
>> 
>> I tested this and it doesn't work because as of commit 7de7c6717f2c
>> (ARM: multi_v7_defconfig: Enable Exynos USB PHY) the PHY that this
>> depends on is built as a module in multi_v7_config, so having this
>> driver built-in doesn't help.  Even after the PHY driver is loaded, this
>> driver will not detect the hardware.
>> 
>> So instead, I think this driver should be built as a module as well.
>> Testing that, I can get networking by doing loading both the phy and
>> this driver after boot:
>> 
>>  # modprobe phy-exynos-usb2
>>  # modprobe usb3503
>>
>
> Current policy is to have as much as possible built as a module
> in multi_v7_config so regardless of your issue I think that the
> patch should be re-spun to change this.

Correct.

> But I wonder why is not working, shouldn't the driver defer and
> be probed again once the PHY driver probe succeeds?

Yeah, I'm not sure why that isn't working, and didn't look into it.

FWIW, the same problem happens when both are modules.  If you modprobe
usb3503 first, then the phy, it doesn't work.  You have to load the phy
before the usb3503.

Kevin

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

* Re: [PATCH] ARM: multi_v7_defconfig: enable usb3503
  2015-06-04 17:47       ` Kevin Hilman
@ 2015-06-05 12:45         ` Arnd Bergmann
  -1 siblings, 0 replies; 18+ messages in thread
From: Arnd Bergmann @ 2015-06-05 12:45 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Kevin Hilman, Javier Martinez Canillas, riku.voipio,
	linux-samsung-soc, tyler.baker

On Thursday 04 June 2015 10:47:07 Kevin Hilman wrote:
> 
> > But I wonder why is not working, shouldn't the driver defer and
> > be probed again once the PHY driver probe succeeds?
> 
> Yeah, I'm not sure why that isn't working, and didn't look into it.
> 
> FWIW, the same problem happens when both are modules.  If you modprobe
> usb3503 first, then the phy, it doesn't work.  You have to load the phy
> before the usb3503.
> 
> 

The driver does not try to get a reference to the phy, and it does
not return -EPROBE_DEFER in any circumstance, so I assume it just
runs into an error condition on the first probe and does not
try again.

I don't really understand why the driver registers both an i2c_driver
and a platform_driver, or if that is required, but it may also
complicate getting deferred probing to work here.

	Arnd

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

* [PATCH] ARM: multi_v7_defconfig: enable usb3503
@ 2015-06-05 12:45         ` Arnd Bergmann
  0 siblings, 0 replies; 18+ messages in thread
From: Arnd Bergmann @ 2015-06-05 12:45 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday 04 June 2015 10:47:07 Kevin Hilman wrote:
> 
> > But I wonder why is not working, shouldn't the driver defer and
> > be probed again once the PHY driver probe succeeds?
> 
> Yeah, I'm not sure why that isn't working, and didn't look into it.
> 
> FWIW, the same problem happens when both are modules.  If you modprobe
> usb3503 first, then the phy, it doesn't work.  You have to load the phy
> before the usb3503.
> 
> 

The driver does not try to get a reference to the phy, and it does
not return -EPROBE_DEFER in any circumstance, so I assume it just
runs into an error condition on the first probe and does not
try again.

I don't really understand why the driver registers both an i2c_driver
and a platform_driver, or if that is required, but it may also
complicate getting deferred probing to work here.

	Arnd

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

* Re: [PATCH] ARM: multi_v7_defconfig: enable usb3503
  2015-06-05 12:45         ` Arnd Bergmann
@ 2015-09-14  8:35           ` Riku Voipio
  -1 siblings, 0 replies; 18+ messages in thread
From: Riku Voipio @ 2015-09-14  8:35 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: linux-arm-kernel, Kevin Hilman, Javier Martinez Canillas,
	linux-samsung-soc, Tyler Baker

On 5 June 2015 at 15:45, Arnd Bergmann <arnd@arndb.de> wrote:
> On Thursday 04 June 2015 10:47:07 Kevin Hilman wrote:
>>
>> > But I wonder why is not working, shouldn't the driver defer and
>> > be probed again once the PHY driver probe succeeds?
>>
>> Yeah, I'm not sure why that isn't working, and didn't look into it.
>>
>> FWIW, the same problem happens when both are modules.  If you modprobe
>> usb3503 first, then the phy, it doesn't work.  You have to load the phy
>> before the usb3503.

> The driver does not try to get a reference to the phy, and it does
> not return -EPROBE_DEFER in any circumstance, so I assume it just
> runs into an error condition on the first probe and does not
> try again.

> I don't really understand why the driver registers both an i2c_driver
> and a platform_driver, or if that is required, but it may also
> complicate getting deferred probing to work here.

Is someone looking into fixing it? Having to load this as module would
be an inconvenience for me, as I like to boot arndale with nfsroot.
Yet I understand that eventually I'll need to use an initrd - so not a
blocker, just grumpy work.

Riku

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

* [PATCH] ARM: multi_v7_defconfig: enable usb3503
@ 2015-09-14  8:35           ` Riku Voipio
  0 siblings, 0 replies; 18+ messages in thread
From: Riku Voipio @ 2015-09-14  8:35 UTC (permalink / raw)
  To: linux-arm-kernel

On 5 June 2015 at 15:45, Arnd Bergmann <arnd@arndb.de> wrote:
> On Thursday 04 June 2015 10:47:07 Kevin Hilman wrote:
>>
>> > But I wonder why is not working, shouldn't the driver defer and
>> > be probed again once the PHY driver probe succeeds?
>>
>> Yeah, I'm not sure why that isn't working, and didn't look into it.
>>
>> FWIW, the same problem happens when both are modules.  If you modprobe
>> usb3503 first, then the phy, it doesn't work.  You have to load the phy
>> before the usb3503.

> The driver does not try to get a reference to the phy, and it does
> not return -EPROBE_DEFER in any circumstance, so I assume it just
> runs into an error condition on the first probe and does not
> try again.

> I don't really understand why the driver registers both an i2c_driver
> and a platform_driver, or if that is required, but it may also
> complicate getting deferred probing to work here.

Is someone looking into fixing it? Having to load this as module would
be an inconvenience for me, as I like to boot arndale with nfsroot.
Yet I understand that eventually I'll need to use an initrd - so not a
blocker, just grumpy work.

Riku

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

* Re: [PATCH] ARM: multi_v7_defconfig: enable usb3503
  2015-09-14  8:35           ` Riku Voipio
@ 2015-09-15  6:50             ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2015-09-15  6:50 UTC (permalink / raw)
  To: Riku Voipio
  Cc: Arnd Bergmann, linux-samsung-soc, Tyler Baker,
	Javier Martinez Canillas, linux-arm-kernel, Kevin Hilman

2015-09-14 17:35 GMT+09:00 Riku Voipio <riku.voipio@linaro.org>:
> On 5 June 2015 at 15:45, Arnd Bergmann <arnd@arndb.de> wrote:
>> On Thursday 04 June 2015 10:47:07 Kevin Hilman wrote:
>>>
>>> > But I wonder why is not working, shouldn't the driver defer and
>>> > be probed again once the PHY driver probe succeeds?
>>>
>>> Yeah, I'm not sure why that isn't working, and didn't look into it.
>>>
>>> FWIW, the same problem happens when both are modules.  If you modprobe
>>> usb3503 first, then the phy, it doesn't work.  You have to load the phy
>>> before the usb3503.
>
>> The driver does not try to get a reference to the phy, and it does
>> not return -EPROBE_DEFER in any circumstance, so I assume it just
>> runs into an error condition on the first probe and does not
>> try again.
>
>> I don't really understand why the driver registers both an i2c_driver
>> and a platform_driver, or if that is required, but it may also
>> complicate getting deferred probing to work here.
>
> Is someone looking into fixing it?

Fixing what? The PHY issue? The driver not supporting deferred probe?

As for module vs builtin, this is somehow orthogonal for me.
Although modules are preferred on multi_v7 but in case of
boot-essential drivers this should not be a requirement. I also don't
use initrd for network boot... however my root is on MMC. Regardless
if of that I would expect nfsroot to be working on multi_v7 kernel.

>From my point of view this is the same case as USB_NET_SMSC75XX or
USB_NET_SMSC95XX, so:
1. Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
2. +1 for CONFIG_PHY_SAMSUNG_USB2=y (regardless of fixing issues in the driver)
3. +1 for fixing the PHY driver


Best regards,
Krzysztof

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

* [PATCH] ARM: multi_v7_defconfig: enable usb3503
@ 2015-09-15  6:50             ` Krzysztof Kozlowski
  0 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2015-09-15  6:50 UTC (permalink / raw)
  To: linux-arm-kernel

2015-09-14 17:35 GMT+09:00 Riku Voipio <riku.voipio@linaro.org>:
> On 5 June 2015 at 15:45, Arnd Bergmann <arnd@arndb.de> wrote:
>> On Thursday 04 June 2015 10:47:07 Kevin Hilman wrote:
>>>
>>> > But I wonder why is not working, shouldn't the driver defer and
>>> > be probed again once the PHY driver probe succeeds?
>>>
>>> Yeah, I'm not sure why that isn't working, and didn't look into it.
>>>
>>> FWIW, the same problem happens when both are modules.  If you modprobe
>>> usb3503 first, then the phy, it doesn't work.  You have to load the phy
>>> before the usb3503.
>
>> The driver does not try to get a reference to the phy, and it does
>> not return -EPROBE_DEFER in any circumstance, so I assume it just
>> runs into an error condition on the first probe and does not
>> try again.
>
>> I don't really understand why the driver registers both an i2c_driver
>> and a platform_driver, or if that is required, but it may also
>> complicate getting deferred probing to work here.
>
> Is someone looking into fixing it?

Fixing what? The PHY issue? The driver not supporting deferred probe?

As for module vs builtin, this is somehow orthogonal for me.
Although modules are preferred on multi_v7 but in case of
boot-essential drivers this should not be a requirement. I also don't
use initrd for network boot... however my root is on MMC. Regardless
if of that I would expect nfsroot to be working on multi_v7 kernel.

>From my point of view this is the same case as USB_NET_SMSC75XX or
USB_NET_SMSC95XX, so:
1. Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
2. +1 for CONFIG_PHY_SAMSUNG_USB2=y (regardless of fixing issues in the driver)
3. +1 for fixing the PHY driver


Best regards,
Krzysztof

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

* Re: [PATCH] ARM: multi_v7_defconfig: enable usb3503
  2015-09-15  6:50             ` Krzysztof Kozlowski
@ 2015-09-15  8:17               ` Sjoerd Simons
  -1 siblings, 0 replies; 18+ messages in thread
From: Sjoerd Simons @ 2015-09-15  8:17 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Riku Voipio, Thierry Reding
  Cc: Arnd Bergmann, linux-samsung-soc, Tyler Baker,
	Javier Martinez Canillas, linux-arm-kernel, Kevin Hilman, heiko

On Tue, 2015-09-15 at 15:50 +0900, Krzysztof Kozlowski wrote:
> 2015-09-14 17:35 GMT+09:00 Riku Voipio <riku.voipio@linaro.org>:
> > On 5 June 2015 at 15:45, Arnd Bergmann <arnd@arndb.de> wrote:
> > > On Thursday 04 June 2015 10:47:07 Kevin Hilman wrote:
> > > > 
> > > > > But I wonder why is not working, shouldn't the driver defer
> > > > > and
> > > > > be probed again once the PHY driver probe succeeds?
> > > > 
> > > > Yeah, I'm not sure why that isn't working, and didn't look into
> > > > it.
> > > > 
> > > > FWIW, the same problem happens when both are modules.  If you
> > > > modprobe
> > > > usb3503 first, then the phy, it doesn't work.  You have to load
> > > > the phy
> > > > before the usb3503.
> > 
> > > The driver does not try to get a reference to the phy, and it
> > > does
> > > not return -EPROBE_DEFER in any circumstance, so I assume it just
> > > runs into an error condition on the first probe and does not
> > > try again.
> > 
> > > I don't really understand why the driver registers both an
> > > i2c_driver
> > > and a platform_driver, or if that is required, but it may also
> > > complicate getting deferred probing to work here.
> > 
> > Is someone looking into fixing it?
> 
> Fixing what? The PHY issue? The driver not supporting deferred probe?
> 
> As for module vs builtin, this is somehow orthogonal for me.
> Although modules are preferred on multi_v7 but in case of
> boot-essential drivers this should not be a requirement. I also don't
> use initrd for network boot... however my root is on MMC. Regardless
> if of that I would expect nfsroot to be working on multi_v7 kernel.

When posting a set of multi_v7 config changes recently to improve how
we support RockChip, Thierry argued the case for building things as
modules as much as possible (even if that means needing an initramfs to
complete boot)[0]..

You're arguing the exact oposite here, while I can see the points in
both arguments (though i'm leaning to agreeing with Thierry) it would
be nice to work out a common policy here as multi_v7 seems to be a
rather big mismatch currently.


Fwiw, looking at the arm64 defconfig it currently has everything built
in. Which isn't too bad as there aren't that many arm64 boards in
mainline yet, but I bet it's going to run into similar issues at some
point.

0: http://lists.infradead.org/pipermail/linux-rockchip/2015-September/0
04280.html



> From my point of view this is the same case as USB_NET_SMSC75XX or
> USB_NET_SMSC95XX, so:
> 1. Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> 2. +1 for CONFIG_PHY_SAMSUNG_USB2=y (regardless of fixing issues in
> the driver)
> 3. +1 for fixing the PHY driver
> 
> 
> Best regards,
> Krzysztof
> --
> To unsubscribe from this list: send the line "unsubscribe linux
> -samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Collabora Ltd.

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

* [PATCH] ARM: multi_v7_defconfig: enable usb3503
@ 2015-09-15  8:17               ` Sjoerd Simons
  0 siblings, 0 replies; 18+ messages in thread
From: Sjoerd Simons @ 2015-09-15  8:17 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, 2015-09-15 at 15:50 +0900, Krzysztof Kozlowski wrote:
> 2015-09-14 17:35 GMT+09:00 Riku Voipio <riku.voipio@linaro.org>:
> > On 5 June 2015 at 15:45, Arnd Bergmann <arnd@arndb.de> wrote:
> > > On Thursday 04 June 2015 10:47:07 Kevin Hilman wrote:
> > > > 
> > > > > But I wonder why is not working, shouldn't the driver defer
> > > > > and
> > > > > be probed again once the PHY driver probe succeeds?
> > > > 
> > > > Yeah, I'm not sure why that isn't working, and didn't look into
> > > > it.
> > > > 
> > > > FWIW, the same problem happens when both are modules.  If you
> > > > modprobe
> > > > usb3503 first, then the phy, it doesn't work.  You have to load
> > > > the phy
> > > > before the usb3503.
> > 
> > > The driver does not try to get a reference to the phy, and it
> > > does
> > > not return -EPROBE_DEFER in any circumstance, so I assume it just
> > > runs into an error condition on the first probe and does not
> > > try again.
> > 
> > > I don't really understand why the driver registers both an
> > > i2c_driver
> > > and a platform_driver, or if that is required, but it may also
> > > complicate getting deferred probing to work here.
> > 
> > Is someone looking into fixing it?
> 
> Fixing what? The PHY issue? The driver not supporting deferred probe?
> 
> As for module vs builtin, this is somehow orthogonal for me.
> Although modules are preferred on multi_v7 but in case of
> boot-essential drivers this should not be a requirement. I also don't
> use initrd for network boot... however my root is on MMC. Regardless
> if of that I would expect nfsroot to be working on multi_v7 kernel.

When posting a set of multi_v7 config changes recently to improve how
we support RockChip, Thierry argued the case for building things as
modules as much as possible (even if that means needing an initramfs to
complete boot)[0]..

You're arguing the exact oposite here, while I can see the points in
both arguments (though i'm leaning to agreeing with Thierry) it would
be nice to work out a common policy here as multi_v7 seems to be a
rather big mismatch currently.


Fwiw, looking at the arm64 defconfig it currently has everything built
in. Which isn't too bad as there aren't that many arm64 boards in
mainline yet, but I bet it's going to run into similar issues at some
point.

0: http://lists.infradead.org/pipermail/linux-rockchip/2015-September/0
04280.html



> From my point of view this is the same case as USB_NET_SMSC75XX or
> USB_NET_SMSC95XX, so:
> 1. Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> 2. +1 for CONFIG_PHY_SAMSUNG_USB2=y (regardless of fixing issues in
> the driver)
> 3. +1 for fixing the PHY driver
> 
> 
> Best regards,
> Krzysztof
> --
> To unsubscribe from this list: send the line "unsubscribe linux
> -samsung-soc" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Collabora Ltd.

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

* Re: [PATCH] ARM: multi_v7_defconfig: enable usb3503
  2015-09-15  8:17               ` Sjoerd Simons
@ 2015-09-15  8:34                 ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2015-09-15  8:34 UTC (permalink / raw)
  To: Sjoerd Simons, Riku Voipio, Thierry Reding
  Cc: Arnd Bergmann, linux-samsung-soc, Tyler Baker,
	Javier Martinez Canillas, linux-arm-kernel, Kevin Hilman, heiko

On 15.09.2015 17:17, Sjoerd Simons wrote:
> On Tue, 2015-09-15 at 15:50 +0900, Krzysztof Kozlowski wrote:
>> 2015-09-14 17:35 GMT+09:00 Riku Voipio <riku.voipio@linaro.org>:
>>> On 5 June 2015 at 15:45, Arnd Bergmann <arnd@arndb.de> wrote:
>>>> On Thursday 04 June 2015 10:47:07 Kevin Hilman wrote:
>>>>>
>>>>>> But I wonder why is not working, shouldn't the driver defer
>>>>>> and
>>>>>> be probed again once the PHY driver probe succeeds?
>>>>>
>>>>> Yeah, I'm not sure why that isn't working, and didn't look into
>>>>> it.
>>>>>
>>>>> FWIW, the same problem happens when both are modules.  If you
>>>>> modprobe
>>>>> usb3503 first, then the phy, it doesn't work.  You have to load
>>>>> the phy
>>>>> before the usb3503.
>>>
>>>> The driver does not try to get a reference to the phy, and it
>>>> does
>>>> not return -EPROBE_DEFER in any circumstance, so I assume it just
>>>> runs into an error condition on the first probe and does not
>>>> try again.
>>>
>>>> I don't really understand why the driver registers both an
>>>> i2c_driver
>>>> and a platform_driver, or if that is required, but it may also
>>>> complicate getting deferred probing to work here.
>>>
>>> Is someone looking into fixing it?
>>
>> Fixing what? The PHY issue? The driver not supporting deferred probe?
>>
>> As for module vs builtin, this is somehow orthogonal for me.
>> Although modules are preferred on multi_v7 but in case of
>> boot-essential drivers this should not be a requirement. I also don't
>> use initrd for network boot... however my root is on MMC. Regardless
>> if of that I would expect nfsroot to be working on multi_v7 kernel.
> 
> When posting a set of multi_v7 config changes recently to improve how
> we support RockChip, Thierry argued the case for building things as
> modules as much as possible (even if that means needing an initramfs to
> complete boot)[0]..
> 
> You're arguing the exact oposite here, while I can see the points in
> both arguments (though i'm leaning to agreeing with Thierry) it would
> be nice to work out a common policy here as multi_v7 seems to be a
> rather big mismatch currently.

Not entirely the exact opposite. Opposite only for stuff important for
booting. I agree: put into modules as much as possible. But the
difference is in meaning of "possible". It is possible to network boot
with network rootfs when the adapter is a module. But it is not possible
to do it without initrd. :)

Anyway I agree that conclusion should be made a standard (or policy) so
other driver should be converted to 'm' or 'y'.


> Fwiw, looking at the arm64 defconfig it currently has everything built
> in. Which isn't too bad as there aren't that many arm64 boards in
> mainline yet, but I bet it's going to run into similar issues at some
> point.

Indeed, that is the easiest option for development... until Image grows
out of device partition.


Best regards,
Krzysztof

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

* [PATCH] ARM: multi_v7_defconfig: enable usb3503
@ 2015-09-15  8:34                 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2015-09-15  8:34 UTC (permalink / raw)
  To: linux-arm-kernel

On 15.09.2015 17:17, Sjoerd Simons wrote:
> On Tue, 2015-09-15 at 15:50 +0900, Krzysztof Kozlowski wrote:
>> 2015-09-14 17:35 GMT+09:00 Riku Voipio <riku.voipio@linaro.org>:
>>> On 5 June 2015 at 15:45, Arnd Bergmann <arnd@arndb.de> wrote:
>>>> On Thursday 04 June 2015 10:47:07 Kevin Hilman wrote:
>>>>>
>>>>>> But I wonder why is not working, shouldn't the driver defer
>>>>>> and
>>>>>> be probed again once the PHY driver probe succeeds?
>>>>>
>>>>> Yeah, I'm not sure why that isn't working, and didn't look into
>>>>> it.
>>>>>
>>>>> FWIW, the same problem happens when both are modules.  If you
>>>>> modprobe
>>>>> usb3503 first, then the phy, it doesn't work.  You have to load
>>>>> the phy
>>>>> before the usb3503.
>>>
>>>> The driver does not try to get a reference to the phy, and it
>>>> does
>>>> not return -EPROBE_DEFER in any circumstance, so I assume it just
>>>> runs into an error condition on the first probe and does not
>>>> try again.
>>>
>>>> I don't really understand why the driver registers both an
>>>> i2c_driver
>>>> and a platform_driver, or if that is required, but it may also
>>>> complicate getting deferred probing to work here.
>>>
>>> Is someone looking into fixing it?
>>
>> Fixing what? The PHY issue? The driver not supporting deferred probe?
>>
>> As for module vs builtin, this is somehow orthogonal for me.
>> Although modules are preferred on multi_v7 but in case of
>> boot-essential drivers this should not be a requirement. I also don't
>> use initrd for network boot... however my root is on MMC. Regardless
>> if of that I would expect nfsroot to be working on multi_v7 kernel.
> 
> When posting a set of multi_v7 config changes recently to improve how
> we support RockChip, Thierry argued the case for building things as
> modules as much as possible (even if that means needing an initramfs to
> complete boot)[0]..
> 
> You're arguing the exact oposite here, while I can see the points in
> both arguments (though i'm leaning to agreeing with Thierry) it would
> be nice to work out a common policy here as multi_v7 seems to be a
> rather big mismatch currently.

Not entirely the exact opposite. Opposite only for stuff important for
booting. I agree: put into modules as much as possible. But the
difference is in meaning of "possible". It is possible to network boot
with network rootfs when the adapter is a module. But it is not possible
to do it without initrd. :)

Anyway I agree that conclusion should be made a standard (or policy) so
other driver should be converted to 'm' or 'y'.


> Fwiw, looking at the arm64 defconfig it currently has everything built
> in. Which isn't too bad as there aren't that many arm64 boards in
> mainline yet, but I bet it's going to run into similar issues at some
> point.

Indeed, that is the easiest option for development... until Image grows
out of device partition.


Best regards,
Krzysztof

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

end of thread, other threads:[~2015-09-15  8:34 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 13:54 [PATCH] ARM: multi_v7_defconfig: enable usb3503 riku.voipio
2015-03-13 13:54 ` riku.voipio at linaro.org
2015-06-04  1:08 ` Kevin Hilman
2015-06-04  1:08   ` Kevin Hilman
2015-06-04  6:38   ` Javier Martinez Canillas
2015-06-04  6:38     ` Javier Martinez Canillas
2015-06-04 17:47     ` Kevin Hilman
2015-06-04 17:47       ` Kevin Hilman
2015-06-05 12:45       ` Arnd Bergmann
2015-06-05 12:45         ` Arnd Bergmann
2015-09-14  8:35         ` Riku Voipio
2015-09-14  8:35           ` Riku Voipio
2015-09-15  6:50           ` Krzysztof Kozlowski
2015-09-15  6:50             ` Krzysztof Kozlowski
2015-09-15  8:17             ` Sjoerd Simons
2015-09-15  8:17               ` Sjoerd Simons
2015-09-15  8:34               ` Krzysztof Kozlowski
2015-09-15  8:34                 ` Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.