[RFC] gadget gadget ethernet dma align fix for musb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fix some dma issues with musb.

Some hardware support unaligned dma other don't. I hope TI guy will
provide the proper test.



Signed-off-by: Matthieu CASTET <cmatthieu.castet@xxxxxxxxxx>

diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
index c683b68..2ab6c09 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -222,6 +222,8 @@ static inline bool gadget_dma32(struct usb_gadget *gadget)
 {
 	if (gadget_is_s3c_hsotg(gadget))
 		return true;
+	if (gadget_is_musbhdrc(gadget))
+		return true;
 	return false;
 }
 #endif /* __GADGET_CHIPS_H */

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux