From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Sat, 6 Feb 2021 15:01:31 +0100 Subject: [RESEND PATCH 06/16] usb: musb: Read value of PERI_RXCSR to 16bit variable In-Reply-To: <20210205191212.7644-7-pali@kernel.org> References: <20210205191212.7644-1-pali@kernel.org> <20210205191212.7644-7-pali@kernel.org> Message-ID: <20210206150131.4afa01b3@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 5 Feb 2021 20:12:02 +0100 Pali Roh?r wrote: > PERI_RXCSR is 16bit register so store its value into 16bit local > variable. > > Signed-off-by: Pali Roh?r > --- > drivers/usb/musb/musb_udc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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) Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: