?hci-platform: Add support for controllers with more then one reset line
Subsystems (4)
v4 cover ?hci-platform: Add support for controllers with more then one reset line
Hi All,
Here is a new version of my patch-set to support usb controllers which have multiple resets. These patches apply on top of the related reset-controller patches which have just been merged here:
git://git.pengutronix.de/git/pza/linux.git reset/next
Changes in v2:
-Switch to now shared reset_[de]assert functions
Changes in v3:
-Adjust for changes to shared-reset reset-controller functions
Changes in v4:
-Fix Ugly continuation line
-Add Acked-by: Alan Stern <[email protected]>
Regards,
Hans
-
PATCH v4 1/2 ehci-platform: Add support for controllers with multiple reset lines
From: Reinder de Haan <[email protected]>
At least the EHCI/OHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its companion is still asserted, which means we need to de-assert 2 resets for the controller to work.
---
Changes in v2:
-Use the new reset_control_[de]assert_shared reset-controller functions Changes in v3:
-Adjust for changes to shared-reset reset-controller functions Changes in v4:
-Fix Ugly continuation line
--- Documentation/devicetree/bindings/usb/usb-ehci.txt | 2 +- drivers/usb/host/ehci-platform.c | 41 ++++++++++++---------- 2 files changed, 24 insertions(+), 19 deletions(-)
Documentation/devicetree/bindings/usb/usb-ehci.txt +1 -1
@@ -18,7 +18,7 @@ Optional properties: - clocks : a list of phandle + clock specifier pairs - phys : phandle + phy specifier pair - phy-names : "usb" - - resets : phandle + reset specifier pair + - resets : a list of phandle + reset specifier pairs Example (Sequoia 440EPx): ehci at e0000300 {
drivers/usb/host/ehci-platform.c +23 -18
82 lines not on this page · raw message
Signature · 1 line
2.7.1
Rob Herring
maintainerPATCH v4 1/2 ehci-platform: Add support for controllers with multiple reset lines
Quoted 17 lines · Hans de Goede
From: Reinder de Haan <[email protected]>
At least the EHCI/OHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its companion is still asserted, which means we need to de-assert 2 resets for the controller to work.
Signed-off-by Reinder de Haan <[email protected]>Signed-off-by Hans de Goede <[email protected]>Acked-by Alan Stern <[email protected]>---
Changes in v2:
-Use the new reset_control_[de]assert_shared reset-controller functions Changes in v3:
-Adjust for changes to shared-reset reset-controller functions Changes in v4:
-Fix Ugly continuation line
Quoted 2 lines
--- Documentation/devicetree/bindings/usb/usb-ehci.txt | 2 +-
Quoted 2 lines
drivers/usb/host/ehci-platform.c | 41 ++++++++++++---------- 2 files changed, 24 insertions(+), 19 deletions(-)
Greg Kroah-Hartman
maintainerPATCH v4 1/2 ehci-platform: Add support for controllers with multiple reset lines
In reply to Hans de GoedeQuoted 11 lines · Hans de Goede
From: Reinder de Haan <[email protected]>
At least the EHCI/OHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its companion is still asserted, which means we need to de-assert 2 resets for the controller to work.
Signed-off-by Reinder de Haan <[email protected]>Signed-off-by Hans de Goede <[email protected]>Acked-by Alan Stern <[email protected]>Acked-by Rob Herring <[email protected]>
Quoted 7 lines
---
Changes in v2:
-Use the new reset_control_[de]assert_shared reset-controller functions Changes in v3:
-Adjust for changes to shared-reset reset-controller functions Changes in v4:
-Fix Ugly continuation line
This breaks the build horribly :(
As does patch 2/2, ugh.
[linux-sunxi] Re: [PATCH v4 1/2] ehci-platform: Add support for controllers with multiple reset lines
Hi,
Quoted 22 lines · Greg Kroah-Hartman
Quoted 11 lines · Hans de Goede
From: Reinder de Haan <[email protected]>
At least the EHCI/OHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its companion is still asserted, which means we need to de-assert 2 resets for the controller to work.
Signed-off-by Reinder de Haan <[email protected]>Signed-off-by Hans de Goede <[email protected]>Acked-by Alan Stern <[email protected]>Acked-by Rob Herring <[email protected]>Quoted 7 lines
---
Changes in v2:
-Use the new reset_control_[de]assert_shared reset-controller functions Changes in v3:
-Adjust for changes to shared-reset reset-controller functions Changes in v4:
-Fix Ugly continuation lineThis breaks the build horribly :(
Quoted 1 line
As does patch 2/2, ugh.
As said in the cover letter:
"These patches apply on top of the related reset-controller patches which have just been merged here:
git://git.pengutronix.de/git/pza/linux.git reset/next"
I guess I should have done s/apply on top of/depend on/ in the above bit. These patches apply fine without those changes, but indeed they will not build.
You may want to ask Philipp Zabel (added to the To: list) to create a topic branch for this which you can merge into your tree.
Regards,
Hans
Greg Kroah-Hartman
maintainer[linux-sunxi] Re: [PATCH v4 1/2] ehci-platform: Add support for controllers with multiple reset lines
Quoted 29 lines · Hans de Goede
Hi,
Quoted 22 lines · Greg Kroah-Hartman
Quoted 11 lines · Hans de Goede
From: Reinder de Haan <[email protected]>
At least the EHCI/OHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its companion is still asserted, which means we need to de-assert 2 resets for the controller to work.
Signed-off-by Reinder de Haan <[email protected]>Signed-off-by Hans de Goede <[email protected]>Acked-by Alan Stern <[email protected]>Acked-by Rob Herring <[email protected]>Quoted 7 lines
---
Changes in v2:
-Use the new reset_control_[de]assert_shared reset-controller functions Changes in v3:
-Adjust for changes to shared-reset reset-controller functions Changes in v4:
-Fix Ugly continuation lineThis breaks the build horribly :(
Quoted 1 line
As does patch 2/2, ugh.
As said in the cover letter:
Quoted 8 lines
"These patches apply on top of the related reset-controller patches which have just been merged here:
git://git.pengutronix.de/git/pza/linux.gitreset/next"I guess I should have done s/apply on top of/depend on/ in the above bit. These patches apply fine without those changes, but indeed they will not build.
Then I can't take them, you know this :(
Quoted 3 lines
You may want to ask Philipp Zabel (added to the To: list) to create a topic branch for this which you can merge into your tree.
If you all want me to do that, fine, otherwise just resend them after 4.6-rc1 is out and the build will not break at that time.
thanks,
greg k-h
[linux-sunxi] Re: [PATCH v4 1/2] ehci-platform: Add support for controllers with multiple reset lines
Hi,
Quoted 39 lines · Greg Kroah-Hartman
Quoted 29 lines · Hans de Goede
Hi,
Quoted 22 lines · Greg Kroah-Hartman
Quoted 11 lines · Hans de Goede
From: Reinder de Haan <[email protected]>
At least the EHCI/OHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its companion is still asserted, which means we need to de-assert 2 resets for the controller to work.
Signed-off-by Reinder de Haan <[email protected]>Signed-off-by Hans de Goede <[email protected]>Acked-by Alan Stern <[email protected]>Acked-by Rob Herring <[email protected]>Quoted 7 lines
---
Changes in v2:
-Use the new reset_control_[de]assert_shared reset-controller functions Changes in v3:
-Adjust for changes to shared-reset reset-controller functions Changes in v4:
-Fix Ugly continuation lineThis breaks the build horribly :(
Quoted 1 line
As does patch 2/2, ugh.
As said in the cover letter:
Quoted 8 lines
"These patches apply on top of the related reset-controller patches which have just been merged here:
git://git.pengutronix.de/git/pza/linux.gitreset/next"I guess I should have done s/apply on top of/depend on/ in the above bit. These patches apply fine without those changes, but indeed they will not build.
Quoted 8 lines
Then I can't take them, you know this :(
Quoted 3 lines
You may want to ask Philipp Zabel (added to the To: list) to create a topic branch for this which you can merge into your tree.
If you all want me to do that, fine, otherwise just resend them after 4.6-rc1 is out and the build will not break at that time.
Ok I will resend these after 4.6-rc1
Regards,
Hans
kbuild test robot
build bot[PATCH v4 1/2] ehci-platform: Add support for controllers with multiple reset lines
In reply to Hans de Goedereproduce:
Hi Reinder,
[auto build test ERROR on robh/for-next]
[also build test ERROR on v4.5-rc6 next-20160304]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Hans-de-Goede/hci-platform-Add-support-for-controllers-with-more-then-one-reset-line/20160228-010130 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux for-next config: x86_64-randconfig-s5-03060621 (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/usb/host/ehci-platform.c: In function 'ehci_platform_probe':
>> drivers/usb/host/ehci-platform.c:239:5: error: implicit declaration of function 'devm_reset_control_get_shared_by_index' [-Werror=implicit-function-declaration]
devm_reset_control_get_shared_by_index(
^
drivers/usb/host/ehci-platform.c:238:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
priv->resets[rst] =
^cc1: some warnings being treated as errors
vim +/devm_reset_control_get_shared_by_index +239 drivers/usb/host/ehci-platform.c
233 break;
234 }
235 }
236
237 for (rst = 0; rst < EHCI_MAX_RESETS; rst++) {
238 priv->resets[rst] =
> 239 devm_reset_control_get_shared_by_index(
240 &dev->dev, rst);
241 if (IS_ERR(priv->resets[rst])) {
242 err = PTR_ERR(priv->resets[rst]);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 29486 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160306/36c64f75/attachment-0001.obj>
PATCH v4 2/2 ohci-platform: Add support for controllers with multiple reset lines
In reply to Hans de GoedeAt least the EHCI/OHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its companion is still asserted, which means we need to de-assert 2 resets for the controller to work.
---
Changes in v2:
-New patch in v2 of this patch-set, to complement the identical patch for
the ehci-platform code
Changes in v3:
-Adjust for changes to shared-reset reset-controller functions Changes in v4:
-Fix Ugly continuation line
--- Documentation/devicetree/bindings/usb/usb-ohci.txt | 2 +- drivers/usb/host/ohci-platform.c | 43 ++++++++++++---------- 2 files changed, 24 insertions(+), 21 deletions(-)
Documentation/devicetree/bindings/usb/usb-ohci.txt +1 -1
@@ -14,7 +14,7 @@ Optional properties: - clocks : a list of phandle + clock specifier pairs - phys : phandle + phy specifier pair - phy-names : "usb" -- resets : phandle + reset specifier pair +- resets : a list of phandle + reset specifier pairs Example:
drivers/usb/host/ohci-platform.c +23 -20
83 lines not on this page · raw message
Signature · 1 line
2.7.1
Rob Herring
maintainerPATCH v4 2/2 ohci-platform: Add support for controllers with multiple reset lines
Quoted 15 lines · Hans de Goede
At least the EHCI/OHCI found on the Allwinnner H3 SoC needs multiple reset lines, the controller will not initialize while the reset for its companion is still asserted, which means we need to de-assert 2 resets for the controller to work.
Signed-off-by Hans de Goede <[email protected]>Acked-by Alan Stern <[email protected]>---
Changes in v2:
-New patch in v2 of this patch-set, to complement the identical patch for
the ehci-platform code
Changes in v3:
-Adjust for changes to shared-reset reset-controller functions Changes in v4:
-Fix Ugly continuation line
Quoted 2 lines
--- Documentation/devicetree/bindings/usb/usb-ohci.txt | 2 +-
Quoted 2 lines
drivers/usb/host/ohci-platform.c | 43 ++++++++++++---------- 2 files changed, 24 insertions(+), 21 deletions(-)
kbuild test robot
build bot[PATCH v4 2/2] ohci-platform: Add support for controllers with multiple reset lines
In reply to Hans de Goedereproduce:
Hi Hans,
[auto build test ERROR on robh/for-next]
[also build test ERROR on v4.5-rc6 next-20160304]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Hans-de-Goede/hci-platform-Add-support-for-controllers-with-more-then-one-reset-line/20160228-010130 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux for-next config: x86_64-randconfig-s5-03060621 (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/usb/host/ohci-platform.c: In function 'ohci_platform_probe':
>> drivers/usb/host/ohci-platform.c:201:5: error: implicit declaration of function 'devm_reset_control_get_shared_by_index' [-Werror=implicit-function-declaration]
devm_reset_control_get_shared_by_index(
^
drivers/usb/host/ohci-platform.c:200:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
priv->resets[rst] =
^cc1: some warnings being treated as errors
vim +/devm_reset_control_get_shared_by_index +201 drivers/usb/host/ohci-platform.c
195 priv->clks[clk] = NULL;
196 break;
197 }
198 }
199 for (rst = 0; rst < OHCI_MAX_RESETS; rst++) {
200 priv->resets[rst] =
> 201 devm_reset_control_get_shared_by_index(
202 &dev->dev, rst);
203 if (IS_ERR(priv->resets[rst])) {
204 err = PTR_ERR(priv->resets[rst]);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 29486 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160306/8aec91a8/attachment-0001.obj>