Re: [RFC PATCH v2 0/2] usb: typec: Add driver for Microchip sama7g5 tcpc

2021-03-31 Thread Cristian.Birsan
On 3/31/21 9:21 AM, Greg KH wrote: > > On Tue, Mar 30, 2021 at 11:54:40PM +0300, cristian.bir...@microchip.com wrote: >> From: Cristian Birsan >> >> This patch set adds initial driver support for Microchip USB Type-C Port >> Controller (TCPC) embedded in sama7g5 SoC. >> >> The controller does n

[RFC PATCH v2 2/2] usb: typec: sama7g5_tcpc: add driver for Microchip sama7g5 tcpc

2021-03-30 Thread cristian.birsan
From: Cristian Birsan This patch adds initial driver support for the new Microchip USB Type-C Port Controller (TCPC) embedded in sama7g5 SoC. Signed-off-by: Cristian Birsan --- drivers/usb/typec/tcpm/Kconfig| 8 + drivers/usb/typec/tcpm/Makefile | 1 + drivers/usb/typec/tcpm/

[RFC PATCH v2 1/2] dt-bindings: usb: Add DT bindings for Microchip sama7g5 tcpc

2021-03-30 Thread cristian.birsan
From: Cristian Birsan This patch adds DT bindings for the new Microchip USB Type-C Port Controller (TCPC) embedded in sama7g5 SoC. Signed-off-by: Cristian Birsan --- .../bindings/usb/microchip,sama7g5-tcpc.yaml | 90 +++ 1 file changed, 90 insertions(+) create mode 100644 Do

[RFC PATCH v2 0/2] usb: typec: Add driver for Microchip sama7g5 tcpc

2021-03-30 Thread cristian.birsan
From: Cristian Birsan This patch set adds initial driver support for Microchip USB Type-C Port Controller (TCPC) embedded in sama7g5 SoC. The controller does not implement power delivery and the driver uses dummy functions to register the port with TCPM. The current silicon version is not able t

[RFC PATCH 2/2] usb: typec: sama7g5_tcpc: add driver for Microchip sama7g5 tcpc

2021-03-29 Thread cristian.birsan
From: Cristian Birsan This patch adds initial driver support for the new Microchip USB Type-C Port Controller (TCPC) embedded in sama7g5 SoC. Signed-off-by: Cristian Birsan --- drivers/usb/typec/tcpm/Kconfig| 8 + drivers/usb/typec/tcpm/Makefile | 1 + drivers/usb/typec/tcpm/

[RFC PATCH 1/2] dt-bindings: usb: Add DT bindings for Microchip sama7g5 tcpc

2021-03-29 Thread cristian.birsan
From: Cristian Birsan This patch adds DT bindings for the new Microchip USB Type-C Port Controller (TCPC) embedded in sama7g5 SoC. Signed-off-by: Cristian Birsan --- .../bindings/usb/microchip,sama7g5-tcpc.yaml | 80 +++ 1 file changed, 80 insertions(+) create mode 100644 Do

[RFC PATCH 0/2] usb: typec: Add driver for Microchip sama7g5 tcpc

2021-03-29 Thread cristian.birsan
From: Cristian Birsan This patch set adds initial driver support for Microchip USB Type-C Port Controller (TCPC) embedded in sama7g5 SoC. The controller does not implement power delivery and the driver uses dummy functions to register the port with TCPM. The current silicon version is not able t

Re: Using TCPM for ports without Power Delivery support

2021-02-17 Thread Cristian.Birsan
Hi Heikki, On 2/16/21 11:12 AM, Heikki Krogerus wrote: > > Hi Cristian, > > On Mon, Feb 15, 2021 at 05:25:29PM +, cristian.bir...@microchip.com wrote: >> My name is Cristian and I'm working on bringing up a USB Type-C Port >> Controller >> (TCPC) without Power Delivery support which is inte

Using TCPM for ports without Power Delivery support

2021-02-15 Thread Cristian.Birsan
Hi, My name is Cristian and I'm working on bringing up a USB Type-C Port Controller (TCPC) without Power Delivery support which is intended to work with USB 2.0 Host/Device. The IP is integrated into one of Microchip's SoCs, it is memory-mapped and it was designed based on USB Type-C Cable and Co

[PATCH 1/3] ARM: dts: sam9x60: add pincontrol for USB Host

