From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: [RFC PATCHv1] usb: dwc2: Combine dwc2/s3c-hsotg into a single DRD Date: Tue, 4 Feb 2014 15:45:40 -0600 Message-ID: <1391550341-32509-1-git-send-email-dinguyen@altera.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: dinh.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Dinh Nguyen , Greg Kroah-Hartman , Paul Zimmerman , Felipe Balbi , Ben Dooks , Matt Porter , Kukjin Kim , Stephen Warren , Matthijs Kooijman , Fengguang Wu , Dan Carpenter , Wei Yongjun , Wolfram Sang , Yijing Wang , Ray Jui , Julien Delacou , Dom Cobley , Rashika Kheria , Jingoo Han , Sachin Kamat , Robert Baldyga , Kisho List-Id: linux-samsung-soc@vger.kernel.org From: Dinh Nguyen Hello, This patch is my first attempt in combining the Synopsys DWC2 host and the s3c-hsotg peripheral into a single dual-role driver. The patch: * Moves the s3c-hsotg driver into the dwc2 folder. * Adds the gadget data structure into the dwc2_hsotg data structure. * Replace the s3c-hsotg.h defines with the hw.h defines in dwc2 * Uses the "otg" clock for both host/peripheral. * Uses the dwc2_handle_common_intr() IRQ handler for both modes. I have only been able to test the driver on the SOCFPGA platform, which has v2.93a of the dual-role core. Any comments and testing would be greatly appreciated. Thanks, Dinh Nguyen (1): usb: dwc2: Combine the dwc2 and s3c_hsotg into a single USB DRD driver. drivers/usb/dwc2/Kconfig | 35 +- drivers/usb/dwc2/Makefile | 2 + drivers/usb/dwc2/core.c | 1 + drivers/usb/dwc2/core.h | 173 ++- drivers/usb/dwc2/core_intr.c | 134 ++- drivers/usb/dwc2/hcd.c | 7 +- drivers/usb/dwc2/hcd.h | 1 + drivers/usb/dwc2/hw.h | 23 +- drivers/usb/dwc2/platform.c | 49 +- drivers/usb/{gadget => dwc2}/s3c-hsotg.c | 1835 ++++++++++++------------------ drivers/usb/gadget/Kconfig | 7 - drivers/usb/gadget/Makefile | 1 - drivers/usb/gadget/s3c-hsotg.h | 378 ------ 13 files changed, 1088 insertions(+), 1558 deletions(-) rename drivers/usb/{gadget => dwc2}/s3c-hsotg.c (57%) delete mode 100644 drivers/usb/gadget/s3c-hsotg.h --- Cc: Greg Kroah-Hartman Cc: Paul Zimmerman Cc: Felipe Balbi Cc: Ben Dooks Cc: Matt Porter Cc: Kukjin Kim Cc: Stephen Warren Cc: Matthijs Kooijman Cc: Fengguang Wu Cc: Dan Carpenter Cc: Wei Yongjun Cc: Wolfram Sang Cc: Yijing Wang Cc: Ray Jui Cc: Julien Delacou Cc: Dom Cobley Cc: Rashika Kheria Cc: Jingoo Han Cc: Sachin Kamat Cc: Robert Baldyga Cc: Kishon Vijay Abraham I -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html