From: Pali Rohár Date: Sun, 7 Feb 2021 13:50:06 +0000 (+0100) Subject: usb: musb: Read value of PERI_RXCSR to 16bit variable X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=7d7ae28c8b568ff1db38f7520b8ae892b4d93eee;p=u-boot.git 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 Reviewed-by: Lukasz Majewski Acked-by: Pavel Machek --- diff --git a/drivers/usb/musb/musb_udc.c b/drivers/usb/musb/musb_udc.c index d901f8777c..67d1c56f9a 100644 --- a/drivers/usb/musb/musb_udc.c +++ b/drivers/usb/musb/musb_udc.c @@ -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)