Re: [PATCH 4/8] usb: musb: Change to use new IO access

2014-11-25 Thread Linus Walleij
On Mon, Nov 24, 2014 at 8:05 PM, Tony Lindgren t...@atomide.com wrote:

 Change to use new IO access. This allows us to build in multiple
 MUSB glue layers.

 Cc: Fabio Baltieri fabio.balti...@linaro.org
 Cc: Lee Jones lee.jo...@linaro.org
 Cc: Linus Walleij linus.wall...@linaro.org
 Signed-off-by: Tony Lindgren t...@atomide.com

Acked-by: Linus Walleij linus.wall...@linaro.org

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


Re: [PATCH 4/8] usb: musb: Change to use new IO access

2014-11-24 Thread Felipe Balbi
On Mon, Nov 24, 2014 at 11:05:02AM -0800, Tony Lindgren wrote:
 @@ -312,10 +345,40 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, 
 u8 *dst)
   ioread8_rep(fifo, dst, len);
   }
  }
 -#endif
  
 -#endif   /* normal PIO */
 +/*
 + * Old style IO functions
 + */
 +u8 (*musb_readb)(const void __iomem *addr, unsigned offset);
 +EXPORT_SYMBOL(musb_readb);
 +
 +void (*musb_writeb)(void __iomem *addr, unsigned offset, u8 data);
 +EXPORT_SYMBOL(musb_writeb);
  
 +u16 (*musb_readw)(const void __iomem *addr, unsigned offset);
 +EXPORT_SYMBOL(musb_readw);
 +
 +void (*musb_writew)(void __iomem *addr, unsigned offset, u16 data);
 +EXPORT_SYMBOL(musb_writew);
 +
 +u32 (*musb_readl)(const void __iomem *addr, unsigned offset);
 +EXPORT_SYMBOL(musb_readl);
 +
 +void (*musb_writel)(void __iomem *addr, unsigned offset, u32 data);
 +EXPORT_SYMBOL(musb_writel);

let's make all these _GPL()

-- 
balbi


signature.asc
Description: Digital signature


Re: [PATCH 4/8] usb: musb: Change to use new IO access

2014-11-24 Thread Tony Lindgren
* Felipe Balbi ba...@ti.com [141124 11:13]:
 On Mon, Nov 24, 2014 at 11:05:02AM -0800, Tony Lindgren wrote:
  @@ -312,10 +345,40 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 
  len, u8 *dst)
  ioread8_rep(fifo, dst, len);
  }
   }
  -#endif
   
  -#endif /* normal PIO */
  +/*
  + * Old style IO functions
  + */
  +u8 (*musb_readb)(const void __iomem *addr, unsigned offset);
  +EXPORT_SYMBOL(musb_readb);
  +
  +void (*musb_writeb)(void __iomem *addr, unsigned offset, u8 data);
  +EXPORT_SYMBOL(musb_writeb);
   
  +u16 (*musb_readw)(const void __iomem *addr, unsigned offset);
  +EXPORT_SYMBOL(musb_readw);
  +
  +void (*musb_writew)(void __iomem *addr, unsigned offset, u16 data);
  +EXPORT_SYMBOL(musb_writew);
  +
  +u32 (*musb_readl)(const void __iomem *addr, unsigned offset);
  +EXPORT_SYMBOL(musb_readl);
  +
  +void (*musb_writel)(void __iomem *addr, unsigned offset, u32 data);
  +EXPORT_SYMBOL(musb_writel);
 
 let's make all these _GPL()

Sure.

Tony

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