[PATCH] mmc: Allow sdhci platform drivers to set quirks2 from platform data

2013-07-18 Thread Al Cooper
Signed-off-by: Al Cooper alcoop...@gmail.com --- drivers/mmc/host/sdhci-pltfm.c |4 +++- drivers/mmc/host/sdhci-pltfm.h |1 + 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 3145a78..e605509 100644

[PATCH] usb: Add Device Tree support to XHCI Platform driver

2013-07-18 Thread Al Cooper
Add Device Tree match table. Setup dma_mask and coherent_dma_mask if they're not already set. Signed-off-by: Al Cooper alcoop...@gmail.com --- drivers/usb/host/xhci-plat.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host/xhci-plat.c b

[PATCH V2] usb: Add Device Tree support to XHCI Platform driver

2013-07-22 Thread Al Cooper
Add Device Tree match table to xhci-plat.c. Add DT bindings document. Signed-off-by: Al Cooper alcoop...@gmail.com --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 14 ++ drivers/usb/host/xhci-plat.c |7 +++ 2 files changed, 21 insertions(+), 0

[PATCH V3] usb: Add Device Tree support to XHCI Platform driver

2013-07-23 Thread Al Cooper
Add Device Tree match table to xhci-plat.c. Add DT bindings document. Signed-off-by: Al Cooper alcoop...@gmail.com --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 14 ++ drivers/usb/host/xhci-plat.c | 9 + 2 files changed, 23 insertions

[PATCH V4] usb: Add Device Tree support to XHCI Platform driver

2013-07-23 Thread Al Cooper
Add Device Tree match table to xhci-plat.c. Add DT bindings document. Signed-off-by: Al Cooper alcoop...@gmail.com --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 14 ++ drivers/usb/host/xhci-plat.c | 10 ++ 2 files changed, 24 insertions

[PATCH V5] usb: Add Device Tree support to XHCI Platform driver

2013-07-25 Thread Al Cooper
Add Device Tree match table to xhci-plat.c. Add DT bindings document. Signed-off-by: Al Cooper alcoop...@gmail.com --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 14 ++ drivers/usb/host/xhci-plat.c | 10 ++ 2 files changed, 24 insertions

[PATCH] usb: xhci_suspend is not stopping the root hub timer for the shared HCD

2014-07-29 Thread Al Cooper
xhci_suspend() will stop the primary HCD's root hub timer, but leaves the shared HCD's timer running. This change adds stopping of the shared HCD timer. Signed-off-by: Al Cooper alcoop...@gmail.com --- drivers/usb/host/xhci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host

[PATCH V2] usb: xhci_suspend is not stopping the root hub timer for the shared HCD

2014-08-06 Thread Al Cooper
V2 - Restart polling (which will restart the timer) for the shared HCD in xhci_resume(). xhci_suspend() will stop the primary HCD's root hub timer, but leaves the shared HCD's timer running. This change adds stopping of the shared HCD timer. Signed-off-by: Al Cooper alcoop...@gmail.com

[PATCH] usb: xhci: Fix OOPS in xhci error handling code

2014-08-26 Thread Al Cooper
for normal restart and once from xhci_mem_init() if dma_alloc_coherent() fails, resulting in a free of xhci-lpm_command that has already been freed. The fix is to set xhci-lpm_command to NULL after freeing it. Signed-off-by: Al Cooper alcoop...@gmail.com --- drivers/usb/host/xhci-mem.c | 1 + 1 file

[PATCH V2 1/4] usb: gadget: udc: bdc: Fix a driver crash on disconnect

2015-07-22 Thread Al Cooper
was incorrect. Signed-off-by: Al Cooper alcoop...@gmail.com --- drivers/usb/gadget/udc/bdc/bdc.h | 16 drivers/usb/gadget/udc/bdc/bdc_dbg.c | 16 drivers/usb/gadget/udc/bdc/bdc_ep.c | 4 ++-- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git

[PATCH 4/4] MAINTAINERS: Add entry for BDC UDC driver

2015-07-16 Thread Al Cooper
Signed-off-by: Al Cooper alcoop...@gmail.com --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 246d9d8..88b443d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2301,6 +2301,12 @@ L: net...@vger.kernel.org S: Supported F

[PATCH 2/4] usb: gadget: udc: bdc: Add a Device Tree compatible string

2015-07-16 Thread Al Cooper
Allows Device Tree probing Signed-off-by: Al Cooper alcoop...@gmail.com --- drivers/usb/gadget/udc/bdc/bdc_core.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c index 5c8f4ef..0f963d5 100644 --- a/drivers