2020-11-18 Thread cristian.birsan
From: Cristian Birsan The pincontrol node is needed for USB Host since Linux v5.7-rc1. Without it the driver probes but VBus is not powered because of wrong pincontrol configuration. Fixes: 1e5f532c2737 ("ARM: dts: at91: sam9x60: add device tree for soc and board") Signed-off-by: Cristian Birsa

[PATCH 0/3] ARM: dts: at91: add pincontrol node for USB Host

2020-11-18 Thread cristian.birsan
From: Cristian Birsan The pincontrol node is needed for USB Host since Linux v5.7-rc1. Without it the driver probes but VBus is not powered because of wrong pincontrol configuration. The patch was tested on SAM9x60EK, SAMA5D4-EK and SAMA5D3-EK. Cristian Birsan (3): ARM: dts: sam9x60: add pinc

[PATCH 3/3] ARM: dts: at91: sama5d3_xplained: add pincontrol for USB Host

2020-11-18 Thread cristian.birsan
From: Cristian Birsan The pincontrol node is needed for USB Host since Linux v5.7-rc1. Without it the driver probes but VBus is not powered because of wrong pincontrol configuration. Fixes: b7c2b61570798 ("ARM: at91: add Atmel's SAMA5D3 Xplained board") Signed-off-by: Cristian Birsan --- arch/

[PATCH 2/3] ARM: dts: at91: sama5d4_xplained: add pincontrol for USB Host

2020-11-18 Thread cristian.birsan
From: Cristian Birsan The pincontrol node is needed for USB Host since Linux v5.7-rc1. Without it the driver probes but VBus is not powered because of wrong pincontrol configuration. Fixes: 38153a017896f ("ARM: at91/dt: sama5d4: add dts for sama5d4 xplained board") Signed-off-by: Cristian Birsa

[PATCH v4 4/6] usb: gadget: udc: atmel: use 1 bank endpoints for control transfers

2020-07-23 Thread cristian.birsan
From: Cristian Birsan Use 1 bank endpoints for control transfers Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 10fa72ec8b79.

[PATCH v4 3/6] usb: gadget: udc: atmel: simplify endpoint allocation

2020-07-23 Thread cristian.birsan
From: Cristian Birsan Simplify the endpoint allocation and cleanup the code. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 21 - drivers/usb/gadget/udc/atmel_usba_udc.h | 1 - 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/dr

[PATCH v4 5/6] usb: gadget: udc: atmel: update endpoint allocation for sam9x60

2020-07-23 Thread cristian.birsan
From: Cristian Birsan The DPRAM memory from the USB High Speed Device Port (UDPHS) hardware block was increased. This patch updates the endpoint allocation for sam9x60 to take advantage of this larger memory. At the same time the constraint to allocate the endpoints in order was lifted. To handle

[PATCH v4 1/6] usb: gadget: udc: atmel: use of_find_matching_node_and_match

2020-07-23 Thread cristian.birsan
From: Claudiu Beznea Instead of trying to match every possible compatible use of_find_matching_node_and_match() and pass the compatible array. Signed-off-by: Claudiu Beznea Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 26 ++--- 1 file change

[PATCH v4 6/6] ARM: dts: at91: sam9x60ek: enable usb device

2020-07-23 Thread cristian.birsan
From: Cristian Birsan Enable usb device for sam9x60ek board. Signed-off-by: Cristian Birsan --- arch/arm/boot/dts/at91-sam9x60ek.dts | 13 + arch/arm/boot/dts/sam9x60.dtsi | 14 ++ 2 files changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dt

[PATCH v4 2/6] dt-bindings: usb: atmel: Update DT bindings documentation for sam9x60

2020-07-23 Thread cristian.birsan
From: Cristian Birsan Add sam9x60 binding. Signed-off-by: Cristian Birsan Acked-by: Rob Herring --- Documentation/devicetree/bindings/usb/atmel-usb.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Documentation/devicetree/bindings/

[PATCH v4 0/6] usb: gadget: udc: atmel: add usb device support for SAM9x60 SoC

2020-07-23 Thread cristian.birsan
From: Cristian Birsan This patch set adds usb device support for SAM9x60 SoC. The DPRAM memory for the USB High Speed Device Port (UDPHS) hardware block was increased and the allocation method is changed. This patch series simplifies the endpoint allocation scheme to acomodate this SoC and the ol

