[PATCH] gadget gadget ethernet dma align fix for s3c-hsotg

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

 



This patch allow s3c-hsotg to work with dma (untested on real hardware).

This need "USB: gadget: add gadget controller number for s3c-hsotg
driver" patch send by Maurus Cuelenaere.

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 ed3ee67..c683b68 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -220,7 +220,7 @@ static inline bool gadget_supports_altsettings(struct usb_gadget *gadget)
  */
 static inline bool gadget_dma32(struct usb_gadget *gadget)
 {
-	if (gadget_is_musbhdrc(gadget))
+	if (gadget_is_s3c_hsotg(gadget))
 		return true;
 	return false;
 }
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c
index 7e5bf59..90a1dd6 100644
--- a/drivers/usb/gadget/s3c-hsotg.c
+++ b/drivers/usb/gadget/s3c-hsotg.c
@@ -222,7 +222,7 @@ static void s3c_hsotg_dump(struct s3c_hsotg *hsotg);
  */
 static inline bool using_dma(struct s3c_hsotg *hsotg)
 {
-	return false;	/* support is not complete */
+	return true;	/* support is not complete */
 }
 
 /**

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

  Powered by Linux