[PATCH 3/4] usb: gadget: bdc: Add device-tree binding document for BDC driver

2015-07-16 Thread Al Cooper
Signed-off-by: Al Cooper alcoop...@gmail.com --- Documentation/devicetree/bindings/usb/bdc-udc.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/bdc-udc.txt diff --git a/Documentation/devicetree/bindings/usb/bdc-udc.txt b

[PATCH 1/4] usb: gadget: udc: bdc: Fix a driver crash on disconnect

2015-07-16 Thread Al Cooper
ep_dequeue() in bdc_ep.c was capturing the hw dequeue pointer incorrectly by reading the wrong register for the upper 32 bits. The header file defining the registers was incorrect. Signed-off-by: Al Cooper alcoop...@gmail.com --- drivers/usb/gadget/udc/bdc/bdc.h | 16

[PATCH] usb: Add connected retry on resume for non SS devices

2015-12-02 Thread Al Cooper
.0 devices take greater than the current max of 100ms to show connected after VBUS is enabled. This is most commonly seen on hard drive based devices and USB3.0 devices plugged into a 2.0 only port. Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/core/hub.c | 6 +++--- 1

[PATCH V2] usb: Add connected retry on resume for non SS devices

2015-12-02 Thread Al Cooper
.0 devices take greater than the current max of 100ms to show connected after VBUS is enabled. This is most commonly seen on hard drive based devices and USB3.0 devices plugged into a 2.0 only port. Signed-off-by: Al Cooper <alcoop...@gmail.com> --- V2 - Change comment to reflect change to

[RESEND PATCH V2 2/2] usb: phy: phy-brcm-usb: Add Broadcom STB USB phy driver

2016-06-08 Thread Al Cooper
-by: Al Cooper <alcoop...@gmail.com> --- .../bindings/phy/brcm,brcmstb-usb-phy.txt | 39 + MAINTAINERS| 7 + drivers/phy/Kconfig| 10 + drivers/phy/Makefile | 2 + drivers/p

[RESEND PATCH V2 0/2] Add Broadcom USB PHY driver for Broadcom STB SoCs

2016-06-08 Thread Al Cooper
/common.c V2 - Change compatible name from "brcm,usb-phy" to "brcm,brcmstb-usb-phy" Al Cooper (2): soc: brcmstb: Add Product ID and Family ID helper functions usb: phy: phy-brcm-usb: Add Broadcom STB USB Phy driver .../bindings/phy/brcm,brcmstb-usb-phy.txt

[RESEND PATCH V2 1/2] soc: brcmstb: Add Product ID and Family ID helper functions

2016-06-08 Thread Al Cooper
Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/soc/brcmstb/common.c| 12 include/linux/soc/brcmstb/brcmstb.h | 10 ++ 2 files changed, 22 insertions(+) diff --git a/drivers/soc/brcmstb/common.c b/drivers/soc/brcmstb/common.c index 94e7335..454f4c2

[PATCH 2/2] usb: phy: phy-brcm-usb: Add Broadcom STB USB Phy driver

2016-05-27 Thread Al Cooper
-by: Al Cooper <alcoop...@gmail.com> --- .../devicetree/bindings/phy/brcm,usb-phy.txt | 39 + MAINTAINERS| 7 + drivers/phy/Kconfig| 10 + drivers/phy/Makefile | 2 + drivers/p

[PATCH 1/2] soc: brcmstb: Add Product ID and Family ID helper functions

2016-05-27 Thread Al Cooper
Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/soc/brcmstb/common.c| 12 include/linux/soc/brcmstb/brcmstb.h | 10 ++ 2 files changed, 22 insertions(+) diff --git a/drivers/soc/brcmstb/common.c b/drivers/soc/brcmstb/common.c index 94e7335..454f4c2

[PATCH 0/2] Add Broadcom USB PHY driver for Broadcom STB SoCs

2016-05-27 Thread Al Cooper
/common.c Al Cooper (2): soc: brcmstb: Add Product ID and Family ID helper functions usb: phy: phy-brcm-usb: Add Broadcom STB USB Phy driver .../devicetree/bindings/phy/brcm,usb-phy.txt | 39 + MAINTAINERS| 7 + drivers/phy/Kconfig

[PATCH V2 0/2] Add Broadcom USB PHY driver for Broadcom STB SoCs

2016-05-27 Thread Al Cooper
/common.c V2 - Change compatible name from "brcm,usb-phy" to "brcm,brcmstb-usb-phy" Al Cooper (2): soc: brcmstb: Add Product ID and Family ID helper functions usb: phy: phy-brcm-usb: Add Broadcom STB USB Phy driver .../bindings/phy/brcm,brcmstb-usb-phy.txt

