All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] usb: musb: dsps: fix build on i386 when COMPILE_TEST is set
@ 2015-03-25 21:18 Tony Lindgren
  2015-04-03 15:14 ` Felipe Balbi
  0 siblings, 1 reply; 3+ messages in thread
From: Tony Lindgren @ 2015-03-25 21:18 UTC (permalink / raw)
  To: Felipe Balbi
  Cc: linux-usb, linux-omap, Bin Liu, Brian Hutchinson, George Cherian,
	Sergei Shtylyov

Commit 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps")
fixed a USB error on dm816x, but introduced a new build error on i386
when COMPILE_TEST is set:

drivers/usb/musb/musb_dsps.c: In function ‘dsps_read_fifo32’:
drivers/usb/musb/musb_dsps.c:624:3: error: implicit declaration of function
‘readsl’ [-Werror=implicit-function-declaration]
readsl(fifo, dst, len >> 2);

Let's fix this by using ioread32_rep() instead of readsl() as that's
more portable.

Fixes: 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps")
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Bin Liu <binmlist@gmail.com>
Cc: Brian Hutchinson <b.hutchman@gmail.com>
Cc: George Cherian <george.cherian@ti.com>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 drivers/usb/musb/musb_dsps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
index 2c0750e..8e089c1 100644
--- a/drivers/usb/musb/musb_dsps.c
+++ b/drivers/usb/musb/musb_dsps.c
@@ -661,7 +661,7 @@ static void dsps_read_fifo32(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
 	void __iomem *fifo = hw_ep->fifo;
 
 	if (len >= 4) {
-		readsl(fifo, dst, len >> 2);
+		ioread32_rep(fifo, dst, len >> 2);
 		dst += len & ~0x03;
 		len &= 0x03;
 	}
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] usb: musb: dsps: fix build on i386 when COMPILE_TEST is set
  2015-03-25 21:18 [PATCH 1/1] usb: musb: dsps: fix build on i386 when COMPILE_TEST is set Tony Lindgren
@ 2015-04-03 15:14 ` Felipe Balbi
  2015-04-03 17:10   ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Felipe Balbi @ 2015-04-03 15:14 UTC (permalink / raw)
  To: Greg KH, Tony Lindgren
  Cc: Felipe Balbi, linux-usb, linux-omap, Bin Liu, Brian Hutchinson,
	Sergei Shtylyov

[-- Attachment #1: Type: text/plain, Size: 1648 bytes --]

Hi Greg,

On Wed, Mar 25, 2015 at 02:18:37PM -0700, Tony Lindgren wrote:
> Commit 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps")
> fixed a USB error on dm816x, but introduced a new build error on i386
> when COMPILE_TEST is set:
> 
> drivers/usb/musb/musb_dsps.c: In function ‘dsps_read_fifo32’:
> drivers/usb/musb/musb_dsps.c:624:3: error: implicit declaration of function
> ‘readsl’ [-Werror=implicit-function-declaration]
> readsl(fifo, dst, len >> 2);
> 
> Let's fix this by using ioread32_rep() instead of readsl() as that's
> more portable.
> 
> Fixes: 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps")
> Reported-by: Fengguang Wu <fengguang.wu@intel.com>
> Cc: Bin Liu <binmlist@gmail.com>
> Cc: Brian Hutchinson <b.hutchman@gmail.com>
> Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> Signed-off-by: Tony Lindgren <tony@atomide.com>

Can you apply this one directly ? It fixes a build error on i386.

Signed-off-by: Felipe Balbi <balbi@ti.com>

> ---
>  drivers/usb/musb/musb_dsps.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c
> index 2c0750e..8e089c1 100644
> --- a/drivers/usb/musb/musb_dsps.c
> +++ b/drivers/usb/musb/musb_dsps.c
> @@ -661,7 +661,7 @@ static void dsps_read_fifo32(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
>  	void __iomem *fifo = hw_ep->fifo;
>  
>  	if (len >= 4) {
> -		readsl(fifo, dst, len >> 2);
> +		ioread32_rep(fifo, dst, len >> 2);
>  		dst += len & ~0x03;
>  		len &= 0x03;
>  	}
> -- 
> 2.1.4
> 

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] usb: musb: dsps: fix build on i386 when COMPILE_TEST is set
  2015-04-03 15:14 ` Felipe Balbi
@ 2015-04-03 17:10   ` Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2015-04-03 17:10 UTC (permalink / raw)
  To: Felipe Balbi
  Cc: Tony Lindgren, linux-usb, linux-omap, Bin Liu, Brian Hutchinson,
	Sergei Shtylyov

On Fri, Apr 03, 2015 at 10:14:14AM -0500, Felipe Balbi wrote:
> Hi Greg,
> 
> On Wed, Mar 25, 2015 at 02:18:37PM -0700, Tony Lindgren wrote:
> > Commit 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps")
> > fixed a USB error on dm816x, but introduced a new build error on i386
> > when COMPILE_TEST is set:
> > 
> > drivers/usb/musb/musb_dsps.c: In function ‘dsps_read_fifo32’:
> > drivers/usb/musb/musb_dsps.c:624:3: error: implicit declaration of function
> > ‘readsl’ [-Werror=implicit-function-declaration]
> > readsl(fifo, dst, len >> 2);
> > 
> > Let's fix this by using ioread32_rep() instead of readsl() as that's
> > more portable.
> > 
> > Fixes: 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps")
> > Reported-by: Fengguang Wu <fengguang.wu@intel.com>
> > Cc: Bin Liu <binmlist@gmail.com>
> > Cc: Brian Hutchinson <b.hutchman@gmail.com>
> > Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> > Signed-off-by: Tony Lindgren <tony@atomide.com>
> 
> Can you apply this one directly ? It fixes a build error on i386.
> 
> Signed-off-by: Felipe Balbi <balbi@ti.com>

Now queued up, thanks.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-03 17:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25 21:18 [PATCH 1/1] usb: musb: dsps: fix build on i386 when COMPILE_TEST is set Tony Lindgren
2015-04-03 15:14 ` Felipe Balbi
2015-04-03 17:10   ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.