mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
usb: musb: Read value of PERI_RXCSR to 16bit variable
PERI_RXCSR is 16bit register so store its value into 16bit local variable. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Lukasz Majewski <lukma@denx.de> Acked-by: Pavel Machek <pavel@ucw.cz>
This commit is contained in:
parent
10bc132510
commit
7d7ae28c8b
1 changed files with 1 additions and 1 deletions
|
@ -629,7 +629,7 @@ static void musb_peri_ep0(void)
|
|||
static void musb_peri_rx_ep(unsigned int ep)
|
||||
{
|
||||
u16 peri_rxcount;
|
||||
u8 peri_rxcsr = readw(&musbr->ep[ep].epN.rxcsr);
|
||||
u16 peri_rxcsr = readw(&musbr->ep[ep].epN.rxcsr);
|
||||
|
||||
if (!(peri_rxcsr & MUSB_RXCSR_RXPKTRDY)) {
|
||||
if (debug_level > 0)
|
||||
|
|
Loading…
Reference in a new issue