[PATCH V2 1/2] soc: brcmstb: Add Product ID and Family ID helper functions

2016-05-27 Thread Al Cooper
Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/soc/brcmstb/common.c| 12 include/linux/soc/brcmstb/brcmstb.h | 10 ++ 2 files changed, 22 insertions(+) diff --git a/drivers/soc/brcmstb/common.c b/drivers/soc/brcmstb/common.c index 94e7335..454f4c2

[PATCH V2 2/2] usb: phy: phy-brcm-usb: Add Broadcom STB USB Phy driver

2016-05-27 Thread Al Cooper
-by: Al Cooper <alcoop...@gmail.com> --- .../bindings/phy/brcm,brcmstb-usb-phy.txt | 39 + MAINTAINERS| 7 + drivers/phy/Kconfig| 10 + drivers/phy/Makefile | 2 + drivers/p

[PATCH V3 2/2] usb: phy: phy-brcm-usb: Add Broadcom STB USB Phy driver

2016-08-30 Thread Al Cooper
-by: Al Cooper <alcoop...@gmail.com> --- .../bindings/phy/brcm,brcmstb-usb-phy.txt | 39 + MAINTAINERS| 7 + drivers/phy/Kconfig| 10 + drivers/phy/Makefile | 2 + drivers/p

[PATCH V3 1/2] soc: brcmstb: Add Product ID and Family ID helper functions

2016-08-30 Thread Al Cooper
Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/soc/bcm/brcmstb/common.c| 12 include/linux/soc/brcmstb/brcmstb.h | 10 ++ 2 files changed, 22 insertions(+) diff --git a/drivers/soc/bcm/brcmstb/common.c b/drivers/soc/bcm/brcmstb/common.c index 94e7335..4

[PATCH V3 0/2] Add Broadcom USB PHY driver for Broadcom STB SoCs

2016-08-30 Thread Al Cooper
Add Broadcom USB PHY driver for Broadcom STB SoCs. This driver in combination with the generic ohci, ehci and xhci platform drivers will enable USB1.1, USB2.0 and USB3.0 support. V3 - Rebase to latest V2 - Change compatible name from "brcm,usb-phy" to "brcm,brcmstb-usb-phy

[PATCH V2 3/9] usb: bdc: Add clock enable for new chips with a separate BDC clock

2017-07-19 Thread Al Cooper
Newer SoC's have added a BDC clock to the Device Tree, so get and enable it. Signed-off-by: Al Cooper <alcoop...@gmail.com> Signed-off-by: Florian Fainelli <f.faine...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc_core.c | 15 +++ 1 file changed, 15 insertions(+)

[PATCH V2 4/9] usb: bdc: Small code cleanup

2017-07-19 Thread Al Cooper
Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc_core.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c index dda7b43..c2bfae2 100644 --- a/d

[PATCH V2 7/9] usb: bdc: fix "xsf for ep not enabled" errror

2017-07-19 Thread Al Cooper
t;xsf for ep not enabled" error we get on first connection. This was found by the Android team. This was debugged and fixed by Sasi Kumar. Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc_udc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[PATCH V2 5/9] usb: bdc: hook a quick Device Tree compatible string

2017-07-19 Thread Al Cooper
From: Florian Fainelli <f.faine...@gmail.com> Allows Device Tree probing Signed-off-by: Florian Fainelli <f.faine...@gmail.com> Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc.h | 4 ++-- drivers/usb/gadget/udc/bdc/bdc_core.c | 8 +++

[PATCH V2 0/9] Bug fixes and improvements to Broadcom BDC driver

2017-07-19 Thread Al Cooper
"brcm,bdc-udc" seemed redundant - Add proper suspend/resume support with clock control - Split out code cleanup into separate patch Bug fixes and improvements to the Broadcom USB STB BDC driver. Al Cooper (8): usb: bdc: Fix misleading register names dt-bindings: usb: bdc: Add

[PATCH V2 2/9] dt-bindings: usb: bdc: Add Device Tree binding for Broadcom UDC driver

2017-07-19 Thread Al Cooper
Add Device Tree binding document for Broadcom USB Device Controller (BDC). Signed-off-by: Al Cooper <alcoop...@gmail.com> --- Documentation/devicetree/bindings/usb/brcm,bdc.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindin

[PATCH V2 1/9] usb: bdc: Fix misleading register names

2017-07-19 Thread Al Cooper
reflect this change and to avoid future coding mistakes. Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc.h | 16 drivers/usb/gadget/udc/bdc/bdc_dbg.c | 16 drivers/usb/gadget/udc/bdc/bdc_ep.c | 4 ++-- 3 files cha