Re: [PATCH v3 1/6] usb: gadget: udc: atmel: use of_find_matching_node_and_match

2020-07-23 Thread Cristian.Birsan
On 7/23/20 7:28 PM, Claudiu Beznea - M18063 wrote: > > > On 22.07.2020 17:43, claudiu.bez...@microchip.com wrote: >> >> >> On 22.07.2020 16:44, cristian.bir...@microchip.com wrote: >>> From: Claudiu Beznea >>> >>> Instead of trying to match every possible compatible use >>> of_find_matching_no

[PATCH v3 4/6] usb: gadget: udc: atmel: use 1 bank endpoints for control transfers

2020-07-22 Thread cristian.birsan
From: Cristian Birsan Use 1 bank endpoints for control transfers Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index f767708598a4.

[PATCH v3 2/6] dt-bindings: usb: atmel: Update DT bindings documentation for sam9x60

2020-07-22 Thread cristian.birsan
From: Cristian Birsan Add sam9x60 binding. Signed-off-by: Cristian Birsan Acked-by: Rob Herring --- Documentation/devicetree/bindings/usb/atmel-usb.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Documentation/devicetree/bindings/

[PATCH v3 6/6] ARM: dts: at91: sam9x60ek: enable usb device

2020-07-22 Thread cristian.birsan
From: Cristian Birsan Enable usb device for sam9x60ek board. Signed-off-by: Cristian Birsan --- arch/arm/boot/dts/at91-sam9x60ek.dts | 13 + arch/arm/boot/dts/sam9x60.dtsi | 14 ++ 2 files changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dt

[PATCH v3 5/6] usb: gadget: udc: atmel: update endpoint allocation for sam9x60

2020-07-22 Thread cristian.birsan
From: Cristian Birsan The DPRAM memory from the USB High Speed Device Port (UDPHS) hardware block was increased. This patch updates the endpoint allocation for sam9x60 to take advantage of this larger memory. At the same time the constraint to allocate the endpoints in order was lifted. To handle

[PATCH v3 0/6] usb: gadget: udc: atmel: add usb device support for SAM9x60 SoC

2020-07-22 Thread cristian.birsan
From: Cristian Birsan This patch set adds usb device support for SAM9x60 SoC. The DPRAM memory for the USB High Speed Device Port (UDPHS) hardware block was increased and the allocation method is changed. This patch series simplifies the endpoint allocation scheme to acomodate this SoC and the ol

[PATCH v3 1/6] usb: gadget: udc: atmel: use of_find_matching_node_and_match

2020-07-22 Thread cristian.birsan
From: Claudiu Beznea Instead of trying to match every possible compatible use of_find_matching_node_and_match() and pass the compatible array. Signed-off-by: Claudiu Beznea --- drivers/usb/gadget/udc/atmel_usba_udc.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions

[PATCH v3 3/6] usb: gadget: udc: atmel: simplify endpoint allocation

2020-07-22 Thread cristian.birsan
From: Cristian Birsan Simplify the endpoint allocation and cleanup the code. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 21 - drivers/usb/gadget/udc/atmel_usba_udc.h | 1 - 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/dr

Re: [PATCH RESEND 3/3] usb: gadget: udc: atmel: implement .pullup callback

2020-07-16 Thread Cristian.Birsan
On 7/16/20 12:58 AM, Alexandre Belloni wrote: > > On 08/07/2020 20:04:10+0200, Michał Mirosław wrote: >> Implement udc->pullup callback, so that udc_connect/disconnect work. >> This is needed for composite gadget, as it assumes udc_disconnect() >> actually works and calls its ->disconnect callba

Re: [PATCH RESEND 2/3] usb: gadget: udc: atmel: fix uninitialized read in debug printk

2020-07-16 Thread Cristian.Birsan
On 7/16/20 12:45 AM, Alexandre Belloni wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On 08/07/2020 20:04:09+0200, Michał Mirosław wrote: >> Fixed commit moved the assignment of 'req', but did not update a >> reference in the DBG() call

Re: [PATCH RESEND 1/3] usb: gadget: udc: atmel: remove outdated comment in usba_ep_disable()

