]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: udc: renesas_usb3: fix Pn_RAMMAP.Pn_MPKT value
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 25 Sep 2017 08:01:24 +0000 (17:01 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 28 Sep 2017 09:31:47 +0000 (12:31 +0300)
commit941bde0d39c773164c846930f26ee8d0867a9787
treeffcd384768940c4a5961b74c2a192154b182e7b9
parent7c3dfdf85b38c4ddf6577f33fbceba1a9d6860e1
usb: gadget: udc: renesas_usb3: fix Pn_RAMMAP.Pn_MPKT value

According to the datasheet of R-Car Gen3, the Pn_RAMMAP.Pn_MPKT should
be set to one of 8, 16, 32, 64, 512 and 1024. Otherwise, when a gadget
driver uses an interrupt endpoint, unexpected behavior happens. So,
this patch fixes it.

Fixes: 74cd6cb3d945 ("usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller")
Cc: <stable@vger.kernel.org> # v4.5+
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/renesas_usb3.c