From mboxrd@z Thu Jan 1 00:00:00 1970 From: johnyoun@synopsys.com (John Youn) Date: Tue, 23 Feb 2016 13:33:17 -0800 Subject: [PATCH RESEND 0/2] usb: dwc2: Remove host and gadget only code from core Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org This series moves the host/gadget-specific code from core.c to hcd.c and gadget.c so that they will be compiled only when their respective configurations are selected, or in DRD. This is mostly just a straight move of the code. I have also added some comments to group related functions together. Compiled and tested in all three modes. This should also solve the issue reported here: http://marc.info/?l=linux-usb&m=145591813410106&w=2 Although I wasn't able to test it... couldn't figure out how to disable CONFIG_USB and enable DWC2 in gadget mode. Felipe, This should be applied after Doug's series on your testing/next branch. Regards, John John Youn (2): usb: dwc2: Move register save and restore functions usb: dwc2: Move host-specific core functions into hcd.c drivers/usb/dwc2/core.c | 1959 --------------------------------------------- drivers/usb/dwc2/core.h | 35 +- drivers/usb/dwc2/gadget.c | 102 +++ drivers/usb/dwc2/hcd.c | 1948 ++++++++++++++++++++++++++++++++++++++++++-- drivers/usb/dwc2/hcd.h | 10 + 5 files changed, 2024 insertions(+), 2030 deletions(-) -- 2.6.3 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755483AbcBWVcc (ORCPT ); Tue, 23 Feb 2016 16:32:32 -0500 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:50429 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755424AbcBWVca (ORCPT ); Tue, 23 Feb 2016 16:32:30 -0500 X-Sasl-enc: aE54Kb9NPd5EfwKxGxBPByM7ub1mFQ6xnDzP74C/yE1q 1456262826 Date: Tue, 23 Feb 2016 13:33:17 -0800 Message-Id: From: John Youn To: Felipe Balbi To: Doug Anderson Cc: johnyoun@synopsys.com Cc: Alan Stern Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: linux-arm-kernel@lists.infradead.org Cc: Heiko Stuebner Cc: Stefan Wahren Cc: Heikki Krogerus Cc: Mathias Nyman Cc: linux-kernel@vger.kernel.org Subject: [PATCH RESEND 0/2] usb: dwc2: Remove host and gadget only code from core Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series moves the host/gadget-specific code from core.c to hcd.c and gadget.c so that they will be compiled only when their respective configurations are selected, or in DRD. This is mostly just a straight move of the code. I have also added some comments to group related functions together. Compiled and tested in all three modes. This should also solve the issue reported here: http://marc.info/?l=linux-usb&m=145591813410106&w=2 Although I wasn't able to test it... couldn't figure out how to disable CONFIG_USB and enable DWC2 in gadget mode. Felipe, This should be applied after Doug's series on your testing/next branch. Regards, John John Youn (2): usb: dwc2: Move register save and restore functions usb: dwc2: Move host-specific core functions into hcd.c drivers/usb/dwc2/core.c | 1959 --------------------------------------------- drivers/usb/dwc2/core.h | 35 +- drivers/usb/dwc2/gadget.c | 102 +++ drivers/usb/dwc2/hcd.c | 1948 ++++++++++++++++++++++++++++++++++++++++++-- drivers/usb/dwc2/hcd.h | 10 + 5 files changed, 2024 insertions(+), 2030 deletions(-) -- 2.6.3