2020-07-16 Thread Cristian.Birsan
On 7/16/20 12:44 AM, Alexandre Belloni wrote: > > On 08/07/2020 20:04:09+0200, Michał Mirosław wrote: >> Fixed commit removed the offending behaviour from the driver, but missed >> the comment and associated test. Remove them now. >> >> Fixes: 38e58986e6fc ("usb: gadget: udc: atmel: don't disabl

Re: [PATCH v2 0/7] usb: gadget: udc: atmel: add usb device support for SAM9x60 SoC

2020-05-15 Thread Cristian.Birsan
On 5/15/20 6:02 PM, Alexandre Belloni wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Hi, > > On 15/05/2020 14:16:24+0300, cristian.bir...@microchip.com wrote: >> From: Cristian Birsan >> >> This patch set adds usb device support for S

[PATCH v2 6/7] usb: gadget: udc: atmel: update endpoint allocation for sam9x60

2020-05-15 Thread cristian.birsan
From: Cristian Birsan The DPRAM memory from the USB High Speed Device Port (UDPHS) hardware block was increased. This patch updates the endpoint allocation for sam9x60 to take advantage of this larger memory. At the same time the constraint to allocate the endpoints in order was lifted. To handle

[PATCH v2 0/7] usb: gadget: udc: atmel: add usb device support for SAM9x60 SoC

2020-05-15 Thread cristian.birsan
From: Cristian Birsan This patch set adds usb device support for SAM9x60 SoC. The DPRAM memory for the USB High Speed Device Port (UDPHS) hardware block was increased and the allocation method is changed. This patch series simplifies the endpoint allocation scheme to acomodate this SoC and the ol

[PATCH v2 7/7] ARM: dts: at91: sam9x60ek: enable usb device

2020-05-15 Thread cristian.birsan
From: Cristian Birsan Enable usb device for sam9x60ek board. Signed-off-by: Cristian Birsan --- arch/arm/boot/dts/at91-sam9x60ek.dts | 13 + arch/arm/boot/dts/sam9x60.dtsi | 74 2 files changed, 87 insertions(+) diff --git a/arch/arm/boot/dts/at91-sam9x6

[PATCH v2 2/7] dt-bindings: usb: atmel: Update DT bindings documentation for sam9x60

2020-05-15 Thread cristian.birsan
From: Cristian Birsan Add sam9x60 binding. Signed-off-by: Cristian Birsan --- Documentation/devicetree/bindings/usb/atmel-usb.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/atmel-usb.txt b/Documentation/devicetree/bindings/usb/atmel-usb.txt index

[PATCH v2 4/7] usb: gadget: udc: atmel: use 1 bank endpoints for control transfers

2020-05-15 Thread cristian.birsan
From: Cristian Birsan Use 1 bank endpoints for control transfers Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index beb7246935a8.

[PATCH v2 3/7] usb: gadget: udc: atmel: simplify endpoint allocation

2020-05-15 Thread cristian.birsan
From: Cristian Birsan Simplify the endpoint allocation and cleanup the code. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 21 - drivers/usb/gadget/udc/atmel_usba_udc.h | 1 - 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/dr

[PATCH v2 1/7] usb: gadget: udc: atmel: use of_find_matching_node_and_match

2020-05-15 Thread cristian.birsan
From: Claudiu Beznea Instead of trying to match every possible compatible use of_find_matching_node_and_match() and pass the compatible array. Signed-off-by: Claudiu Beznea --- drivers/usb/gadget/udc/atmel_usba_udc.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions

[PATCH v2 5/7] usb: gadget: udc: atmel: rename errata into caps

2020-05-15 Thread cristian.birsan
From: Cristian Birsan Rename errata structure into capabilities (caps). It will be used to add capabilities for new SoCs. Get the pointer to PMC only for the SoCs that need it to perform toggle_bias or pulse_bias. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 20

[PATCH] usb: gadget: udc: atmel: Fix interrupt storm in FIFO mode.

2019-10-04 Thread cristian.birsan
From: Cristian Birsan Fix interrupt storm generated by endpoints when working in FIFO mode. The TX_COMPLETE interrupt is used only by control endpoints processing. Do not enable it for other types of endpoints. Fixes: 914a3f3b3754 ("USB: add atmel_usba_udc driver") Signed-off-by: Cristian Birsan

[PATCH v4 2/2] usb: gadget: udc: atmel: Update Kconfig help for fifo_mode = 0

2017-04-07 Thread cristian.birsan
From: Cristian Birsan Update Kconfig help for fifo_mode = 0 to explain the behavior better. Signed-off-by: Cristian Birsan Acked-by: Nicolas Ferre --- drivers/usb/gadget/udc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/Kconfig b/drive

[PATCH v4 1/2] usb: gadget: udc: atmel: Use dev_err() to display EP configuration error

2017-04-07 Thread cristian.birsan
From: Cristian Birsan Use dev_err() to display EP configuration error to avoid silent failure. Signed-off-by: Cristian Birsan Acked-by: Nicolas Ferre --- drivers/usb/gadget/udc/atmel_usba_udc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/

[PATCH v4 0/2] usb: gadget: udc: atmel: Endpoint allocation scheme fixes

2017-04-07 Thread cristian.birsan
From: Cristian Birsan This patch series provides fixes, based on the feedback received on the mailing list, for the following: - fifo table parameters validation against device tree values - coding style - message display for EP configuration error - Kconfig comme

[PATCH linux-next v3 3/4] usb: gadget: udc: atmel: Use dev_err() to display EP configuration error

2017-04-03 Thread cristian.birsan
From: Cristian Birsan Use dev_err() to display EP configuration error to avoid silent failure. Signed-off-by: Cristian Birsan Acked-by: Nicolas Ferre --- drivers/usb/gadget/udc/atmel_usba_udc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/

[PATCH linux-next v3 4/4] usb: gadget: udc: atmel: Update Kconfig help for fifo_mode = 0

2017-04-03 Thread cristian.birsan
From: Cristian Birsan Update Kconfig help for fifo_mode = 0 to explain the behavior better. Signed-off-by: Cristian Birsan Acked-by: Nicolas Ferre --- drivers/usb/gadget/udc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/Kconfig b/drive

[PATCH linux-next v3 2/4] usb: gadget: udc: atmel: Minor code cleanup

2017-04-03 Thread cristian.birsan
From: Cristian Birsan Minor code cleanup based on feedback received on mailinglist. Signed-off-by: Cristian Birsan Acked-by: Nicolas Ferre --- drivers/usb/gadget/udc/atmel_usba_udc.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/usb/gadget/udc/

[PATCH linux-next v3 0/4] usb: gadget: udc: atmel: Endpoint allocation scheme fixes

2017-04-03 Thread cristian.birsan
From: Cristian Birsan This patch series provides fixes, based on the feedback received on the mailing list, for the following: - fifo table parameters validation against device tree values - coding style - message display for EP configuration error - Kconfig comme

[PATCH linux-next v3 1/4] usb: gadget: udc: atmel: Check fifo configuration values against device tree

2017-04-03 Thread cristian.birsan
From: Cristian Birsan Check fifo configuration values against device tree values for endpoint fifo in auto configuration mode (fifo_mode=0). Signed-off-by: Cristian Birsan Acked-by: Nicolas Ferre --- drivers/usb/gadget/udc/atmel_usba_udc.c | 24 ++-- 1 file changed, 22 ins

[PATCH linux-next v2 4/4] usb: gadget: udc: atmel: Update Kconfig help for fifo_mode = 0

2017-03-28 Thread cristian.birsan
From: Cristian Birsan Update Kconfig help for fifo_mode = 0 to explain the behavior better. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig

[PATCH linux-next v2 3/4] usb: gadget: udc: atmel: Use dev_warn() to display EP configuration error

2017-03-28 Thread cristian.birsan
From: Cristian Birsan Use dev_warn() to display EP configuration error to avoid silent failure. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/driver

[PATCH linux-next v2 2/4] usb: gadget: udc: atmel: Minor code cleanup

2017-03-28 Thread cristian.birsan
From: Cristian Birsan Minor code cleanup based on feedback received on mailinglist. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drive

[PATCH linux-next v2 1/4] usb: gadget: udc: atmel: Check fifo configuration values against device tree

2017-03-28 Thread cristian.birsan
From: Cristian Birsan Check fifo configuration values against device tree values for endpoint fifo in auto configuration mode (fifo_mode=0). Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-

[PATCH linux-next v2 0/4] usb: gadget: udc: atmel: Endpoint allocation scheme fixes

2017-03-28 Thread cristian.birsan
From: Cristian Birsan This patch series provides fixes, based on the feedback received on the mailing list, for the following: - fifo table parameters validation against device tree values - coding style - message display for EP configuration error - Kconfig comme

[PATCH] ARM: at91/dt: Disable SPI on at91sam9x5ek to allow MCI1 to work.

2017-02-16 Thread cristian.birsan
From: Cristian Birsan The A13 hardware line is shared by SPI and MCI1 controller.This patch disables the SPI controller so that the MCI1 (the big MMC card slot) can be used. Signed-off-by: Cristian Birsan --- arch/arm/boot/dts/at91sam9x5ek.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH 4/4 linux-next] usb: gadget: udc: atmel: Update Kconfig help for fifo_mode = 0

