* [V2,3/6] usb: xhci: xhci-plat: Add support for Broadcom STB SoC's
@ 2018-10-17 22:29 Alan Cooper
0 siblings, 0 replies; 3+ messages in thread
From: Alan Cooper @ 2018-10-17 22:29 UTC (permalink / raw)
To: linux-kernel
Cc: Al Cooper, Alan Stern, Alban Bedel, Alex Elder, Andrew Morton,
Arnd Bergmann, Avi Fishman, bcm-kernel-feedback-list,
Bjorn Andersson, Chunfeng Yun, David S. Miller, devicetree,
Dmitry Osipenko, Greg Kroah-Hartman, Gustavo A. R. Silva,
Hans de Goede, James Hogan, Jianguo Sun, Johan Hovold, Kees Cook,
linux-usb, Lu Baolu, Mark Rutland, Martin Blumenstingl,
Mathias Nyman, Mathias Nyman, Mauro Carvalho Chehab,
Rishabh Bhatnagar, Rob Herring, Roger Quadros
Add support for Broadcom STB SoC's to the xhci platform driver
Signed-off-by: Al Cooper <alcooperx@gmail.com>
---
drivers/usb/host/xhci-brcm.c | 17 +++++++++++++++++
drivers/usb/host/xhci-brcm.h | 16 ++++++++++++++++
drivers/usb/host/xhci-plat.c | 8 ++++++++
3 files changed, 41 insertions(+)
create mode 100644 drivers/usb/host/xhci-brcm.c
create mode 100644 drivers/usb/host/xhci-brcm.h
diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c
new file mode 100644
index 000000000000..a7220126f6af
--- /dev/null
+++ b/drivers/usb/host/xhci-brcm.c
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright (c) 2018, Broadcom */
+
+#include <linux/usb.h>
+#include <linux/usb/hcd.h>
+
+#include "xhci.h"
+
+int xhci_plat_brcm_init_quirk(struct usb_hcd *hcd)
+{
+ struct xhci_hcd *xhci = hcd_to_xhci(hcd);
+
+ xhci->quirks |= XHCI_RESET_ON_RESUME;
+ hcd->suspend_without_phy_exit = 1;
+ return 0;
+}
+
diff --git a/drivers/usb/host/xhci-brcm.h b/drivers/usb/host/xhci-brcm.h
new file mode 100644
index 000000000000..a39d1b807a4c
--- /dev/null
+++ b/drivers/usb/host/xhci-brcm.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/* Copyright (c) 2018, Broadcom */
+
+#ifndef _XHCI_BRCM_H
+#define _XHCI_BRCM_H
+
+#if IS_ENABLED(CONFIG_USB_XHCI_BRCM)
+int xhci_plat_brcm_init_quirk(struct usb_hcd *hcd);
+#else
+static inline int xhci_brcm_init_quirk(struct usb_hcd *hcd)
+{
+ return 0;
+}
+#endif
+#endif /* _XHCI_BRCM_H */
+
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 94e939249b2b..1de22928e862 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -23,6 +23,7 @@
#include "xhci-plat.h"
#include "xhci-mvebu.h"
#include "xhci-rcar.h"
+#include "xhci-brcm.h"
static struct hc_driver __read_mostly xhci_plat_hc_driver;
@@ -111,6 +112,10 @@ static int xhci_plat_start(struct usb_hcd *hcd)
.resume_quirk = xhci_rcar_resume_quirk,
};
+static const struct xhci_plat_priv xhci_plat_brcm = {
+ .init_quirk = xhci_plat_brcm_init_quirk
+};
+
static const struct of_device_id usb_xhci_of_match[] = {
{
.compatible = "generic-xhci",
@@ -143,6 +148,9 @@ static int xhci_plat_start(struct usb_hcd *hcd)
}, {
.compatible = "renesas,rcar-gen3-xhci",
.data = &xhci_plat_renesas_rcar_gen3,
+ }, {
+ .compatible = "brcm,bcm7445-xhci",
+ .data = &xhci_plat_brcm,
},
{},
};
^ permalink raw reply related [flat|nested] 3+ messages in thread* [V2,3/6] usb: xhci: xhci-plat: Add support for Broadcom STB SoC's
@ 2018-10-18 16:49 kbuild test robot
0 siblings, 0 replies; 3+ messages in thread
From: kbuild test robot @ 2018-10-18 16:49 UTC (permalink / raw)
To: Al Cooper
Cc: kbuild-all, linux-kernel, Alan Stern, Alban Bedel, Alex Elder,
Andrew Morton, Arnd Bergmann, Avi Fishman,
bcm-kernel-feedback-list, Bjorn Andersson, Chunfeng Yun,
David S. Miller, devicetree, Dmitry Osipenko, Greg Kroah-Hartman,
Gustavo A. R. Silva, Hans de Goede, James Hogan, Jianguo Sun,
Johan Hovold, Kees Cook, linux-usb, Lu Baolu, Mark Rutland,
Martin Blumenstingl, Mathias Nyman, Mathias Nyman,
Mauro Carvalho Chehab, Rishabh Bhatnagar, Rob Herring,
Roger Quadros
Hi Al,
I love your patch! Yet something to improve:
[auto build test ERROR on usb/usb-testing]
[also build test ERROR on v4.19-rc8 next-20181018]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Al-Cooper/Add-XHCI-EHCI-and-OHCI-support-for-Broadcom-STB-SoS-s/20181019-001132
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: x86_64-randconfig-x017-201841 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
Note: the linux-review/Al-Cooper/Add-XHCI-EHCI-and-OHCI-support-for-Broadcom-STB-SoS-s/20181019-001132 HEAD 80aedf2037a6c697bfe2193ffbb635e4ab26a0b6 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
>> drivers/usb//host/xhci-plat.c:117:16: error: 'xhci_plat_brcm_init_quirk' undeclared here (not in a function); did you mean 'xhci_brcm_init_quirk'?
.init_quirk = xhci_plat_brcm_init_quirk
^~~~~~~~~~~~~~~~~~~~~~~~~
xhci_brcm_init_quirk
vim +117 drivers/usb//host/xhci-plat.c
115
116 static const struct xhci_plat_priv xhci_plat_brcm = {
> 117 .init_quirk = xhci_plat_brcm_init_quirk
118 };
119
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
^ permalink raw reply [flat|nested] 3+ messages in thread* [V2,3/6] usb: xhci: xhci-plat: Add support for Broadcom STB SoC's
@ 2018-10-19 4:53 kbuild test robot
0 siblings, 0 replies; 3+ messages in thread
From: kbuild test robot @ 2018-10-19 4:53 UTC (permalink / raw)
To: Al Cooper
Cc: kbuild-all, linux-kernel, Alan Stern, Alban Bedel, Alex Elder,
Andrew Morton, Arnd Bergmann, Avi Fishman,
bcm-kernel-feedback-list, Bjorn Andersson, Chunfeng Yun,
David S. Miller, devicetree, Dmitry Osipenko, Greg Kroah-Hartman,
Gustavo A. R. Silva, Hans de Goede, James Hogan, Jianguo Sun,
Johan Hovold, Kees Cook, linux-usb, Lu Baolu, Mark Rutland,
Martin Blumenstingl, Mathias Nyman, Mathias Nyman,
Mauro Carvalho Chehab, Rishabh Bhatnagar, Rob Herring,
Roger Quadros
Hi Al,
I love your patch! Yet something to improve:
[auto build test ERROR on usb/usb-testing]
[also build test ERROR on v4.19-rc8 next-20181018]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Al-Cooper/Add-XHCI-EHCI-and-OHCI-support-for-Broadcom-STB-SoS-s/20181019-001132
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: i386-randconfig-s2-201841 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
>> drivers/usb/host/xhci-plat.c:117:16: error: 'xhci_plat_brcm_init_quirk' undeclared here (not in a function)
.init_quirk = xhci_plat_brcm_init_quirk
^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/xhci_plat_brcm_init_quirk +117 drivers/usb/host/xhci-plat.c
115
116 static const struct xhci_plat_priv xhci_plat_brcm = {
> 117 .init_quirk = xhci_plat_brcm_init_quirk
118 };
119
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-19 4:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-17 22:29 [V2,3/6] usb: xhci: xhci-plat: Add support for Broadcom STB SoC's Alan Cooper
-- strict thread matches above, loose matches on Subject: below --
2018-10-18 16:49 kbuild test robot
2018-10-19 4:53 kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).