From patchwork Fri Jun 7 06:03:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: manjunath.goudar@linaro.org X-Patchwork-Id: 17662 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 66C7025E33 for ; Fri, 7 Jun 2013 06:04:25 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id cr7sf1030832qab.9 for ; Thu, 06 Jun 2013 23:04:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=vbOKv7m67n8Aj35Skqzrz/MIDGppV1oQCij8qELWRC0=; b=jlYHmzBltmFpYvy3+5M08jyFLVaw6aN5Gj14dRLJsNyacVec6aqXLxNhkDViUe74aL X06x1QihPTYAWFITVyDAfszxLvpHTGi5/1h7GY+x9LorG3KDUYm6ARw9BbpeeV7Jr+GL 3kq/0AXFe5iFeCsiX2WyXrbY49tWMCjPqtq1TN9NRnJp/pll2WdqHOUg4zoC5mRyHr2F ktSfj1ZHY5oO4F3FAVGR7FBukaMwBBzkNeA/Sis4xUtypY+5cs3TMBse+4Hgx9Vm0LiN PeFrgYLHeCO3HUWHUpbrwUSK7tNfO1Kf/LeRPbMAvIh73FBzXtGk9a6pgd3UNqMb3df8 IGiA== X-Received: by 10.236.193.196 with SMTP id k44mr21558125yhn.40.1370585065168; Thu, 06 Jun 2013 23:04:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.37.71 with SMTP id w7ls1566375qej.69.gmail; Thu, 06 Jun 2013 23:04:25 -0700 (PDT) X-Received: by 10.52.30.105 with SMTP id r9mr1236242vdh.117.1370585064975; Thu, 06 Jun 2013 23:04:24 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id p19si42868473vcw.89.2013.06.06.23.04.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Jun 2013 23:04:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id m16so2562840vca.30 for ; Thu, 06 Jun 2013 23:04:24 -0700 (PDT) X-Received: by 10.221.4.131 with SMTP id oc3mr22953016vcb.49.1370585064878; Thu, 06 Jun 2013 23:04:24 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp99345vcb; Thu, 6 Jun 2013 23:04:24 -0700 (PDT) X-Received: by 10.68.56.231 with SMTP id d7mr41723684pbq.49.1370585063913; Thu, 06 Jun 2013 23:04:23 -0700 (PDT) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx.google.com with ESMTPS id lb5si50268640pbc.270.2013.06.06.23.04.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Jun 2013 23:04:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.172 is neither permitted nor denied by best guess record for domain of manjunath.goudar@linaro.org) client-ip=209.85.192.172; Received: by mail-pd0-f172.google.com with SMTP id z10so803941pdj.17 for ; Thu, 06 Jun 2013 23:04:23 -0700 (PDT) X-Received: by 10.66.155.67 with SMTP id vu3mr1304916pab.0.1370585063536; Thu, 06 Jun 2013 23:04:23 -0700 (PDT) Received: from localhost.localdomain ([223.239.151.157]) by mx.google.com with ESMTPSA id i16sm1523759pag.18.2013.06.06.23.04.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Jun 2013 23:04:22 -0700 (PDT) From: Manjunath Goudar To: linux-usb@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, patches@linaro.org, stern@rowland.harvard.edu, arnd@linaro.org, manjunath.goudar@linaro.org, linaro-dev@lists.linaro.org, Arnd Bergmann , Greg KH Subject: [RFC][PATCH 5/7] USB: OHCI: export ohci_hub_control and ohci_hub_status_data Date: Fri, 7 Jun 2013 11:33:31 +0530 Message-Id: <1370585013-12809-6-git-send-email-manjunath.goudar@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1370585013-12809-1-git-send-email-manjunath.goudar@linaro.org> References: <1370585013-12809-1-git-send-email-manjunath.goudar@linaro.org> X-Gm-Message-State: ALoCoQnAeWFmnHbhCTNd1VbypAOi8Rf7jucXjN96SIfc1yBtlL/W7rqumu92gjxt1TksB6vPLIG3 X-Original-Sender: manjunath.goudar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , In order to make ohci-at91 and ohci-s3c2410 as a separate driver, ohci_hub_control and ohci_hub_status_data symbol needs to be exported. This work is part of enabling multi-platform kernels on ARM. Signed-off-by: Manjunath Goudar Cc: Arnd Bergmann Cc: Alan Stern Cc: Greg KH Cc: linux-usb@vger.kernel.org --- drivers/usb/host/ohci-hub.c | 8 ++++---- drivers/usb/host/ohci.h | 9 +++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c index 2347ab8..c601e70 100644 --- a/drivers/usb/host/ohci-hub.c +++ b/drivers/usb/host/ohci-hub.c @@ -437,8 +437,7 @@ static int ohci_root_hub_state_changes(struct ohci_hcd *ohci, int changed, /* build "status change" packet (one or two bytes) from HC registers */ -static int -ohci_hub_status_data (struct usb_hcd *hcd, char *buf) +int ohci_hub_status_data(struct usb_hcd *hcd, char *buf) { struct ohci_hcd *ohci = hcd_to_ohci (hcd); int i, changed = 0, length = 1; @@ -503,6 +502,7 @@ done: return changed ? length : 0; } +EXPORT_SYMBOL_GPL(ohci_hub_status_data); /*-------------------------------------------------------------------------*/ @@ -645,7 +645,7 @@ static inline int root_port_reset (struct ohci_hcd *ohci, unsigned port) return 0; } -static int ohci_hub_control ( +int ohci_hub_control( struct usb_hcd *hcd, u16 typeReq, u16 wValue, @@ -773,4 +773,4 @@ error: } return retval; } - +EXPORT_SYMBOL_GPL(ohci_hub_control); diff --git a/drivers/usb/host/ohci.h b/drivers/usb/host/ohci.h index e2e5faa..d0d9b60 100644 --- a/drivers/usb/host/ohci.h +++ b/drivers/usb/host/ohci.h @@ -738,3 +738,12 @@ extern int ohci_setup(struct usb_hcd *hcd); extern int ohci_suspend(struct usb_hcd *hcd, bool do_wakeup); extern int ohci_resume(struct usb_hcd *hcd, bool hibernated); #endif +extern int ohci_hub_control( + struct usb_hcd *hcd, + u16 typeReq, + u16 wValue, + u16 wIndex, + char *buf, + u16 wLength +); +extern int ohci_hub_status_data(struct usb_hcd *hcd, char *buf);