[-next] serial: 8250: Match legacy NS16550A UARTs

2021-04-14 Thread Al Cooper
From: Florian Fainelli Older 32-bit only Broadcom STB chips used a NS16550A compatible UART, the 8250_bcm7271.c driver can drive those UARTs just fine provided that we let it match the appropriate compatible string. Signed-off-by: Florian Fainelli Reviewed-by: Al Cooper --- drivers/tty

[PATCH] mmc: sdhci-brcmstb: Remove CQE quirk

2021-03-25 Thread Al Cooper
Remove the CQHCI_QUIRK_SHORT_TXFR_DESC_SZ quirk because the latest chips have this fixed and earlier chips have other CQE problems that prevent the feature from being enabled. Signed-off-by: Al Cooper --- drivers/mmc/host/sdhci-brcmstb.c | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH v7 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-03-25 Thread Al Cooper
robot. Signed-off-by: Al Cooper Reported-by: kernel test robot --- MAINTAINERS|8 + drivers/tty/serial/8250/8250_bcm7271.c | 1202 drivers/tty/serial/8250/Kconfig| 10 + drivers/tty/serial/8250/Makefile |1 + 4 file

[PATCH v7 0/2] 8250: Add driver for Broadcom UART

2021-03-25 Thread Al Cooper
f.c to keep it from registering before this driver when this driver was deferred as it was getting it's "clocks". This was fixed by changing the Device Tree entry to remove "clock-frequency". This results in both drivers getting "clocks" and getting

[PATCH v7 1/2] dt-bindings: Add support for the Broadcom UART driver

2021-03-25 Thread Al Cooper
with the standard 8250 UART. Signed-off-by: Al Cooper Reviewed-by: Rob Herring --- .../bindings/serial/brcm,bcm7271-uart.yaml| 95 +++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml diff --git a

