[PATCH 0/5] dwc2: improve gadget support

2020-12-16 Thread Michael Grzeschik
This series adds support for clk and reset controller defined by dts. It also enables the hardware force mode for the gadget in case the otg.mode="peripheral" is set. Michael Grzeschik (5): usb: dwc2: cleanup on error for deferred probing usb: dwc2: add clk dependency for probe via oftree

[PATCH 4/5] usb: dwc2: update the dr_mode on set_mode callback

2020-12-16 Thread Michael Grzeschik
The dwc2 dr_mode can be configured with otg.mode in otg mode. Currently the mode will not be set with the users decision. This patch fixes this by overwriting the mode with the one set by set_mode callback. Signed-off-by: Michael Grzeschik --- drivers/usb/dwc2/dwc2.c | 6 ++ 1 file changed,

[PATCH 1/5] usb: dwc2: cleanup on error for deferred probing

2020-12-16 Thread Michael Grzeschik
The driver needs to cleanup the resources if an error occurred. Otherwise, on deferred probing, it will fail to take the resources for a second time. Signed-off-by: Michael Grzeschik --- drivers/usb/dwc2/dwc2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 5/5] usb: dwc2: add support to force gadget mode

2020-12-16 Thread Michael Grzeschik
In case the driver is to be run in peripheral mode rather than otg, it needs to be forced in hardware to the selected mode. This patch adds support to set and clear that hardware override. The functions are mostly copied from linux. Signed-off-by: Michael Grzeschik --- drivers/usb/dwc2/gadget.c

[PATCH 3/5] usb: dwc2: add reset controller dependency for probe via oftree

2020-12-16 Thread Michael Grzeschik
The dwc2 controller is connected to one reset controller which needs to be triggered before it is able to operate. This patch adds the referenced reset controller in the devicetree to be used. Signed-off-by: Michael Grzeschik --- drivers/usb/dwc2/dwc2.c | 5 + 1 file changed, 5

[PATCH 2/5] usb: dwc2: add clk dependency for probe via oftree

2020-12-16 Thread Michael Grzeschik
The dwc2 controller at least needs one core clock which needs to be enabled before it is able to address the core registers. This patch adds the referenced clock in the devicetree to be used. Signed-off-by: Michael Grzeschik --- drivers/usb/dwc2/core.h | 1 + drivers/usb/dwc2/dwc2.c | 19

[PATCH 1/3] i.MX7: Add CCM definitions for UART3

2020-12-16 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- arch/arm/mach-imx/include/mach/imx7-ccm-regs.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-imx/include/mach/imx7-ccm-regs.h b/arch/arm/mach-imx/include/mach/imx7-ccm-regs.h index de6eb1bbd10d..5c60794ca74f 100644 ---

[PATCH 3/3] eeprom: at24: add support for 24cs64

2020-12-16 Thread Steffen Trumtrar
The 24cs64 is a 64-Kbit eeprom with 32 byte write pages. Signed-off-by: Steffen Trumtrar --- drivers/eeprom/at24.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/eeprom/at24.c b/drivers/eeprom/at24.c index 568aa02a4c8c..8c04c5684b61 100644 --- a/drivers/eeprom/at24.c +++

[PATCH 2/3] net: mdio:gpio: fix typos in dev_dbg

2020-12-16 Thread Steffen Trumtrar
Signed-off-by: Steffen Trumtrar --- drivers/net/phy/mdio-gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c index affa31ae2c9b..80d2394f4b11 100644 --- a/drivers/net/phy/mdio-gpio.c +++

Re: [PATCH 1/2] phy: stm32-usphyc: release resources to properly support EPROBE_DEFER

2020-12-16 Thread Sascha Hauer
On Mon, Dec 14, 2020 at 06:53:08PM +0100, Ahmad Fatoum wrote: > Hello Sascha, > > On 22.07.20 10:09, Ahmad Fatoum wrote: > > Driver failed to release resources on failed probe so far, leading to > > deferred probe failing with -EBUSY. Fix this. > > > > Signed-off-by: Ahmad Fatoum > > As we

Re: [PATCH v2 1/4] usb: dwc2: Add support for optional usb phy

2020-12-16 Thread Sascha Hauer
On Thu, Dec 10, 2020 at 11:31:01AM +0100, Jules Maselbas wrote: > Signed-off-by: Jules Maselbas > --- > drivers/usb/dwc2/core.h | 2 ++ > drivers/usb/dwc2/dwc2.c | 24 > drivers/usb/dwc2/dwc2.h | 1 + > 3 files changed, 27 insertions(+) Applied, thanks Sascha > >