2017-02-14 Thread cristian.birsan
From: Cristian Birsan Update Kconfig help for fifo_mode = 0 to explain the behavior better. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig

[PATCH 3/4 linux-next] usb: gadget: udc: atmel: Use dev_warn() to display EP configuration error

2017-02-14 Thread cristian.birsan
From: Cristian Birsan Use dev_warn() to display EP configuration error to avoid silent failure. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/driver

[PATCH 2/4 linux-next] usb: gadget: udc: atmel: Minor code cleanup

2017-02-14 Thread cristian.birsan
From: Cristian Birsan Minor code cleanup based on feedback received on mailinglist. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/

[PATCH 1/4 linux-next] usb: gadget: udc: atmel: Check fifo configuration values against device tree

2017-02-14 Thread cristian.birsan
From: Cristian Birsan Check fifo configuration values against device tree values for endpoint fifo in auto configuration mode (fifo_mode=0). Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 26 +++--- 1 file changed, 23 insertions(+), 3 deletions

[PATCH 0/4 linux-next] usb: gadget: udc: atmel: Endpoint allocation scheme fixes

2017-02-14 Thread cristian.birsan
From: Cristian Birsan This patch series provides fixes, based on the feedback received on the mailing list, for the following: - fifo table parameters validation against device tree values - coding style - message display for EP configuration error - Kconfig comme

