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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:51:15 +0000 (11:51 +0200)
commitdb73b389775a6a43ae5bea5b95ade16d5557c3e2
tree2f6f02330319bb8cf134e090e72cca0c0493f302
parent25533678e58068487ffaa1b21b392cbfbc07bde5
usb: gadget: udc: renesas_usb3: fix Pn_RAMMAP.Pn_MPKT value

commit 73f2f5745f18b4ccfe9484deac4e84a1378d19fd upstream.

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: 746bfe63bba3 ("usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/renesas_usb3.c