Hello. On 21.12.2010 19:14, tom.leiming@xxxxxxxxx wrote:
From: Ming Lei<tom.leiming@xxxxxxxxx>
We will support multiple dma controller type in one single musb core driver(binary), so print dma type by the
s/by/from/?
information from hw glue driver.
Signed-off-by: Ming Lei<tom.leiming@xxxxxxxxx>
[...]
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h index 781e1ad..5b3557c 100644 --- a/drivers/usb/musb/musb_core.h +++ b/drivers/usb/musb/musb_core.h @@ -665,4 +665,20 @@ static inline u8 musb_platform_get_hw_revision(struct musb *musb) return musb->ops->get_hw_revision(musb); } +static inline const char *get_dma_name(struct musb *musb) +{ +#ifdef CONFIG_MUSB_PIO_ONLY + return "pio"; +#else + if (musb->ops->flags & MUSB_GLUE_DMA_INVENTRA) + return "musb->dma";
'>' is not needed here. WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html