usb: gadget: udc: renesas_usb3: fix zlp transfer by the dmac
The dedicated dmac can transfer a zero-length-packet (zlp) if some bits of the USB_COM_CON register. However, the commit2d4aa21a73
("usb: gadget: udc: renesas_usb3: add support for dedicated DMAC") didn't set the bits to 1. So, this patch fixes it. Fixes:2d4aa21a73
("usb: gadget: udc: renesas_usb3: add support for dedicated DMAC) Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
80584efcc6
commit
ebe6b2b814
|
@ -89,6 +89,9 @@
|
|||
|
||||
/* USB_COM_CON */
|
||||
#define USB_COM_CON_CONF BIT(24)
|
||||
#define USB_COM_CON_PN_WDATAIF_NL BIT(23)
|
||||
#define USB_COM_CON_PN_RDATAIF_NL BIT(22)
|
||||
#define USB_COM_CON_PN_LSTTR_PP BIT(21)
|
||||
#define USB_COM_CON_SPD_MODE BIT(17)
|
||||
#define USB_COM_CON_EP0_EN BIT(16)
|
||||
#define USB_COM_CON_DEV_ADDR_SHIFT 8
|
||||
|
@ -686,6 +689,9 @@ static void renesas_usb3_init_controller(struct renesas_usb3 *usb3)
|
|||
{
|
||||
usb3_init_axi_bridge(usb3);
|
||||
usb3_init_epc_registers(usb3);
|
||||
usb3_set_bit(usb3, USB_COM_CON_PN_WDATAIF_NL |
|
||||
USB_COM_CON_PN_RDATAIF_NL | USB_COM_CON_PN_LSTTR_PP,
|
||||
USB3_USB_COM_CON);
|
||||
usb3_write(usb3, USB_OTG_IDMON, USB3_USB_OTG_INT_STA);
|
||||
usb3_write(usb3, USB_OTG_IDMON, USB3_USB_OTG_INT_ENA);
|
||||
|
||||
|
|
Loading…
Reference in New Issue