[PATCH] usb: gadget: udc: atmel: Endpoint allocation scheme fixes

2017-02-10 Thread cristian.birsan
From: Cristian Birsan This patch provides fixes for the following: - fifo table parameters validation against device tree values - coding style - error message display - Kconfig comments Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/Kconfig

[PATCH linux-next] fixup! usb: gadget: udc: atmel: Update endpoint allocation scheme

2017-02-06 Thread cristian.birsan
From: Cristian Birsan Signed-off-by: Cristian Birsan --- Fixes since previous patch: - Fix coding style - Validate parameters againsta device tree values - Update error message display - Update Kconfig comments drivers/usb/gadget/udc/Kconfig | 5 ++--

[PATCH linux-next v2 1/1] usb: gadget: udc: atmel: Update endpoint allocation scheme

2017-01-23 Thread cristian.birsan
From: Cristian Birsan Update atmel udc driver with a new enpoint allocation scheme. The data sheet requires that all endpoints are allocated in order. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/Kconfig | 14 ++ drivers/usb/gadget/udc/atmel_usba_udc.c | 236

[PATCH linux-next v2 0/1] usb: gadget: udc: atmel: Update endpoint allocation scheme

2017-01-23 Thread cristian.birsan
From: Cristian Birsan Hi, This patch updates the usb endpoint allocation scheme for atmel usba driver to make sure all endpoints are allocated in order. This requirement comes from the datasheet of the controller. The allocation scheme is decided by fifo_mode parameter. For fifo_mode = 0 the dr

[PATCH linux-next 0/1] usb: gadget: udc: atmel: Update endpoint allocation scheme

2017-01-20 Thread cristian.birsan
From: Cristian Birsan Hi, This patch updates the usb endpoint allocation scheme for atmel usba driver to make sure all endpoints are allocated in order. This requirement comes from the datasheet of the controller. The allocation scheme is decided by fifo_mode parameter. For fifo_mode = 0 the dr

[PATCH linux-next 1/1] usb: gadget: udc: atmel: Update endpoint allocation scheme

2017-01-20 Thread cristian.birsan
From: Cristian Birsan Update atmel udc driver with a new enpoint allocation scheme. The data sheet requires that all endpoints are allocated in order. Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/Kconfig | 14 ++ drivers/usb/gadget/udc/atmel_usba_udc.c | 236