[PATCH v6 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-03-18 Thread Al Cooper
robot. Signed-off-by: Al Cooper Reported-by: kernel test robot --- MAINTAINERS|8 + drivers/tty/serial/8250/8250_bcm7271.c | 1202 drivers/tty/serial/8250/Kconfig| 10 + drivers/tty/serial/8250/Makefile |1 + 4 file

[PATCH v6 1/2] dt-bindings: Add support for the Broadcom UART driver

2021-03-18 Thread Al Cooper
with the standard 8250 UART. Signed-off-by: Al Cooper --- .../bindings/serial/brcm,bcm7271-uart.yaml| 95 +++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml diff --git a/Documentation/devicetree/bindings

[PATCH v6 0/2] 8250: Add driver for Broadcom UART

2021-03-18 Thread Al Cooper
This was fixed by changing the Device Tree entry to remove "clock-frequency". This results in both drivers getting "clocks" and getting same the deferral. Al Cooper (2): dt-bindings: Add support for the Broadcom UART driver serial: 8250: Add new 8250-c

[PATCH v4 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-03-08 Thread Al Cooper
ther do a dummy read or a valid read. Debugfs error counters were also added and were used to help create test software that would cause the error condition. The counters can be found at: /sys/kernel/debug/bcm7271-uart//stats Signed-off-by: Al Cooper --- MAINTAINERS|8

[PATCH v4 1/2] dt-bindings: Add support for the Broadcom UART driver

2021-03-08 Thread Al Cooper
with the standard 8250 UART. Signed-off-by: Al Cooper --- .../bindings/serial/brcm,bcm7271-uart.yaml| 96 +++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml diff --git a/Documentation/devicetree/bindings

[PATCH v4 0/2] 8250: Add driver for Broadcom UART

2021-03-08 Thread Al Cooper
was deferred as it was getting it's "clocks". This was fixed by changing the Device Tree entry to remove "clock-frequency". This results in both drivers getting "clocks" and getting same the deferral. Al Cooper (2): dt-bindings: Add support fo

Re: [PATCH v4 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-03-04 Thread Al Cooper
On Wed, Mar 3, 2021 at 2:29 PM Greg Kroah-Hartman wrote: > > On Fri, Feb 19, 2021 at 03:37:08PM -0500, Al Cooper wrote: > > Add a UART driver for the new Broadcom 8250 based STB UART. The new > > UART is backward compatible with the standard 8250, but has some > > addi

[PATCH v4 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-02-19 Thread Al Cooper
Signed-off-by: Al Cooper --- MAINTAINERS|8 + drivers/tty/serial/8250/8250_bcm7271.c | 1100 drivers/tty/serial/8250/Kconfig| 10 + drivers/tty/serial/8250/Makefile |1 + drivers/tty/serial/8250/bcm7271_uart.h | 15

[PATCH v4 1/2] dt-bindings: Add support for the Broadcom UART driver

2021-02-19 Thread Al Cooper
with the standard 8250 UART. Signed-off-by: Al Cooper --- .../bindings/serial/brcm,bcm7271-uart.yaml| 96 +++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml diff --git a/Documentation/devicetree/bindings

[PATCH v4 0/2] serial: 8250: Add driver for Broadcom UART

2021-02-19 Thread Al Cooper
ot;clocks". This was fixed by changing the Device Tree entry to remove "clock-frequency". This results in both drivers getting "clocks" and getting same the deferral. Al Cooper (2): dt-bindings: Add support for the Broadcom UART driver serial: 8250: Add new 8250-

Re: [PATCH v3 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-02-19 Thread Al Cooper
On Fri, Feb 19, 2021 at 4:43 AM Jiri Slaby wrote: > > On 12. 02. 21, 20:57, Al Cooper wrote: > > Add a UART driver for the new Broadcom 8250 based STB UART. The new > > UART is backward compatible with the standard 8250, but has some > > additional features. The new

[PATCH v3 1/2] dt-bindings: Add support for the Broadcom UART driver

2021-02-12 Thread Al Cooper
with the standard 8250 UART. Signed-off-by: Al Cooper --- .../bindings/serial/brcm,bcm7271-uart.yaml| 96 +++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml diff --git a/Documentation/devicetree/bindings

[PATCH v3 0/2] serial: 8250: Add driver for Broadcom UART

2021-02-12 Thread Al Cooper
ep it from registering before this driver when this driver was deferred as it was getting it's "clocks". This was fixed by changing the Device Tree entry to remove "clock-frequency". This results in both drivers getting "clocks" and getting sam

[PATCH v3 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-02-12 Thread Al Cooper
Signed-off-by: Al Cooper --- MAINTAINERS|8 + drivers/tty/serial/8250/8250_bcm7271.c | 1099 drivers/tty/serial/8250/Kconfig| 11 + drivers/tty/serial/8250/Makefile |1 + drivers/tty/serial/8250/bcm7271_uart.h | 15

Re: [PATCH v2 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-01-20 Thread Al Cooper
her suggestions. Thanks Al On Wed, Jan 20, 2021 at 11:47 AM Andy Shevchenko wrote: > > On Tue, Jan 19, 2021 at 8:16 PM Florian Fainelli wrote: > > On 1/19/2021 7:21 AM, Andy Shevchenko wrote: > > > On Fri, Jan 15, 2021 at 11:19 PM Al Cooper wrote: > > >> &g

Re: [PATCH v2 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-01-18 Thread Al Cooper
On Mon, Jan 18, 2021 at 12:45 PM Greg Kroah-Hartman wrote: > > On Fri, Jan 15, 2021 at 04:15:43PM -0500, Al Cooper wrote: > > Add a UART driver for the new Broadcom 8250 based STB UART. The new > > UART is backward compatible with the standard 8250, but has some > > addi

[PATCH] usb: bdc: Remove the BDC PCI driver

2021-01-15 Thread Al Cooper
driver. Signed-off-by: Al Cooper --- drivers/usb/gadget/udc/bdc/Kconfig | 11 --- drivers/usb/gadget/udc/bdc/Makefile | 2 - drivers/usb/gadget/udc/bdc/bdc_pci.c | 128 --- 3 files changed, 141 deletions(-) delete mode 100644 drivers/usb/gadget/udc/bdc/bdc_pci.c diff

[PATCH v2 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-01-15 Thread Al Cooper
/sys/devices/platform/rdb/*serial/rx_bad_timeout_late_char /sys/devices/platform/rdb/*serial/rx_bad_timeout_no_char Signed-off-by: Al Cooper --- MAINTAINERS|8 + drivers/tty/serial/8250/8250_bcm7271.c | 1131 drivers/tty/serial/8250/Kconfig

[PATCH v2 1/2] dt-bindings: Add support for the Broadcom UART driver

2021-01-15 Thread Al Cooper
with the standard 8250 UART. Signed-off-by: Al Cooper --- .../bindings/serial/brcm,bcm7271-uart.yaml| 94 +++ 1 file changed, 94 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml diff --git a/Documentation/devicetree/bindings

[PATCH v2 0/2] serial: 8250: Add driver for Broadcom UART

2021-01-15 Thread Al Cooper
h drivers getting "clocks" and getting same deferral. Add UART driver for the new Broadcom 8250 based STB UART. The new UART is backward compatible with the standard 8250, but has some additional features. The new features include a high accuracy baud rate clock system and DMA support.

[PATCH] mmc: sdhci-brcmstb: Fix mmc timeout errors on S5 suspend

2021-01-07 Thread Al Cooper
e caused timeouts as the MMC queues were cleaned up for "remove". The shutdown callback will be changed to calling sdhci-pltfm_suspend which should get better power savings because the clocks will be shutdown. Fixes: e7b5d63a82fe ("mmc: sdhci-brcmstb: Add shutdown callback") Sig

[PATCH 1/3] serial: 8250: of: Check for CONFIG_SERIAL_8250_BCM7271

2020-11-20 Thread Al Cooper
From: Jim Quinlan This commit has of_platform_serial_probe() check specifically for the "brcm,bcm7271-uart" and whether its companion driver is enabled. If it is the case, and the clock provider is not ready, we want to make sure that when the 8250_bcm7271.c driver returns EPROBE_DEFER, we are no

[PATCH 3/3] serial: 8250: Add new 8250-core based Broadcom STB driver

2020-11-20 Thread Al Cooper
/sys/devices/platform/rdb/*serial/rx_bad_timeout_late_char /sys/devices/platform/rdb/*serial/rx_bad_timeout_no_char Signed-off-by: Al Cooper --- MAINTAINERS|8 + drivers/tty/serial/8250/8250_bcm7271.c | 1131 drivers/tty/serial/8250/Kconfig

[PATCH 0/3] serial: 8250: Add driver for Broadcom UART

2020-11-20 Thread Al Cooper
Add UART driver for the new Broadcom 8250 based STB UART. The new UART is backward compatible with the standard 8250, but has some additional features. The new features include a high accuracy baud rate clock system and DMA support. Al Cooper (2): dt-bindings: Add support for the Broadcom UART

[PATCH 2/3] dt-bindings: Add support for the Broadcom UART driver

2020-11-20 Thread Al Cooper
with the standard 8250 UART. Signed-off-by: Al Cooper --- .../bindings/serial/brcm,bcm7271-uart.yaml| 94 +++ 1 file changed, 94 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm7271-uart.yaml diff --git a/Documentation/devicetree/bindings

[PATCH v3 0/2] usb: Add driver for USB signal re-mapper

2020-10-12 Thread Al Cooper
these three signals based on settings in the Device Tree node for the driver. The driver was written so that it could handle additional signals added in the future by just adding the correct properties to the DT node. Al Cooper (2): dt-bindings: Add support for Broadcom USB pin map driver usb

[PATCH v3 2/2] usb: Add driver to allow any GPIO to be used for 7211 USB signals

2020-10-12 Thread Al Cooper
;&gpio 19 0>; brcm,in-functions = "VBUS", "PWRFLT"; brcm,in-masks = <0x8000 0x4 0x1 0x8>; out-gpios = <&gpio 20 0>; brcm,out-functions = "PWRON"; brcm,out-masks = <0x2 0x80

[PATCH v3 1/2] dt-bindings: Add support for Broadcom USB pin map driver

2020-10-12 Thread Al Cooper
Add DT bindings for the Broadcom USB pin map driver. This driver allows some USB input and output signals to be mapped to any GPIO instead of the normal dedicated pins to/from the XHCI controller. Signed-off-by: Al Cooper --- .../bindings/usb/brcm,usb-pinmap.yaml | 70

[PATCH v2 1/2] dt-bindings: Add support for Broadcom USB pin map driver

2020-10-09 Thread Al Cooper
Add DT bindings for the Broadcom USB pin map driver. This driver allows some USB input and output signals to be mapped to any GPIO instead of the normal dedicated pins to/from the XHCI controller. Signed-off-by: Al Cooper --- .../bindings/usb/brcm,usb-pinmap.yaml | 70

[PATCH v2 0/2] usb: Add driver for USB signal re-mapper

2020-10-09 Thread Al Cooper
they weren't a good fit. Al Cooper (2): dt-bindings: Add support for Broadcom USB pin map driver usb: Add driver to allow any GPIO to be used for 7211 USB signals .../bindings/usb/brcm,usb-pinmap.yaml | 70 MAINTAINERS | 8 + drivers/usb

[PATCH v2 2/2] usb: Add driver to allow any GPIO to be used for 7211 USB signals

2020-10-09 Thread Al Cooper
;&gpio 19 0>; brcm,in-functions = "VBUS", "PWRFLT"; brcm,in-masks = <0x8000 0x4 0x1 0x8>; out-gpios = <&gpio 20 0>; brcm,out-functions = "PWRON"; brcm,out-masks = <0x2 0x80

[PATCH] phy: usb: Fix incorrect clearing of tca_drv_sel bit in SETUP reg for 7211

2020-10-02 Thread Al Cooper
the driver had to clear the bit. In the 7211c0 the state was inverted so the driver should no longer clear the bit. This hasn't been a problem because all current 7211 boards don't use the VBUS signal, but there are some future customer boards that may use it. Signed-off-by: Al Cooper --

[PATCH 3/3] usb: Add Kconfig and Makefile changes to build brcmstb-usb-pinmap

2020-08-12 Thread Al Cooper
From: Al Cooper Add Kconfig and Makefile changes to build brcmstb-usb-pinmap and update MAINTAINERS for the new driver. refs #SWLINUX-5537 Signed-off-by: Al Cooper --- MAINTAINERS | 8 drivers/usb/host/Kconfig | 4 drivers/usb/host/Makefile | 1 + 3 files changed

[PATCH 2/3] usb: Add driver to allow any GPIO to be used for 7211 USB signals

2020-08-12 Thread Al Cooper
From: Al Cooper The Broadcom 7211 has new functionality that allows some USB low speed side band signals, that go from the XHCI host controller to pins on the chip, to be remapped to use any GPIO pin instead of the limited set selectable by hardware. This can be done without changing the

[PATCH 0/3] usb: Add driver for USB signal re-mapper

2020-08-12 Thread Al Cooper
the future by just adding the correct properties to the DT node. Al Cooper (3): dt-bindings: Add support for Broadcom USB pin map driver usb: Add driver to allow any GPIO to be used for 7211 USB signals usb: Add Kconfig and Makefile changes to build brcmstb-usb-pinmap .../bindings/usb/brcm

[PATCH 1/3] dt-bindings: Add support for Broadcom USB pin map driver

2020-08-12 Thread Al Cooper
Add DT bindings for the Broadcom USB pin map driver. This driver allows some USB input and output signals to be mapped to any GPIO instead of the normal dedicated pins to/from the XHCI controller. Signed-off-by: Al Cooper --- .../bindings/usb/brcm,usb-pinmap.yaml | 63

[PATCH v3 3/7] bdc: Fix bug causing crash after multiple disconnects

2020-07-22 Thread Al Cooper
connected. This will also fix issues that showed up when using configfs to create gadgets. Signed-off-by: Sasi Kumar Signed-off-by: Al Cooper Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_core.c | 4 drivers/usb/gadget/udc/bdc/bdc_ep.c | 16 ++-- 2 files changed

[PATCH v3 5/7] usb: bdc: driver runs out of buffer descriptors on large ADB transfers

2020-07-22 Thread Al Cooper
doubling the number of BDs that can be queued so that the entire 1M request can be queued without running out of buffers. Signed-off-by: Al Cooper Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget

[PATCH v3 7/7] usb: bdc: Use devm_clk_get_optional()

2020-07-22 Thread Al Cooper
From: Florian Fainelli The BDC clock is optional and we may get an -EPROBE_DEFER error code which would not be propagated correctly, fix this by using devm_clk_get_optional(). Signed-off-by: Florian Fainelli Signed-off-by: Al Cooper --- drivers/usb/gadget/udc/bdc/bdc_core.c | 8 +++- 1

[PATCH v3 6/7] usb: bdc: Halt controller on suspend

2020-07-22 Thread Al Cooper
e BDC driver that halts the controller before S2 entry thus preventing unwanted access to the BDC register space during this transition. Signed-off-by: Danesh Petigara Signed-off-by: Al Cooper Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_core.c | 9 +++-- 1 file chang

[PATCH v3 1/7] dt-bindings: usb: bdc: Update compatible strings

2020-07-22 Thread Al Cooper
Remove "brcm,bdc-v0.16" because it was never used on any system. Add "brcm,bdc-udc-v2" which exists for any STB system with BDC. Signed-off-by: Al Cooper Acked-by: Florian Fainelli --- Documentation/devicetree/bindings/usb/brcm,bdc.txt | 4 ++-- 1 file changed, 2 insert

[PATCH v3 0/7] usb: bdc: Updates and fixes to the USB BDC driver

2020-07-22 Thread Al Cooper
v3 - s/there/their/ in commit message in patch 2/7 as suggested by Sergei Shtylyov. v2 - Fix Signed-off-by issues, remove internal bug reference. Fix binding document to match driver. Updates and fixes to the Broadcom USB BDC driver. Al Cooper (4): dt-bindings: usb: bdc: Update

[PATCH v3 4/7] usb: bdc: Adb shows offline after resuming from S2

2020-07-22 Thread Al Cooper
. Signed-off-by: Al Cooper Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_core.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c index b70b438efff4..2c2f7aef7ba7 100644

[PATCH v3 2/7] usb: bdc: Add compatible string for new style USB DT nodes

2020-07-22 Thread Al Cooper
Add compatible string for some newer boards that only have this as their match sting. Remove unused compatible string "brcm,bdc-v0.16". Signed-off-by: Al Cooper Acked-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH] mmc: Some Micron eMMC devices cause reboot to hang

2020-07-21 Thread Al Cooper
state, before restarting the system. The fix is to add a quirk that avoids sending the SLEEP command and to use MMC_FIXUP to set the quirk for these Micron devices. Signed-off-by: Al Cooper --- drivers/mmc/core/mmc.c| 3 ++- drivers/mmc/core/quirks.h | 8 include/linux/mmc/card.h

[PATCH v2 4/7] usb: bdc: Adb shows offline after resuming from S2

2020-07-21 Thread Al Cooper
. Signed-off-by: Al Cooper --- drivers/usb/gadget/udc/bdc/bdc_core.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c index b70b438efff4..2c2f7aef7ba7 100644 --- a/drivers/usb/gadget/udc

[PATCH v2 5/7] usb: bdc: driver runs out of buffer descriptors on large ADB transfers

2020-07-21 Thread Al Cooper
doubling the number of BDs that can be queued so that the entire 1M request can be queued without running out of buffers. Signed-off-by: Al Cooper --- drivers/usb/gadget/udc/bdc/bdc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/bdc/bdc.h b/drivers/usb

[PATCH v2 7/7] usb: bdc: Use devm_clk_get_optional()

2020-07-21 Thread Al Cooper
From: Florian Fainelli The BDC clock is optional and we may get an -EPROBE_DEFER error code which would not be propagated correctly, fix this by using devm_clk_get_optional(). Signed-off-by: Florian Fainelli Signed-off-by: Al Cooper --- drivers/usb/gadget/udc/bdc/bdc_core.c | 8 +++- 1

[PATCH v2 6/7] usb: bdc: Halt controller on suspend

2020-07-21 Thread Al Cooper
e BDC driver that halts the controller before S2 entry thus preventing unwanted access to the BDC register space during this transition. Signed-off-by: Danesh Petigara Signed-off-by: Al Cooper --- drivers/usb/gadget/udc/bdc/bdc_core.c | 9 +++-- 1 file changed, 7 insertions(+), 2 dele

[PATCH v2 2/7] usb: bdc: Add compatible string for new style USB DT nodes

2020-07-21 Thread Al Cooper
Add compatible string for some newer boards that only have this as there match sting. Remove unused compatible string "brcm,bdc-v0.16". Signed-off-by: Al Cooper --- drivers/usb/gadget/udc/bdc/bdc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/

[PATCH v2 1/7] dt-bindings: usb: bdc: Update compatible strings

2020-07-21 Thread Al Cooper
Remove "brcm,bdc-v0.16" because it was never used on any system. Add "brcm,bdc-udc-v2" which exists for any STB system with BDC. Signed-off-by: Al Cooper --- Documentation/devicetree/bindings/usb/brcm,bdc.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -

[PATCH v2 3/7] bdc: Fix bug causing crash after multiple disconnects

2020-07-21 Thread Al Cooper
connected. This will also fix issues that showed up when using configfs to create gadgets. Signed-off-by: Sasi Kumar Signed-off-by: Al Cooper --- drivers/usb/gadget/udc/bdc/bdc_core.c | 4 drivers/usb/gadget/udc/bdc/bdc_ep.c | 16 ++-- 2 files changed, 14 insertions(+), 6

[PATCH v2 0/7] usb: bdc: Updates and fixes to the USB BDC driver

2020-07-21 Thread Al Cooper
v2 - Fix Signed-off-by issues, remove internal bug reference. Fix binding document to match driver. Updates and fixes to the Broadcom USB BDC driver. Al Cooper (4): dt-bindings: usb: bdc: Update compatible strings usb: bdc: Add compatible string for new style USB DT nodes usb: bdc

[PATCH 5/7] usb: bdc: driver runs out of buffer descriptors on large ADB transfers

2020-07-17 Thread Al Cooper
doubling the number of BDs that can be queued so that the entire 1M request can be queued without running out of buffers. Signed-off-by: Al Cooper Signed-off-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb

[PATCH 1/7] dt-bindings: usb: bdc: Update compatible strings

2020-07-17 Thread Al Cooper
Remove "brcm,bdc-v0.16" because it was never used on any system. Add "brcm,bdc-udc-v3.1" which exists for any STB system with BDC. Signed-off-by: Al Cooper --- Documentation/devicetree/bindings/usb/brcm,bdc.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[PATCH 3/7] bdc: Fix bug causing crash after multiple disconnects

2020-07-17 Thread Al Cooper
connected. This will also fix issues that showed up when using configfs to create gadgets. refs #SWLINUX-5477 Signed-off-by: Sasi Kumar Signed-off-by: Al Cooper --- drivers/usb/gadget/udc/bdc/bdc_core.c | 4 drivers/usb/gadget/udc/bdc/bdc_ep.c | 16 ++-- 2 files changed, 14

[PATCH 6/7] usb: bdc: Halt controller on suspend

2020-07-17 Thread Al Cooper
e BDC driver that halts the controller before S2 entry thus preventing unwanted access to the BDC register space during this transition. Signed-off-by: Danesh Petigara Signed-off-by: Al Cooper Signed-off-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_core.c | 9 +++-- 1 file chang

[PATCH 4/7] usb: bdc: Adb shows offline after resuming from S2

2020-07-17 Thread Al Cooper
. Signed-off-by: Al Cooper --- drivers/usb/gadget/udc/bdc/bdc_core.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c index be833d9e9db2..47bcc9f6afbd 100644 --- a/drivers/usb/gadget/udc

[PATCH 2/7] usb: bdc: Add compatible string for new style USB DT nodes

2020-07-17 Thread Al Cooper
Add compatible string for some newer boards that only have this as there match sting. Signed-off-by: Al Cooper --- drivers/usb/gadget/udc/bdc/bdc_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c index

[PATCH 7/7] usb: bdc: Use devm_clk_get_optional()

2020-07-17 Thread Al Cooper
From: Florian Fainelli The BDC clock is optional and we may get an -EPROBE_DEFER error code which would not be propagated correctly, fix this by using devm_clk_get_optional(). Signed-off-by: Florian Fainelli --- drivers/usb/gadget/udc/bdc/bdc_core.c | 8 +++- 1 file changed, 3 insertions(+

[PATCH 0/7] usb: bdc: Updates and fixes to the USB BDC driver

2020-07-17 Thread Al Cooper
Updates and fixes to the Broadcom USB BDC driver. Al Cooper (4): dt-bindings: usb: bdc: Update compatible strings usb: bdc: Add compatible string for new style USB DT nodes usb: bdc: Adb shows offline after resuming from S2 usb: bdc: driver runs out of buffer descriptors on large ADB

[PATCH v10 5/5] usb: host: Add ability to build new Broadcom STB USB drivers

2020-05-12 Thread Al Cooper
Add the build system changes needed to get the Broadcom STB XHCI, EHCI and OHCI functionality working. The OHCI support does not require anything unique to Broadcom so the standard ohci-platform driver is being used. Also update MAINTAINERS. Signed-off-by: Al Cooper Reviewed-by: Florian Fainelli

[PATCH v10 4/5] usb: ehci: Add new EHCI driver for Broadcom STB SoC's

2020-05-12 Thread Al Cooper
tween the first two SOFs transmitted after resume. This only happens if the resume occurs near the end of a microframe. The fix is to intercept the ehci-hcd request to complete RESUME and align it to the start of the next microframe. Signed-off-by: Al Cooper Reviewed-by: Andy Shevchenko Review

[PATCH v10 0/5] Add XHCI, EHCI and OHCI support for Broadcom STB SoS's

2020-05-12 Thread Al Cooper
phandle and will fail if the driver is not available. Al Cooper (5): usb: xhci: Change the XHCI link order in the Makefile dt-bindings: Add Broadcom STB USB support usb: xhci: xhci-plat: Add support for Broadcom STB SoC's usb: ehci: Add new EHCI driver for Broadcom STB SoC's usb: h

[PATCH v10 1/5] usb: xhci: Change the XHCI link order in the Makefile

2020-05-12 Thread Al Cooper
HCI drivers and any installed 3.0 device will be seen as a 2.0 device. Moving the XHCI linking above the EHCI and OHCI linking fixes the issue. Signed-off-by: Al Cooper Reviewed-by: Florian Fainelli Tested-by: Yoshihiro Shimoda --- drivers/usb/host/Makefile | 16 ++-- 1 file changed,

[PATCH v10 3/5] usb: xhci: xhci-plat: Add support for Broadcom STB SoC's

2020-05-12 Thread Al Cooper
Add support for Broadcom STB SoC's to the xhci platform driver Signed-off-by: Al Cooper Acked-by: Mathias Nyman Reviewed-by: Florian Fainelli --- drivers/usb/host/xhci-plat.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host

[PATCH v10 2/5] dt-bindings: Add Broadcom STB USB support

2020-05-12 Thread Al Cooper
Add DT bindings for Broadcom STB USB EHCI and XHCI drivers. NOTE: The OHCI driver is not included because it uses the generic platform driver. Signed-off-by: Al Cooper Reviewed-by: Rob Herring Reviewed-by: Florian Fainelli --- .../bindings/usb/brcm,bcm7445-ehci.yaml | 59

[PATCH v9 5/5] usb: host: Add ability to build new Broadcom STB USB drivers

2020-05-11 Thread Al Cooper
Add the build system changes needed to get the Broadcom STB XHCI, EHCI and OHCI functionality working. The OHCI support does not require anything unique to Broadcom so the standard ohci-platform driver is being used. Also update MAINTAINERS. Signed-off-by: Al Cooper Reviewed-by: Florian Fainelli

[PATCH v9 4/5] usb: ehci: Add new EHCI driver for Broadcom STB SoC's

2020-05-11 Thread Al Cooper
tween the first two SOFs transmitted after resume. This only happens if the resume occurs near the end of a microframe. The fix is to intercept the ehci-hcd request to complete RESUME and align it to the start of the next microframe. Signed-off-by: Al Cooper Reviewed-by: Andy Shevchenko Review

[PATCH v9 3/5] usb: xhci: xhci-plat: Add support for Broadcom STB SoC's

2020-05-11 Thread Al Cooper
Add support for Broadcom STB SoC's to the xhci platform driver Signed-off-by: Al Cooper Acked-by: Mathias Nyman Reviewed-by: Florian Fainelli --- drivers/usb/host/xhci-plat.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host

[PATCH v9 0/5] Add XHCI, EHCI and OHCI support for Broadcom STB SoS's

2020-05-11 Thread Al Cooper
oah-Hartman. This adds support for the XHCI, EHCI and OHCI host controllers found in Broadcom STB SoC's. These drivers depend on getting access to the new Broadcom STB USB PHY driver through a device-tree phandle and will fail if the driver is not available. Al Cooper (5): usb: xhci: Chang

[PATCH v9 1/5] usb: xhci: Change the XHCI link order in the Makefile

2020-05-11 Thread Al Cooper
HCI drivers and any installed 3.0 device will be seen as a 2.0 device. Moving the XHCI linking above the EHCI and OHCI linking fixes the issue. Signed-off-by: Al Cooper Reviewed-by: Florian Fainelli Tested-by: Yoshihiro Shimoda --- drivers/usb/host/Makefile | 16 ++-- 1 file changed,

[PATCH v9 2/5] dt-bindings: Add Broadcom STB USB support

2020-05-11 Thread Al Cooper
Add DT bindings for Broadcom STB USB EHCI and XHCI drivers. NOTE: The OHCI driver is not included because it uses the generic platform driver. Signed-off-by: Al Cooper Reviewed-by: Rob Herring Reviewed-by: Florian Fainelli --- .../bindings/usb/brcm,bcm7445-ehci.yaml | 59

[PATCH v8 1/5] usb: xhci: Change the XHCI link order in the Makefile

2020-05-08 Thread Al Cooper
HCI drivers and any installed 3.0 device will be seen as a 2.0 device. Moving the XHCI linking above the EHCI and OHCI linking fixes the issue. Signed-off-by: Al Cooper --- drivers/usb/host/Makefile | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/usb/h

[PATCH v8 0/5] Add XHCI, EHCI and OHCI support for Broadcom STB SoS's

2020-05-08 Thread Al Cooper
ge in ehci_brcm_init as suggested by Greg Kroah-Hartman. This adds support for the XHCI, EHCI and OHCI host controllers found in Broadcom STB SoC's. These drivers depend on getting access to the new Broadcom STB USB PHY driver through a device-tree phandle and will fail if the driver is

[PATCH v8 2/5] dt-bindings: Add Broadcom STB USB support

2020-05-08 Thread Al Cooper
Add DT bindings for Broadcom STB USB EHCI and XHCI drivers. NOTE: The OHCI driver is not included because it uses the generic platform driver. Signed-off-by: Al Cooper Reviewed-by: Rob Herring --- .../bindings/usb/brcm,bcm7445-ehci.yaml | 59 +++ .../devicetree

[PATCH v8 3/5] usb: xhci: xhci-plat: Add support for Broadcom STB SoC's

2020-05-08 Thread Al Cooper
Add support for Broadcom STB SoC's to the xhci platform driver Signed-off-by: Al Cooper Acked-by: Mathias Nyman --- drivers/usb/host/xhci-plat.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 1d4f6f8

[PATCH v8 5/5] usb: host: Add ability to build new Broadcom STB USB drivers

2020-05-08 Thread Al Cooper
Add the build system changes needed to get the Broadcom STB XHCI, EHCI and OHCI functionality working. The OHCI support does not require anything unique to Broadcom so the standard ohci-platform driver is being used. Also update MAINTAINERS. Signed-off-by: Al Cooper --- MAINTAINERS

[PATCH v8 4/5] usb: ehci: Add new EHCI driver for Broadcom STB SoC's

2020-05-08 Thread Al Cooper
n the first two SOFs transmitted after resume. This only happens if the resume occurs near the end of a microframe. The fix is to intercept the echi-hcd request to complete RESUME and align it to the start of the next microframe. Signed-off-by: Al Cooper Reviewed-by: Andy Shevchenko --- driver

[PATCH v7 0/5] Add XHCI, EHCI and OHCI support for Broadcom STB SoS's

2020-05-07 Thread Al Cooper
controllers found in Broadcom STB SoC's. These drivers depend on getting access to the new Broadcom STB USB PHY driver through a device-tree phandle and will fail if the driver is not available. Al Cooper (5): usb: xhci: Change the XHCI link order in the Makefile dt-bindings: Add Broadcom STB USB

[PATCH v7 2/5] dt-bindings: Add Broadcom STB USB support

2020-05-07 Thread Al Cooper
Add DT bindings for Broadcom STB USB EHCI and XHCI drivers. NOTE: The OHCI driver is not included because it uses the generic platform driver. Signed-off-by: Al Cooper Reviewed-by: Rob Herring --- .../bindings/usb/brcm,bcm7445-ehci.yaml | 59 +++ .../devicetree

[PATCH v7 4/5] usb: ehci: Add new EHCI driver for Broadcom STB SoC's

2020-05-07 Thread Al Cooper
n the first two SOFs transmitted after resume. This only happens if the resume occurs near the end of a microframe. The fix is to intercept the echi-hcd request to complete RESUME and align it to the start of the next microframe. Signed-off-by: Al Cooper Reviewed-by: Andy Shevchenko --- driver

[PATCH v7 5/5] usb: host: Add ability to build new Broadcom STB USB drivers

2020-05-07 Thread Al Cooper
Add the build system changes needed to get the Broadcom STB XHCI, EHCI and OHCI functionality working. The OHCI support does not require anything unique to Broadcom so the standard ohci-platform driver is being used. Also update MAINTAINERS. Signed-off-by: Al Cooper --- MAINTAINERS

[PATCH v7 1/5] usb: xhci: Change the XHCI link order in the Makefile

2020-05-07 Thread Al Cooper
HCI drivers and any installed 3.0 device will be seen as a 2.0 device. Moving the XHCI linking above the EHCI and OHCI linking fixes the issue. Signed-off-by: Al Cooper --- drivers/usb/host/Makefile | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/usb/h

[PATCH v7 3/5] usb: xhci: xhci-plat: Add support for Broadcom STB SoC's

2020-05-07 Thread Al Cooper
Add support for Broadcom STB SoC's to the xhci platform driver Signed-off-by: Al Cooper Acked-by: Mathias Nyman --- drivers/usb/host/xhci-plat.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 1d4f6f8

[PATCH v6 4/4] usb: host: Add ability to build new Broadcom STB USB drivers

2020-04-30 Thread Al Cooper
, EHCI and OHCI controllers share a port which requires that the XHCI driver be initialized first. Also update MAINTAINERS. Signed-off-by: Al Cooper --- MAINTAINERS | 8 drivers/usb/host/Kconfig | 16 drivers/usb/host/Makefile | 16 ++-- 3 files

[PATCH v6 2/4] usb: xhci: xhci-plat: Add support for Broadcom STB SoC's

2020-04-30 Thread Al Cooper
Add support for Broadcom STB SoC's to the xhci platform driver Signed-off-by: Al Cooper Acked-by: Mathias Nyman --- drivers/usb/host/xhci-plat.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 1d4f6f8

[PATCH v6 0/4] Add XHCI, EHCI and OHCI support for Broadcom STB SoS's

2020-04-30 Thread Al Cooper
r pointed out by Rob Herring. - Removed pr_info message in ehci_brcm_init as suggested by Greg Kroah-Hartman. Al Cooper (4): dt-bindings: Add Broadcom STB USB support usb: xhci: xhci-plat: Add support for Broadcom STB SoC's usb: ehci: Add new EHCI driver for Broadcom STB SoC'

[PATCH v6 3/4] usb: ehci: Add new EHCI driver for Broadcom STB SoC's

2020-04-30 Thread Al Cooper
Add a new EHCI driver for Broadcom STB SoC's. A new EHCI driver was created instead of adding support to the existing ehci platform driver because of the code required to workaround bugs in the EHCI controller. Signed-off-by: Al Cooper Reviewed-by: Andy Shevchenko --- drivers/usb/host

[PATCH v6 1/4] dt-bindings: Add Broadcom STB USB support

2020-04-30 Thread Al Cooper
Add DT bindings for Broadcom STB USB EHCI and XHCI drivers. NOTE: The OHCI driver is not included because it uses the generic platform driver. Signed-off-by: Al Cooper Reviewed-by: Rob Herring --- .../bindings/usb/brcm,bcm7445-ehci.yaml | 59 +++ .../devicetree

[PATCH v5 1/4] dt-bindings: Add Broadcom STB USB support

2020-04-29 Thread Al Cooper
Add DT bindings for Broadcom STB USB EHCI and XHCI drivers. NOTE: The OHCI driver is not included because it uses the generic platform driver. Signed-off-by: Al Cooper --- .../bindings/usb/brcm,bcm7445-ehci.yaml | 60 +++ .../devicetree/bindings/usb/usb-xhci.txt

[PATCH v5 2/4] usb: xhci: xhci-plat: Add support for Broadcom STB SoC's

2020-04-29 Thread Al Cooper
Add support for Broadcom STB SoC's to the xhci platform driver Signed-off-by: Al Cooper Acked-by: Mathias Nyman --- drivers/usb/host/xhci-plat.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 1d4f6f8

[PATCH v5 4/4] usb: host: Add ability to build new Broadcom STB USB drivers

2020-04-29 Thread Al Cooper
, EHCI and OHCI controllers share a port which requires that the XHCI driver be initialized first. Also update MAINTAINERS. Signed-off-by: Al Cooper --- MAINTAINERS | 8 drivers/usb/host/Kconfig | 16 drivers/usb/host/Makefile | 16 ++-- 3 files

[PATCH v5 0/4] Add XHCI, EHCI and OHCI support for Broadcom STB SoS's

2020-04-29 Thread Al Cooper
ty to xhci-plat.c instead of creating new brcmstb files, as suggested by Mathias Nyman. v2 - Addressed Andy Shevchenko's review comments. - Fixed dt_binding_check error pointed out by Rob Herring. - Removed pr_info message in ehci_brcm_init as suggested by Greg Kroah-Hartman. Al

[PATCH v5 3/4] usb: ehci: Add new EHCI driver for Broadcom STB SoC's

2020-04-29 Thread Al Cooper
Add a new EHCI driver for Broadcom STB SoC's. A new EHCI driver was created instead of adding support to the existing ehci platform driver because of the code required to workaround bugs in the EHCI controller. Signed-off-by: Al Cooper Reviewed-by: Andy Shevchenko --- drivers/usb/host

  1   2   >