Re: [PATCH 00/14] ARM: move lpc32xx and dove to multiplatform

2019-08-15 Thread Arnd Bergmann
On Thu, Aug 15, 2019 at 8:32 PM Sylvain Lemieux wrote: > On 8/15/19 9:11 AM, Arnd Bergmann wrote: > > On Thu, Aug 1, 2019 at 9:33 AM Arnd Bergmann wrote: > > I applied patches 12 and 13 into the soc tree now. There are some > > other pending multiplatform conversions (io

Re: [PATCH 00/14] ARM: move lpc32xx and dove to multiplatform

2019-08-15 Thread Arnd Bergmann
On Thu, Aug 1, 2019 at 9:33 AM Arnd Bergmann wrote: > > On Thu, Aug 1, 2019 at 12:53 AM Russell King - ARM Linux admin > wrote: > > > > On Wed, Jul 31, 2019 at 09:56:42PM +0200, Arnd Bergmann wrote: > > > For dove, the patches are basically what I had proposed bac

[PATCH 15/16] usb: remove ehci-w90x900 driver

2019-08-09 Thread Arnd Bergmann
The ARM w90x900 platform is getting removed, so this driver is obsolete. Signed-off-by: Arnd Bergmann --- drivers/usb/host/Kconfig| 6 -- drivers/usb/host/Makefile | 1 - drivers/usb/host/ehci-w90x900.c | 130 3 files changed, 137 deletions

[PATCH v2 01/13] usb: ohci-nxp: enable compile-testing

2019-08-09 Thread Arnd Bergmann
and is not necessary, so leave that in place for now. Signed-off-by: Arnd Bergmann --- drivers/usb/host/Kconfig| 3 ++- drivers/usb/host/ohci-nxp.c | 25 ++--- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host

[PATCH v2 02/13] usb: udc: lpc32xx: allow compile-testing

2019-08-09 Thread Arnd Bergmann
The only thing that prevents building this driver on other platforms is the mach/hardware.h include, which is not actually used here at all, so remove the line and allow CONFIG_COMPILE_TEST. Acked-by: Greg Kroah-Hartman Acked-by: Sylvain Lemieux Signed-off-by: Arnd Bergmann --- drivers/usb

[PATCH v2 00/13] v2: ARM: move lpc32xx to multiplatform

2019-08-09 Thread Arnd Bergmann
. Arnd Arnd Bergmann (12): usb: ohci-nxp: enable compile-testing usb: udc: lpc32xx: allow compile-testing watchdog: pnx4008_wdt: allow compile-testing serial: lpc32xx_hs: allow compile-testing gpio: lpc32xx: allow building on non-lpc32xx targets net: lpc-enet: factor out iram

Re: [PATCH 05/14] gpio: lpc32xx: allow building on non-lpc32xx targets

2019-08-09 Thread Arnd Bergmann
On Tue, Aug 6, 2019 at 10:02 PM Sylvain Lemieux wrote: > > > > + gpio_reg_base = devm_platform_ioremap_resource(pdev, 0); > > + if (gpio_reg_base) > > + return -ENXIO; > > The probe function will always return an error. > Please replace the previous 2 lines with: > i

Re: [PATCH 05/14] gpio: lpc32xx: allow building on non-lpc32xx targets

2019-08-09 Thread Arnd Bergmann
On Mon, Aug 5, 2019 at 10:28 AM Bartosz Golaszewski wrote: > > pt., 2 sie 2019 o 13:20 Arnd Bergmann napisaƂ(a): > > > > On Fri, Aug 2, 2019 at 9:10 AM Bartosz Golaszewski > > wrote: > > > > -#include > > > > -#include > >

[PATCH 15/22] ARM: omap1: move mach/*.h into mach directory

2019-08-08 Thread Arnd Bergmann
- mach/serial.h is used by mach/compress.h The mach/memory.h is empty and gets removed in the process, avoiding the need for CONFIG_NEED_MACH_MEMORY_H. Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig | 1 - arch/arm/mach-omap1/ams-delta-fiq-handler.S | 3

[PATCH 10/22] usb: omap: avoid mach/*.h headers

2019-08-08 Thread Arnd Bergmann
The omap usb drivers still rely on mach/*.h headers that are explicitly or implicitly included, but all the required definitions are now in include/linux/soc/ti/, so use those instead and allow compile-testing on other architectures. Signed-off-by: Arnd Bergmann --- drivers/usb/gadget/udc

[PATCH 05/22] ARM: omap1: move mach/usb.h to include/linux/soc

2019-08-08 Thread Arnd Bergmann
-off-by: Arnd Bergmann --- arch/arm/mach-omap1/board-ams-delta.c | 2 +- arch/arm/mach-omap1/board-generic.c | 2 +- arch/arm/mach-omap1/board-h2.c| 2 +- arch/arm/mach-omap1/board-h3.c| 2 +- arch/arm/mach-omap1/board-htcherald.c | 2

[PATCH 04/22] ARM: omap1: move ohci phy power handling to board files

2019-08-08 Thread Arnd Bergmann
. Signed-off-by: Arnd Bergmann --- arch/arm/mach-omap1/board-innovator.c | 19 + arch/arm/mach-omap1/board-osk.c | 19 + drivers/usb/host/ohci-omap.c| 28 ++--- include/linux/platform_data/usb-omap1.h | 2 ++ 4 files changed, 42

[PATCH 03/22] ARM: omap1: move omap15xx local bus handling to usb.c

2019-08-08 Thread Arnd Bergmann
just there for configuring the memory translation, this too can get moved into usb.c Signed-off-by: Arnd Bergmann --- arch/arm/mach-omap1/include/mach/memory.h | 43 --- arch/arm/mach-omap1/include/mach/omap1510.h | 1 - arch/arm/mach-omap1/usb.c

Re: [PATCH 05/14] gpio: lpc32xx: allow building on non-lpc32xx targets

2019-08-02 Thread Arnd Bergmann
On Fri, Aug 2, 2019 at 9:10 AM Bartosz Golaszewski wrote: > > -#include > > -#include > > +#define _GPREG(x) (x) > > What purpose does this macro serve? > > > > > #define LPC32XX_GPIO_P3_INP_STATE _GPREG(0x000) > > #define LPC32XX_GPIO_P3_OUTP_SET

Re: [PATCH 00/14] ARM: move lpc32xx and dove to multiplatform

2019-08-01 Thread Arnd Bergmann
On Thu, Aug 1, 2019 at 12:53 AM Russell King - ARM Linux admin wrote: > > On Wed, Jul 31, 2019 at 09:56:42PM +0200, Arnd Bergmann wrote: > > For dove, the patches are basically what I had proposed back in > > 2015 when all other ARMv6/ARMv7 machines became part of a single &

Re: [PATCH 03/14] watchdog: pnx4008_wdt: allow compile-testing

2019-07-31 Thread Arnd Bergmann
On Wed, Jul 31, 2019 at 10:23 PM Guenter Roeck wrote: > > On Wed, Jul 31, 2019 at 09:56:45PM +0200, Arnd Bergmann wrote: > > The only thing that prevents building this driver on other > > platforms is the mach/hardware.h include, which is not actually > > used here at all

[PATCH 14/14] ARM: dove: multiplatform support

2019-07-31 Thread Arnd Bergmann
based platform code for the same hardware in mach-mvebu and remove mach-dove entirely. Acked-by: Andrew Lunn Cc: Russell King Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig | 16 - arch/arm/configs/dove_defconfig | 2 ++ arch/arm/mach-dove

[PATCH 13/14] ARM: orion/mvebu: unify debug-ll virtual addresses

2019-07-31 Thread Arnd Bergmann
.@free-electrons.com/ Signed-off-by: Arnd Bergmann --- I posted this in 2015, and Gregory said he would like to see some testing on it. I don't think anyone ever tested it, but we probably still want to have this. --- arch/arm/Kconfig.debug | 5 + arch/arm/mach-dove/dove.h

[PATCH 12/14] ARM: dove: clean up mach/*.h headers

2019-07-31 Thread Arnd Bergmann
. Signed-off-by: Arnd Bergmann Acked-by: Andrew Lunn --- .../{include/mach => }/bridge-regs.h | 4 +--- arch/arm/mach-dove/cm-a510.c | 3 +-- arch/arm/mach-dove/common.c | 4 ++-- arch/arm/mach-dove/dove-db-setup.c| 2 +- arch/arm/mach-d

[PATCH 11/14] ARM: lpc32xx: allow multiplatform build

2019-07-31 Thread Arnd Bergmann
All preparation work is done, so the platform can finally be moved into ARCH_MULTIPLATFORM. This requires a small change to the defconfig file to enable the platform. Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig | 17 +-- arch/arm/configs/lpc32xx_defconfig

[PATCH 10/14] ARM: lpc32xx: clean up header files

2019-07-31 Thread Arnd Bergmann
All device drivers have stopped relying on mach/*.h headers, so move the remaining headers into arch/arm/mach-lpc32xx/lpc32xx.h to prepare for multiplatform builds. The mach/entry-macro.S file has been unused for a long time now and can simply get removed. Signed-off-by: Arnd Bergmann --- arch

[PATCH 08/14] net: lpc-enet: allow compile testing

2019-07-31 Thread Arnd Bergmann
The lpc-enet driver can now be built on all platforms, so allow compile testing as well. Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/nxp/Kconfig | 2 +- drivers/net/ethernet/nxp/lpc_eth.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/nxp

[PATCH 09/14] serial: lpc32xx: allow compile testing

2019-07-31 Thread Arnd Bergmann
The lpc32xx_loopback_set() function in hte lpc32xx_hs driver is the one thing that relies on platform header files. Move that into the core platform code so we only need a variable declaration for it, and enable COMPILE_TEST building. Signed-off-by: Arnd Bergmann --- arch/arm/mach-lpc32xx

[PATCH 07/14] net: lpc-enet: move phy setup into platform code

2019-07-31 Thread Arnd Bergmann
Setting the phy mode requires touching a platform specific register, which prevents us from building the driver without its header files. Move it into a separate function in arch/arm/mach/lpc32xx to hide the core registers from the network driver. Signed-off-by: Arnd Bergmann --- arch/arm/mach

[PATCH 06/14] net: lpc-enet: factor out iram access

2019-07-31 Thread Arnd Bergmann
used driver, I want to keep the modifications to a minimum. Signed-off-by: Arnd Bergmann --- arch/arm/mach-lpc32xx/common.c | 9 ++-- arch/arm/mach-lpc32xx/common.h | 1 - arch/arm/mach-lpc32xx/include/mach/board.h | 15 -- drivers/net/ethernet/nxp

[PATCH 05/14] gpio: lpc32xx: allow building on non-lpc32xx targets

2019-07-31 Thread Arnd Bergmann
The driver uses hardwire MMIO addresses instead of the data that is passed in device tree. Change it over to only hardcode the register offset values and allow compile-testing. Signed-off-by: Arnd Bergmann --- drivers/gpio/Kconfig| 8 + drivers/gpio/Makefile | 2 +- drivers

[PATCH 04/14] serial: lpc32xx_hs: allow compile-testing

2019-07-31 Thread Arnd Bergmann
The only thing that prevents building this driver on other platforms is the mach/hardware.h include, which is not actually used here at all, so remove the line and allow CONFIG_COMPILE_TEST. Signed-off-by: Arnd Bergmann --- drivers/tty/serial/Kconfig | 3 ++- drivers/tty/serial

[PATCH 02/14] usb: udc: lpc32xx: allow compile-testing

2019-07-31 Thread Arnd Bergmann
The only thing that prevents building this driver on other platforms is the mach/hardware.h include, which is not actually used here at all, so remove the line and allow CONFIG_COMPILE_TEST. Signed-off-by: Arnd Bergmann --- drivers/usb/gadget/udc/Kconfig | 3 ++- drivers/usb/gadget/udc

[PATCH 03/14] watchdog: pnx4008_wdt: allow compile-testing

2019-07-31 Thread Arnd Bergmann
The only thing that prevents building this driver on other platforms is the mach/hardware.h include, which is not actually used here at all, so remove the line and allow CONFIG_COMPILE_TEST. Signed-off-by: Arnd Bergmann --- drivers/watchdog/Kconfig | 2 +- drivers/watchdog/pnx4008_wdt.c

[PATCH 01/14] usb: ohci-nxp: enable compile-testing

2019-07-31 Thread Arnd Bergmann
and is not necessary, so leave that in place for now. Signed-off-by: Arnd Bergmann --- drivers/usb/host/Kconfig| 3 ++- drivers/usb/host/ohci-nxp.c | 25 ++--- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host

[PATCH 00/14] ARM: move lpc32xx and dove to multiplatform

2019-07-31 Thread Arnd Bergmann
just remove mach-dove rather than applying my patches. I also created patches to remove the w90x900 and ks8695 platforms that seem to have lost their last users a few years ago. I will post them separately, but plan to apply them in the same branch for linux-5.4 if there are no objections. Arnd

[PATCH v5 13/29] compat_ioctl: move more drivers to compat_ptr_ioctl

2019-07-30 Thread Arnd Bergmann
e not interpreted as integer values. Acked-by: Jason Gunthorpe Acked-by: Daniel Vetter Acked-by: Mauro Carvalho Chehab Acked-by: Greg Kroah-Hartman Acked-by: David Sterba Acked-by: Darren Hart (VMware) Acked-by: Jonathan Cameron Acked-by: Bjorn Andersson Signed-off-by: Arnd Bergmann --- dr

[PATCH v5 14/29] compat_ioctl: use correct compat_ptr() translation in drivers

2019-07-30 Thread Arnd Bergmann
Acked-by: Felipe Balbi Signed-off-by: Arnd Bergmann --- drivers/misc/cxl/flash.c| 8 +--- drivers/misc/genwqe/card_dev.c | 23 +-- drivers/scsi/megaraid/megaraid_mm.c | 28 +--- drivers/usb/gadget/function/f_fs.c | 12 +-

[PATCH v5 12/29] compat_ioctl: move drivers to compat_ptr_ioctl

2019-07-30 Thread Arnd Bergmann
-by: Jason Gunthorpe Reviewed-by: Jiri Kosina Reviewed-by: Stefan Hajnoczi Signed-off-by: Arnd Bergmann --- drivers/char/ppdev.c | 12 +- drivers/char/tpm/tpm_vtpm_proxy.c | 12 +- drivers/firewire/core-cdev.c | 12 +- drivers/hid/usbhid/hiddev.c

Re: [PATCH] usb: dwc3: Allow building USB_DWC3_QCOM without EXTCON

2019-04-24 Thread Arnd Bergmann
On Fri, Apr 19, 2019 at 11:59 AM Marc Gonzalez wrote: > > Keep EXTCON support optional, since some platforms do not need it. > > Fixes: 3def4031b3e3 ("usb: dwc3: add EXTCON dependency for qcom") > Signed-off-by: Marc Gonzalez The patch looks good, but please keep this in sync with the TI driver

[PATCH] usb: renesas_usbhs: mark PM functions as __maybe_unused

2018-12-11 Thread Arnd Bergmann
discard them. Signed-off-by: Arnd Bergmann --- drivers/usb/renesas_usbhs/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 02c1d2bf4f86..2ff7991f4517 100644 --- a/drivers/usb/renesas_usb

Re: [PATCH V3 6/6] usb: host: Add ability to build new Broadcom STB USB drivers

2018-11-06 Thread Arnd Bergmann
On 11/6/18, Alan Cooper wrote: > On Tue, Nov 6, 2018 at 6:09 AM Arnd Bergmann wrote: >> >> On 11/5/18, Al Cooper wrote: >> >> > + >> > +config USB_BRCM >> > + tristate "Broadcom STB USB support" >> > + depends on A

Re: [PATCH V3 6/6] usb: host: Add ability to build new Broadcom STB USB drivers

2018-11-06 Thread Arnd Bergmann
On 11/5/18, Al Cooper wrote: > + > +config USB_BRCM > + tristate "Broadcom STB USB support" > + depends on ARCH_BRCMSTB > + select USB_OHCI_HCD_PLATFORM if USB_OHCI_HCD > + select USB_EHCI_BRCM if USB_EHCI_HCD > + select USB_XHCI_BRCM if USB_XHCI_HCD > + select USB_XHCI_PL

Re: [PATCH V2 4/6] usb: ohci-platform: Add support for Broadcom STB SoC's

2018-10-30 Thread Arnd Bergmann
On 10/30/18, Alan Cooper wrote: >> On 10/24/18 3:11 AM, Arnd Bergmann wrote: >> >> On Wed, Oct 17, 2018 at 11:30 PM Al Cooper wrote: >> >> Add support for Broadcom STB SoC's to the ohci platform driver. >> >> Signed-off-by: Al Cooper &

Re: [PATCH V2 5/6] usb: ehci: Add new EHCI driver for Broadcom STB SoC's

2018-10-24 Thread Arnd Bergmann
On Wed, Oct 17, 2018 at 11:30 PM Al Cooper wrote: > + > +static int ehci_brcm_probe(struct platform_device *pdev) > +{ > + struct usb_hcd *hcd; > + struct resource *res_mem; > + struct brcm_priv *priv; > + int irq; > + int err; > + > + if (usb_disabled()) > +

Re: [PATCH V2 4/6] usb: ohci-platform: Add support for Broadcom STB SoC's

2018-10-24 Thread Arnd Bergmann
On Wed, Oct 17, 2018 at 11:30 PM Al Cooper wrote: > > Add support for Broadcom STB SoC's to the ohci platform driver. > > Signed-off-by: Al Cooper > --- > drivers/usb/host/ohci-platform.c | 35 +-- > include/linux/usb/ohci_pdriver.h | 1 + > 2 files changed, 30 i

Re: [PATCH 2/5] usb: host: Add OHCI driver for Broadcom STB SoCs

2018-09-27 Thread Arnd Bergmann
On Thu, Sep 27, 2018 at 12:20 AM Al Cooper wrote: > > This driver enables USB OHCI on Broadcom ARM and MIPS STB SoCs. > The drivers depend on a matching "brcm,brcmstb-usb-phy" > Broadcom STB USB Phy driver. > > The standard platform driver can't be used because of differences > in PHY and Clock ha

Re: [PATCH v2 05/17] compat_ioctl: move more drivers to generic_compat_ioctl_ptrarg

2018-09-24 Thread Arnd Bergmann
On Mon, Sep 24, 2018 at 10:35 PM Jason Gunthorpe wrote: > On Mon, Sep 24, 2018 at 10:18:52PM +0200, Arnd Bergmann wrote: > > On Tue, Sep 18, 2018 at 7:59 PM Jason Gunthorpe wrote: > > > On Tue, Sep 18, 2018 at 10:51:08AM -0700, Darren Hart wrote: > > > > On Fri, Se

Re: [PATCH v2 05/17] compat_ioctl: move more drivers to generic_compat_ioctl_ptrarg

2018-09-24 Thread Arnd Bergmann
On Tue, Sep 18, 2018 at 7:59 PM Jason Gunthorpe wrote: > > On Tue, Sep 18, 2018 at 10:51:08AM -0700, Darren Hart wrote: > > On Fri, Sep 14, 2018 at 09:57:48PM +0100, Al Viro wrote: > > > On Fri, Sep 14, 2018 at 01:35:06PM -0700, Darren Hart wrote: > > > > > > > Acked-by: Darren Hart (VMware) > >

[PATCH] usb: dwc3: add EXTCON dependency for qcom

2018-09-13 Thread Arnd Bergmann
undefined reference to `devm_extcon_register_notifier' dwc3-qcom.c:(.text+0x1b9c): undefined reference to `extcon_get_state' Do the same thing as OMAP and add an explicit dependency on EXTCON. Fixes: a4333c3a6ba9 ("usb: dwc3: Add Qualcomm DWC3 glue driver") Signed-off-by: Arnd B

Re: [PATCH v2 02/17] compat_ioctl: move drivers to generic_compat_ioctl_ptrarg

2018-09-12 Thread Arnd Bergmann
On Wed, Sep 12, 2018 at 5:33 PM Jason Gunthorpe wrote: > > On Wed, Sep 12, 2018 at 05:01:03PM +0200, Arnd Bergmann wrote: > > Each of these drivers has a copy of the same trivial helper function to > > convert the pointer argument and then call the native ioctl handler. >

[PATCH v2 05/17] compat_ioctl: move more drivers to generic_compat_ioctl_ptrarg

2018-09-12 Thread Arnd Bergmann
e not interpreted as integer values. Signed-off-by: Arnd Bergmann --- drivers/android/binder.c| 2 +- drivers/crypto/qat/qat_common/adf_ctl_drv.c | 2 +- drivers/dma-buf/dma-buf.c | 4 +--- drivers/dma-buf/sw_sync.c | 2 +- drivers/dm

[PATCH v2 03/17] compat_ioctl: use correct compat_ptr() translation in drivers

2018-09-12 Thread Arnd Bergmann
thing, but using the new generic_compat_ioctl_ptrarg helper makes it more correct in theory, and simplifies the code. Signed-off-by: Arnd Bergmann --- drivers/misc/cxl/flash.c| 8 +--- drivers/misc/genwqe/card_dev.c | 23 +-- drivers/scsi/megaraid/megaraid

[PATCH v2 02/17] compat_ioctl: move drivers to generic_compat_ioctl_ptrarg

2018-09-12 Thread Arnd Bergmann
Each of these drivers has a copy of the same trivial helper function to convert the pointer argument and then call the native ioctl handler. We now have a generic implementation of that, so use it. Signed-off-by: Arnd Bergmann --- drivers/char/ppdev.c | 12 +- drivers/char

Re: [PATCH] usb: hide usb_of_get_companion_dev for CONFIG_USB=n

2018-08-20 Thread Arnd Bergmann
On Mon, Aug 20, 2018 at 5:22 AM Yoshihiro Shimoda wrote: > > From: Arnd Bergmann, Sent: Tuesday, August 14, 2018 11:27 PM > > > > On Tue, Aug 14, 2018 at 3:58 PM Alan Stern > > wrote: > > > On Mon, 13 Aug 2018, Arnd Bergmann wrote: > > > > diff --gi

[PATCH] usb: musb: remove an unused variable

2018-05-28 Thread Arnd Bergmann
852f2d3e6d ("usb: musb: remove references to default_a of struct usb_otg") Signed-off-by: Arnd Bergmann --- drivers/usb/musb/da8xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c index 0e5929e81d26..1c023c0091c4 100644 --- a/drivers

[PATCH] usb/gadget: aspeed-vhub: add USB_LIBCOMPOSITE dependency

2018-05-25 Thread Arnd Bergmann
Without that option, we run into a link failure: drivers/usb/gadget/udc/aspeed-vhub/hub.o: In function `ast_vhub_std_hub_request': hub.c:(.text+0x5b0): undefined reference to `usb_gadget_get_string' Fixes: 7ecca2a4080c ("usb/gadget: Add driver for Aspeed SoC virtual hub")

[PATCH] usb: dwc3: qcom: mark PM functions as __maybe_unused

2018-05-25 Thread Arnd Bergmann
: a4333c3a6ba9 ("usb: dwc3: Add Qualcomm DWC3 glue driver") Signed-off-by: Arnd Bergmann --- drivers/usb/dwc3/dwc3-qcom.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c index 8abb6f31389d..d7a

Re: [RFC 00/10] ARM: Remove support for Exynos5440

2018-04-24 Thread Arnd Bergmann
On Tue, Apr 24, 2018 at 10:56 PM, Krzysztof Kozlowski wrote: > On Tue, Apr 24, 2018 at 10:50:58PM +0200, Arnd Bergmann wrote: >> On Tue, Apr 24, 2018 at 10:32 PM, Krzysztof Kozlowski >> wrote: > The only dependency is through Kconfig symbol (SOC_EXYNOS5440). After >

Re: [RFC 00/10] ARM: Remove support for Exynos5440

2018-04-24 Thread Arnd Bergmann
On Tue, Apr 24, 2018 at 10:32 PM, Krzysztof Kozlowski wrote: > Hi, > > > Overview > > Let's continue the removal of old platforms. We already get rid of Exynos4212. > Now it's time for Exynos5440. > > The Exynos5440 (quad-core A15 with GMAC, PCIe, SATA) was targeting > server platforms bu

[PATCH] usb: select USB_COMMON for usb role switch config

2018-04-04 Thread Arnd Bergmann
lect USB_COMMON', since that is how we solved the same problem for other helpers like USB_LED_TRIG or PHY drivers. Fixes: d54f063cdbe4 ("extcon: axp288: Set USB role where necessary") Signed-off-by: Arnd Bergmann --- drivers/usb/Kconfig | 1 + 1 file changed, 1 insertion(+)

Re: Multiple generic PHY instances for DWC3 USB IP

2018-04-04 Thread Arnd Bergmann
On Wed, Apr 4, 2018 at 10:00 AM, Felipe Balbi wrote: > > Hi, > > Masahiro Yamada writes: Each DWC3 instance is connected with multiple HS PHYs and multiple SS PHYs, depending on the number of ports. >>> >>> in that case, you shouldn't need dwc3 at all. A Host-only dwc3 is xHCI >>>

Re: [PATCH 38/47] usb: musb: remove blackfin port

2018-03-15 Thread Arnd Bergmann
On Wed, Mar 14, 2018 at 6:12 PM, Bin Liu wrote: > On Wed, Mar 14, 2018 at 04:35:51PM +0100, Arnd Bergmann wrote: >> diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig >> index 5506a9c03c1f..490990e8b015 100644 >> --- a/drivers/usb/musb/Kconfig >> +++

Re: [PATCH 00/16] remove eight obsolete architectures

2018-03-15 Thread Arnd Bergmann
On Thu, Mar 15, 2018 at 10:59 AM, Hannes Reinecke wrote: > On 03/15/2018 10:42 AM, David Howells wrote: >> Do we have anything left that still implements NOMMU? >> > RISC-V ? > (evil grin :-) Is anyone producing a chip that includes enough of the Privileged ISA spec to have things like system cal

Re: [PATCH 00/16] remove eight obsolete architectures

2018-03-15 Thread Arnd Bergmann
On Thu, Mar 15, 2018 at 10:42 AM, David Howells wrote: > Do we have anything left that still implements NOMMU? Yes, plenty. I was wondering the same thing, but it seems that the architectures we remove are almost completely representative of what we support overall, except that they are all not l

[PATCH 38/47] usb: musb: remove blackfin port

2018-03-14 Thread Arnd Bergmann
The blackfin architecture is getting removed, so we can clean up all the special cases in the musb driver. Signed-off-by: Arnd Bergmann --- drivers/usb/musb/Kconfig| 10 +- drivers/usb/musb/Makefile | 1 - drivers/usb/musb/blackfin.c | 623

[PATCH 37/47] usb: host: remove tilegx platform glue

2018-03-14 Thread Arnd Bergmann
The tile architecture is getting removed, so the ehci and ohci platform glue drivers are no longer needed. In case of ohci, this is the last one to define a PLATFORM_DRIVER macro, so we can remove even more. Signed-off-by: Arnd Bergmann --- drivers/usb/host/ehci-hcd.c| 5 - drivers/usb

[PATCH 00/47] arch-removal: device drivers

2018-03-14 Thread Arnd Bergmann
iles. For anything else, I'd keep the removal patches in my asm-generic tree and will send a pull request for 4.17 along with the actual arch removal. Arnd Arnd Bergmann edac: remove tile driver net: tile: remove ethernet drivers net: adi: remove blackfin ethernet drivers net: 83

[PATCH 11/16] treewide: simplify Kconfig dependencies for removed archs

2018-03-14 Thread Arnd Bergmann
A lot of Kconfig symbols have architecture specific dependencies. In those cases that depend on architectures we have already removed, they can be omitted. Signed-off-by: Arnd Bergmann --- block/bounce.c | 2 +- drivers/ide/Kconfig | 2 +- drivers/ide

[PATCH 00/16] remove eight obsolete architectures

2018-03-14 Thread Arnd Bergmann
e not used the custom CPU architectures for several years at this point. Arnd Arnd Bergmann (14): arch: remove frv port arch: remove m32r port arch: remove score port arch: remove blackfin port arch: remove tile port procfs: remove CONFIG_HARDWALL dependency mm: remove blackfin

Re: [RFC PATCH] drivers: use 'depends on MFD_SYSCON' instead of 'select MFD_SYSCON'

2018-02-27 Thread Arnd Bergmann
On Tue, Feb 27, 2018 at 11:22 AM, Masahiro Yamada wrote: > 2018-02-27 18:03 GMT+09:00 Arnd Bergmann : >> On Tue, Feb 27, 2018 at 1:46 AM, Masahiro Yamada >> wrote: >>> But, we need to decide what the right solution is. >> >> I think for consistency, we shoul

Re: [RFC PATCH] drivers: use 'depends on MFD_SYSCON' instead of 'select MFD_SYSCON'

2018-02-27 Thread Arnd Bergmann
On Tue, Feb 27, 2018 at 1:46 AM, Masahiro Yamada wrote: > 2018-02-26 21:43 GMT+09:00 Arnd Bergmann : >> On Mon, Feb 26, 2018 at 12:53 PM, Masahiro Yamada >> wrote: >>> 2018-02-26 17:43 GMT+09:00 Arnd Bergmann : >>>> On Sat, Feb 24, 2018 at 3:50 PM, M

Re: [RFC PATCH] drivers: use 'depends on MFD_SYSCON' instead of 'select MFD_SYSCON'

2018-02-26 Thread Arnd Bergmann
On Mon, Feb 26, 2018 at 12:53 PM, Masahiro Yamada wrote: > 2018-02-26 17:43 GMT+09:00 Arnd Bergmann : >> On Sat, Feb 24, 2018 at 3:50 PM, Masahiro Yamada >> wrote: >>> As Documentation/kbuild/kconfig-language.txt notes, 'select' should be >>> used wit

Re: [RFC PATCH] drivers: use 'depends on MFD_SYSCON' instead of 'select MFD_SYSCON'

2018-02-26 Thread Arnd Bergmann
On Sat, Feb 24, 2018 at 3:50 PM, Masahiro Yamada wrote: > As Documentation/kbuild/kconfig-language.txt notes, 'select' should be > used with care - it forces a lower limit of another symbol, ignoring > the dependency. > > MFD_SYSCON depends on HAS_IOMEM, but several drivers with COMPILE_TEST > sel

[4.4-stable 09/22] ARM: tegra: select USB_ULPI from EHCI rather than platform

2018-02-20 Thread Arnd Bergmann
s the 'select' statements from mach-tegra and drivers/soc/tegra and adds them with the device driver that actually needs them. Signed-off-by: Arnd Bergmann Signed-off-by: Thierry Reding [arnd: rebased to 4.4-stable] Signed-off-by: Arnd Bergmann --- arch/arm/mach-tegra/Kconfig | 2

[4.4-stable 07/22] usb: phy: msm add regulator dependency

2018-02-20 Thread Arnd Bergmann
exists, so this is only needed for stable kernels. Signed-off-by: Arnd Bergmann --- drivers/usb/phy/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig index 22e8ecb6bfbd..7a72bef35acf 100644 --- a/drivers/usb/phy/Kconfig +++ b/drivers/usb/p

[4.9-stable 8/9] usb: phy: msm add regulator dependency

2018-02-19 Thread Arnd Bergmann
exists, so this is only needed for stable kernels. Signed-off-by: Arnd Bergmann --- drivers/usb/phy/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/phy/Kconfig b/drivers/usb/phy/Kconfig index b9c409a18faa..125cea1c3c8d 100644 --- a/drivers/usb/phy/Kconfig +++ b/drivers/usb/p

Re: [PATCH/RFC 0/6] Allow compile-testing NO_DMA

2018-02-06 Thread Arnd Bergmann
On Tue, Feb 6, 2018 at 2:05 PM, Robin Murphy wrote: > > It looks like we have only one real arch (score) without IOMEM, and two > (s390 and tile) where it is possible to configure out, so it does seem like > a reasonable feature to assume. Maybe we could have something like > asm-generic/no-io.h t

Re: [PATCH/RFC 0/6] Allow compile-testing NO_DMA

2018-02-06 Thread Arnd Bergmann
On Tue, Feb 6, 2018 at 11:14 AM, Geert Uytterhoeven wrote: > Hi all, > > If NO_DMA=y, get_dma_ops() returns a reference to the non-existing > symbol bad_dma_ops, thus causing a link failure if it is ever used. > > The intention of this is twofold: > 1. To catch users of the DMA API on sy

Re: [PATCH] usb: dwc2: Fix endless deferral probe

2018-01-12 Thread Arnd Bergmann
On Fri, Jan 12, 2018 at 6:51 PM, Mauro Carvalho Chehab wrote: > Em Fri, 12 Jan 2018 10:18:59 +0100 > Arnd Bergmann escreveu: > >> On Fri, Jan 12, 2018 at 9:06 AM, Stefan Wahren >> wrote: >> > Am 12.01.2018 um 00:32 schrieb Arnd Bergmann: >> >> On W

Re: [PATCH] usb: dwc2: Fix endless deferral probe

2018-01-12 Thread Arnd Bergmann
On Fri, Jan 12, 2018 at 9:06 AM, Stefan Wahren wrote: > Am 12.01.2018 um 00:32 schrieb Arnd Bergmann: >> On Wed, Jan 10, 2018 at 1:15 PM, Stefan Wahren >> diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c >> index b4964b067aec..93b55fb71d54 100644 >> -

Re: [PATCH] usb: dwc2: Fix endless deferral probe

2018-01-11 Thread Arnd Bergmann
On Wed, Jan 10, 2018 at 1:15 PM, Stefan Wahren wrote: > Hi Arnd, > > > Am 09.01.2018 um 22:33 schrieb Arnd Bergmann: >> >> On Tue, Jan 9, 2018 at 8:28 PM, Stefan Wahren >> wrote: >>> >>> The dwc2 USB driver tries to find a generic PHY first and th

Re: [PATCH] phy: work around 'phys' references to usb-phy devices

2018-01-11 Thread Arnd Bergmann
On Thu, Jan 11, 2018 at 2:30 PM, Kishon Vijay Abraham I wrote: > On Thursday 11 January 2018 02:27 AM, Arnd Bergmann wrote: >> On Mon, Jan 8, 2018 at 7:32 PM, Kishon Vijay Abraham I wrote: >>> On Monday 08 January 2018 06:31 PM, Arnd Bergmann wrote: >>>> Stefan W

Re: [PATCH] phy: work around 'phys' references to usb-phy devices

2018-01-10 Thread Arnd Bergmann
On Mon, Jan 8, 2018 at 7:32 PM, Kishon Vijay Abraham I wrote: > Hi Arnd, > > On Monday 08 January 2018 06:31 PM, Arnd Bergmann wrote: >> Stefan Wahren reports a problem with a warning fix that was merged >> for v4.15: we had lots of device nodes with a 'phys' proper

[PATCH] usb: mtu3: fix ssusb_wakeup_set dummy

2018-01-10 Thread Arnd Bergmann
f function 'ssusb_wakeup_set'; did you mean 'ssusb_wakeup_disable'? [-Werror=implicit-function-declaration] This adapts the dummy helpers the same way that the extern declarations were. Fixes: f0ede2c6282b ("usb: mtu3: supports remote wakeup for mt2712 with two SSUSB

Re: [PATCH] usb: dwc2: Fix endless deferral probe

2018-01-09 Thread Arnd Bergmann
On Tue, Jan 9, 2018 at 8:28 PM, Stefan Wahren wrote: > The dwc2 USB driver tries to find a generic PHY first and then look > for an old style USB PHY. In case of a valid generic PHY node without > a PHY driver, the PHY layer will return -EPROBE_DEFER forever. So dwc2 > will never tries for an USB

[PATCH] phy: work around 'phys' references to usb-phy devices

2018-01-08 Thread Arnd Bergmann
from usb-phy to generic-phy. Fixes: 014d6da6cb25 ("ARM: dts: bcm283x: Fix DTC warnings about missing phy-cells") Link: https://marc.info/?l=linux-usb&m=151518314314753&w=2 Cc: sta...@vger.kernel.org Cc: Stefan Wahren Cc: Felipe Balbi Signed-off-by: Arnd Bergmann --- This obvi

Re: [PATCH] Revert "ARM: dts: bcm283x: Fix DTC warnings about missing phy-cells"

2018-01-08 Thread Arnd Bergmann
On Mon, Jan 8, 2018 at 10:36 AM, Stefan Wahren wrote: > Am 08.01.2018 um 10:27 schrieb Arnd Bergmann: >> >> On Mon, Jan 8, 2018 at 10:15 AM, Stefan Wahren >> wrote: >>> >>> Hi Eric, >>> Am 07.01.2018 um 23:08 schrieb Eric Anholt: >>>>

Re: [GIT PULL] Qualcomm ARM64 Defconfig updates for 4.16

2018-01-05 Thread Arnd Bergmann
On Mon, Jan 1, 2018 at 7:53 AM, Andy Gross wrote: > The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: > > Linux 4.15-rc1 (2017-11-26 16:01:47 -0800) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git > tags

Re: [PATCH] usb: xhci: fix incorrect memset()

2017-12-11 Thread Arnd Bergmann
On Mon, Dec 11, 2017 at 6:01 PM, Greg Kroah-Hartman wrote: > On Mon, Dec 11, 2017 at 02:59:13PM +0200, Mathias Nyman wrote: >> On 11.12.2017 13:27, Arnd Bergmann wrote: >> > gcc-8 warnings about the new driver using a memset with a bogus length: >> > >> >

Re: [PATCH] Revert "usb: gadget: allow to enable legacy drivers without USB_ETH"

2017-12-11 Thread Arnd Bergmann
be bound to an USB device > controller at a time. > > Hence revert commit 7a9618a22aad. > > Signed-off-by: Bart Van Assche > Cc: Romain Izard > Cc: Arnd Bergmann > Cc: Stephen Rothwell > Cc: Masahiro Yamada > Cc: Hannes Reinecke > Cc: Nicholas Bellinger >

Re: [PATCH 1/2] usb: gadget: restore tristate-choice for legacy gadgets

2017-12-11 Thread Arnd Bergmann
On Mon, Dec 11, 2017 at 5:09 PM, Bart Van Assche wrote: > On Mon, 2017-12-11 at 12:30 +0100, Arnd Bergmann wrote: >> One patch that was meant as a cleanup apparently did more than it intended, >> allowing all combinations of legacy gadget drivers to be built into the >> k

[PATCH 2/2] usb: gadget: webcam: fix V4L2 Kconfig dependency

2017-12-11 Thread Arnd Bergmann
even in thousands of randconfig builds. Signed-off-by: Arnd Bergmann --- drivers/usb/gadget/legacy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/legacy/Kconfig b/drivers/usb/gadget/legacy/Kconfig index 2d80a9d1d5d9..fbd974965399 100644 --- a/drive

[PATCH 1/2] usb: gadget: restore tristate-choice for legacy gadgets

2017-12-11 Thread Arnd Bergmann
: gadget: allow to enable legacy drivers without USB_ETH") Signed-off-by: Arnd Bergmann --- drivers/usb/gadget/Kconfig| 28 drivers/usb/gadget/legacy/Kconfig | 28 2 files changed, 28 insertions(+), 28 deletions(-)

[PATCH] usb: xhci: fix incorrect memset()

2017-12-11 Thread Arnd Bergmann
[-Werror=memset-elt-size] It looks like the author meant to use sizeof() rather than ARRAY_SIZE() here, so use that. Fixes: dfba2174dc42 ("usb: xhci: Add DbC support in xHCI driver") Signed-off-by: Arnd Bergmann --- drivers/usb/host/xhci-dbgcap.c | 2 +- 1 file changed, 1 insertion(+

[PATCH 1/2] usbip: fix off-by-one frame number calculation

2017-11-07 Thread Arnd Bergmann
o I'm changing the % modulo operator into a cheaper bitmask that the other drivers use, to make it wrap after 0x7ff rather than before it. Signed-off-by: Arnd Bergmann --- drivers/usb/usbip/vudc_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/usbip/vu

[PATCH 2/2] usbip: use monotonic timestamps

2017-11-07 Thread Arnd Bergmann
k to. Signed-off-by: Arnd Bergmann --- drivers/usb/usbip/vudc.h | 2 +- drivers/usb/usbip/vudc_dev.c | 7 +++ drivers/usb/usbip/vudc_sysfs.c | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/usb/usbip/vudc.h b/drivers/usb/usbip/vudc.h index 44fb24193acd.

[PATCH] usb: xhci: tegra: use time64_t for printing timestamp

2017-11-02 Thread Arnd Bergmann
cated interfaces and works until 2106, when the firmware-defined data structure overflows. Signed-off-by: Arnd Bergmann --- drivers/usb/host/xhci-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c

[PATCH] usb: mtu3: fix dma_addr_t printk output again

2017-11-02 Thread Arnd Bergmann
e_rx_gpd': drivers/usb/mtu3/mtu3_qmu.c:300:25: error: format '%p' expects argument of type 'void *', but argument 7 has type 'dma_addr_t {aka unsigned int}' [-Werror=format=] This fixes the printk argument accordingly. Fixes: 1a46dfea0841 ("usb: m

Re: [PATCH v7 usb-next 4/4] dt-bindings: usb: xhci: include the roothub and a device in the example

2017-10-30 Thread Arnd Bergmann
On Sat, Oct 28, 2017 at 3:33 PM, Martin Blumenstingl wrote: > On Fri, Oct 27, 2017 at 9:55 PM, Alan Stern wrote: >> On Fri, 27 Oct 2017, Martin Blumenstingl wrote: >>> >> diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.txt >>> >> b/Documentation/devicetree/bindings/usb/usb-xhci.txt >

[PATCH] usb: xhci: tegra: use time64_t for printing timestamp

2017-10-20 Thread Arnd Bergmann
cated interfaces and works until 2106, when the firmware-defined data structure overflows. Signed-off-by: Arnd Bergmann --- drivers/usb/host/xhci-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c

Re: [RFC usb-next v5 1/3] dt-bindings: usb: add the documentation for USB root-hub

2017-10-19 Thread Arnd Bergmann
On Thu, Oct 19, 2017 at 11:25 PM, Martin Blumenstingl wrote: >> Does dwc2 also use separate nodes for the roothub? From your >> description it sounds like it would not be affected by your patch. > currently it doesn't use separate notes for the roothub - however, > with this patch it could (althou

Re: [RFC usb-next v5 1/3] dt-bindings: usb: add the documentation for USB root-hub

2017-10-18 Thread Arnd Bergmann
On Tue, Oct 17, 2017 at 11:19 PM, Martin Blumenstingl wrote: >> Ok, very good! >> >>> is there anything else you want me to test? >> >> What about the same dtb when run on a kernel without your >> patch series? Does that work as well, or are your patches >> required to make it work? > > this is th

Re: [RFC usb-next v5 1/3] dt-bindings: usb: add the documentation for USB root-hub

2017-10-17 Thread Arnd Bergmann
On Tue, Oct 17, 2017 at 11:00 PM, Martin Blumenstingl wrote: > On Fri, Oct 13, 2017 at 9:37 AM, Arnd Bergmann wrote: >> On Thu, Oct 12, 2017 at 10:56 PM, Martin Blumenstingl >> wrote: >> >> It's possible that this has never worked on XHCI because of the lack >

Re: [RFC usb-next v5 1/3] dt-bindings: usb: add the documentation for USB root-hub

2017-10-13 Thread Arnd Bergmann
On Thu, Oct 12, 2017 at 10:56 PM, Martin Blumenstingl wrote: > Hi Arnd, > > thank you for reviewing this patch! > > On Mon, Oct 9, 2017 at 12:24 PM, Arnd Bergmann wrote: >> On Sun, Oct 8, 2017 at 11:17 PM, Martin Blumenstingl >> wrote: >>> A USB root-hub ma

  1   2   3   4   5   6   7   >