[PATCH V2 8/9] usb: bdc: Enable in Kconfig for ARCH_BRCMSTB systems

2017-07-19 Thread Al Cooper
Many ARM based Broadcom STB SoC's have a USB BDC controller so enable this driver for these systems. Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc/bdc/Kconfig b/drivers/usb/

[PATCH V2 6/9] usb: bdc: Add support for suspend/resume

2017-07-19 Thread Al Cooper
pend and manages the clock during suspend/resume. Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc.h | 1 + drivers/usb/gadget/udc/bdc/bdc_core.c | 36 +++ 2 files changed, 37 insertions(+) diff --git a/drivers/usb/gadget/udc/b

[PATCH V2 9/9] usb: bdc: Add support for USB phy

2017-07-19 Thread Al Cooper
If a phy is specified in the device tree node, get it and use it. This was based on a patch by: "Srinath Mannam <srinath.man...@broadcom.com>" Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc.h | 3 ++ drivers/usb/gadget/u

[PATCH 1/8] usb: gadget: bdc: Fix misleading register names

2017-06-27 Thread Al Cooper
reflect this change and to avoid future coding mistakes. Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc.h | 16 drivers/usb/gadget/udc/bdc/bdc_dbg.c | 16 drivers/usb/gadget/udc/bdc/bdc_ep.c | 4 ++-- 3 files cha

[PATCH 0/8] Bugs fixes and improvements to Broadcom BDC driver

2017-06-27 Thread Al Cooper
Bug fixes and improvements to the USB Broadcom Device Controller (BDC) driver. Al Cooper (7): usb: gadget: bdc: Fix misleading register names usb: bdc: Add Device Tree binding document for Broadcom BDC driver usb: bdc: Add clock enable for new chips with a separate BDC clock usb: bdc

[PATCH 2/8] usb: bdc: Add Device Tree binding document for Broadcom BDC driver

2017-06-27 Thread Al Cooper
Add Device Tree binding document for Broadcom USB Device Controller (BDC). Signed-off-by: Al Cooper <alcoop...@gmail.com> --- .../devicetree/bindings/usb/brcm,bdc-udc.txt | 28 ++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindin

[PATCH 6/8] usb: bdc: Add support for suspend/resume

2017-06-27 Thread Al Cooper
pend and manages the clock during suspend/resume. Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc.h | 1 + drivers/usb/gadget/udc/bdc/bdc_core.c | 36 +++ 2 files changed, 37 insertions(+) diff --git a/drivers/usb/gadget/udc/b

[PATCH 5/8] usb: gadget: bdc: hook a quick Device Tree compatible string

2017-06-27 Thread Al Cooper
From: Florian Fainelli <f.faine...@gmail.com> Allows Device Tree probing Signed-off-by: Florian Fainelli <f.faine...@gmail.com> Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc_core.c | 8 1 file changed, 8 insertions(+) diff --git a/

[PATCH 4/8] usb: bdc: Small code cleanup

2017-06-27 Thread Al Cooper
Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc_core.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c index 3bd82d2..621328f 100644 --- a/d

[PATCH 8/8] usb: bdc: Enable in Kconfig for ARCH_BRCMSTB systems

2017-06-27 Thread Al Cooper
Many ARM based Broadcom STB SoC's have a USB BDC controller so enable this driver for these systems. Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc/bdc/Kconfig b/drivers/usb/

[PATCH 7/8] usb: bdc: fix "xsf for ep not enabled" errror

2017-06-27 Thread Al Cooper
t;xsf for ep not enabled" error we get on first connection. This was found by the Android team. This was debugged and fixed by Sasi Kumar. Signed-off-by: Al Cooper <alcoop...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc_udc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[PATCH 3/8] usb: bdc: Add clock enable for new chips with a separate BDC clock

2017-06-27 Thread Al Cooper
Newer SoC's have added a BDC clock to the Device Tree, so get and enable it. Signed-off-by: Al Cooper <alcoop...@gmail.com> Signed-off-by: Florian Fainelli <f.faine...@gmail.com> --- drivers/usb/gadget/udc/bdc/bdc_core.c | 15 +++ 1 file changed, 15 insertions(+)

Re: [PATCH 4/8] usb: bdc: Small code cleanup

2017-06-28 Thread Al Cooper
On Wed, Jun 28, 2017 at 4:47 AM, David Laight wrote: >> >> temp = bdc_readl(bdc->regs, BDC_BDCSC); >> if ((temp & BDC_P64) && >> !dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64))) { >> - dev_dbg(bdc->dev, "Using 64-bit