usb: ohci: Allow ohci on omap5 also
PATCH 1/1 usb: ohci: Allow ohci on omap5 also
With LPAE config we don't have omap3 or omap4 selected for omap5 variants.
--- drivers/usb/host/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/Kconfig +1 -1
@@ -472,7 +472,7 @@ config USB_OHCI_HCD_AT91 config USB_OHCI_HCD_OMAP3 tristate "OHCI support for OMAP3 and later chips" - depends on (ARCH_OMAP3 || ARCH_OMAP4) + depends on (ARCH_OMAP3 || ARCH_OMAP4 || SOC_OMAP5) default y ---help--- Enables support for the on-chip OHCI controller on
Signature · 6 lines
2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Alan Stern
Acked-byQuoted 12 lines · Tony Lindgren
With LPAE config we don't have omap3 or omap4 selected for omap5 variants.
Signed-off-by Tony Lindgren <[email protected]>--- drivers/usb/host/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/Kconfig config USB_OHCI_HCD_AT91 · line 478
Quoted 8 lines
drivers/usb/host/Kconfig +1
-1@@ -472,7 +472,7 @@ config USB_OHCI_HCD_AT91 config USB_OHCI_HCD_OMAP3 tristate "OHCI support for OMAP3 and later chips" - depends on (ARCH_OMAP3 || ARCH_OMAP4) + depends on (ARCH_OMAP3 || ARCH_OMAP4 || SOC_OMAP5) default y ---help--- Enables support for the on-chip OHCI controller on
You know, as far as I can tell the only thing that is OMAP-specific about the ohci-omap3 driver is the initialization of OHCI_CTRL_RWC. This could be added to the platform data or the DT bindings, after which this driver wouldn't be needed at all -- the ohci_platform driver would work. Does this seem reasonable?
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Alan Stern
You know, as far as I can tell the only thing that is OMAP-specific about the ohci-omap3 driver is the initialization of
OHCI_CTRL_RWC. This could be added to the platform data or the DT bindings, after which this driver wouldn't be needed at all -- theohci_platformdriver would work. Does this seem reasonable?
Sure makes sense to me. Do we have some standard binding for OCHI_CTRL_RWC?
Regards,
Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Tony Lindgren
Quoted 5 lines · Alan Stern
You know, as far as I can tell the only thing that is OMAP-specific about the ohci-omap3 driver is the initialization of
OHCI_CTRL_RWC. This could be added to the platform data or the DT bindings, after which this driver wouldn't be needed at all -- theohci_platformdriver would work. Does this seem reasonable?Sure makes sense to me. Do we have some standard binding for
OCHI_CTRL_RWC?
No, one would have to be created.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Alan Stern
Quoted 7 lines · Tony Lindgren
Quoted 5 lines · Alan Stern
You know, as far as I can tell the only thing that is OMAP-specific about the ohci-omap3 driver is the initialization of
OHCI_CTRL_RWC. This could be added to the platform data or the DT bindings, after which this driver wouldn't be needed at all -- theohci_platformdriver would work. Does this seem reasonable?
Quoted 4 lines
Quoted 2 lines
Sure makes sense to me. Do we have some standard binding for
OCHI_CTRL_RWC?No, one would have to be created.
OK I can do a patch for that, what should be binding be?
ohci-ctrl-rwc-something?
Regards,
Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · Tony Lindgren
Quoted 9 lines · Alan Stern
Quoted 7 lines · Tony Lindgren
Quoted 5 lines · Alan Stern
You know, as far as I can tell the only thing that is OMAP-specific about the ohci-omap3 driver is the initialization of
OHCI_CTRL_RWC. This could be added to the platform data or the DT bindings, after which this driver wouldn't be needed at all -- theohci_platformdriver would work. Does this seem reasonable?
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Sure makes sense to me. Do we have some standard binding for
OCHI_CTRL_RWC?No, one would have to be created.
OK I can do a patch for that, what should be binding be?
ohci-ctrl-rwc-something?
OHCI_CTRL_RWC is just a single-bit flag; the RWC part stands for "Remote Wakeup Control". The flag indicates whether the controller hardware is able to wake up the system, and it is supposed to be set initially by the firmware during boot-up. Under DT, the driver will have to set it manually.
So you could call it ohci-ctrl-rwc-on, or ohci-ctrl-rwc-enable, or anything similar. Use your own judgment.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 15 lines · Alan Stern
Quoted 13 lines · Tony Lindgren
Quoted 12 lines · Alan Stern
Quoted 9 lines · Tony Lindgren
Quoted 5 lines · Alan Stern
You know, as far as I can tell the only thing that is OMAP-specific about the ohci-omap3 driver is the initialization of
OHCI_CTRL_RWC. This could be added to the platform data or the DT bindings, after which this driver wouldn't be needed at all -- theohci_platformdriver would work. Does this seem reasonable?Sure makes sense to me. Do we have some standard binding for
OCHI_CTRL_RWC?
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
No, one would have to be created.
OK I can do a patch for that, what should be binding be?
ohci-ctrl-rwc-something?
OHCI_CTRL_RWCis just a single-bit flag; the RWC part stands for "Remote Wakeup Control".
Sorry, careless mistake on my part. It actually stands for "Remote Wakeup Connected"; meaning that the remote-wakeup output signal from the controller is connected to something really can wake up the system. This is exactly the sort of hardware implementation detail that the firmware is supposed to know.
Alan Stern
Quoted 9 lines
The flag indicates whether the controller
hardware is able to wake up the system, and it is supposed to be set initially by the firmware during boot-up. Under DT, the driver will have to set it manually.So you could call it ohci-ctrl-rwc-on, or ohci-ctrl-rwc-enable, or anything similar. Use your own judgment.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 23 lines · Alan Stern
Quoted 21 lines · Alan Stern
Quoted 18 lines · Tony Lindgren
Quoted 9 lines · Alan Stern
Quoted 7 lines · Tony Lindgren
Quoted 5 lines · Alan Stern
You know, as far as I can tell the only thing that is OMAP-specific about the ohci-omap3 driver is the initialization of
OHCI_CTRL_RWC. This could be added to the platform data or the DT bindings, after which this driver wouldn't be needed at all -- theohci_platformdriver would work. Does this seem reasonable?Quoted 4 lines
Quoted 2 lines
Sure makes sense to me. Do we have some standard binding for
OCHI_CTRL_RWC?No, one would have to be created.
OK I can do a patch for that, what should be binding be?
ohci-ctrl-rwc-something?
Quoted 8 lines
Quoted 2 lines
OHCI_CTRL_RWCis just a single-bit flag; the RWC part stands for "Remote Wakeup Control".Sorry, careless mistake on my part. It actually stands for "Remote Wakeup Connected"; meaning that the remote-wakeup output signal from the controller is connected to something really can wake up the system. This is exactly the sort of hardware implementation detail that the firmware is supposed to know.
OK thanks. I think it can be set up as a generic wakeirq.
Quoted 7 lines
Quoted 7 lines
The flag indicates whether the controller
hardware is able to wake up the system, and it is supposed to be set initially by the firmware during boot-up. Under DT, the driver will have to set it manually.So you could call it ohci-ctrl-rwc-on, or ohci-ctrl-rwc-enable, or anything similar. Use your own judgment.
OK
Regards,
Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Quoted 27 lines · Tony Lindgren
Quoted 26 lines · Alan Stern
Quoted 23 lines · Alan Stern
Quoted 10 lines · Tony Lindgren
Quoted 9 lines · Alan Stern
Quoted 7 lines · Tony Lindgren
Quoted 5 lines · Alan Stern
You know, as far as I can tell the only thing that is OMAP-specific about the ohci-omap3 driver is the initialization of
OHCI_CTRL_RWC. This could be added to the platform data or the DT bindings, after which this driver wouldn't be needed at all -- theohci_platformdriver would work. Does this seem reasonable?Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Sure makes sense to me. Do we have some standard binding for
OCHI_CTRL_RWC?No, one would have to be created.
OK I can do a patch for that, what should be binding be?
ohci-ctrl-rwc-something?
OHCI_CTRL_RWCis just a single-bit flag; the RWC part stands for "Remote Wakeup Control".
Quoted 7 lines
Quoted 5 lines
Sorry, careless mistake on my part. It actually stands for "Remote Wakeup Connected"; meaning that the remote-wakeup output signal from the controller is connected to something really can wake up the system. This is exactly the sort of hardware implementation detail that the firmware is supposed to know.
OK thanks. I think it can be set up as a generic wakeirq.
Sorry for the slowness on this one, I have not forgotten about this. I now do have a nice testcase of a modem on the ohci bus I can test with :)
Also looks we can pretty easily support GPIO wake-up events some integrated USB devices have with the Linux generic wakeirqs. I did some testing with that and the only question really is where to configure it. For my tests, I just patched it into bin/unbind in drivers/net/usb/cdc_ether.c, but I think it can be generic to all USB devices.
Anyways, patches coming at some point, might take a while though.
Regards,
Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html