Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753065AbbGQBjr (ORCPT ); Thu, 16 Jul 2015 21:39:47 -0400 Received: from mail-bn1on0148.outbound.protection.outlook.com ([157.56.110.148]:24593 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750761AbbGQBjp (ORCPT ); Thu, 16 Jul 2015 21:39:45 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Date: Fri, 17 Jul 2015 08:30:22 +0800 From: Peter Chen To: Roger Quadros CC: , , , , , , , , , , Subject: Re: [PATCH v3 05/11] usb: hcd.h: Add OTG to HCD interface Message-ID: <20150717003021.GB3609@shlinux2> References: <1436350777-28056-1-git-send-email-rogerq@ti.com> <1436350777-28056-6-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1436350777-28056-6-git-send-email-rogerq@ti.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD052;1:VrTDKFhV+DIoo2i2knrfy57kbM6yyBq1eXAEW7ctXW8QLPrtRExw2XjDgrK5VHG2gP5Z9beBh0N0Yi7IFqnmRs+XYH/jJmiLOjc1gOwpPLfVKLLNyjagw/Cnb9G9oA4OCTrfDepCAkQ/sgaL3yrFYnHBueFn6PubOcRVIaTTkxL89ycU8lPyyudz7pcPkM7GaAnaDxXoKk1ImvhXjxjlWdILxyASPAqrv2yXDwqn+YgrFPB3/+gRcTeWDyvvHrX8eZzXZSvcQ9QgEFe0MGXuyLZWMsFEEvFRyMo4KmqqaCKjCnv4IZsj2Tdmj/7hxNyH3zXuuqibzTSRjIJM7SZmZ0sbAfjn6LYqxequ0hWwBkjIkGlTNJL/C0yxAhWn24fW79HFczJ5aYzqtrcR1IxIy6rp4aenc68T9DZXKi1wg1GqKVQim2dq6OtYFuLOkq7r X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(339900001)(24454002)(189002)(199003)(19580395003)(19580405001)(97756001)(54356999)(106466001)(50986999)(86362001)(87936001)(47776003)(77096005)(189998001)(110136002)(104016003)(23726002)(2950100001)(5001960100002)(76176999)(46102003)(4001350100001)(77156002)(33716001)(85426001)(92566002)(62966003)(50466002)(83506001)(33656002)(6806004)(105606002)(46406003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR0301MB1232;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1232;2:3eCE8405KX3MNQJ/EstPjfknk7IQXEqoQgR1c9mxLqwFC1+bZV00CU0gCJmc4tmt;3:EBpzEon0MMxSWUQwmxsKpR7/vcudFSz9VzjYt04AMA+fWmsR1vZEfJtkra8e2q2c9+f7qUNnk6Vc9fPznIg3LYQL+maQq6z0r/xo7d4ylP6CrrMyiFpLbn2oY2zNwS2tsrmvOqMYhPnra7N9YERoobL0sZy2eWIDFOZxo1VUnLSPzYz5ID/gdUNH9xoFbFFTyMHR1sagwtxYsAO38y0xKCs5DBNVo3hNieoHYZ51TBE=;25:hM2daj//bRU06Z9YekuzHCF67dnGUyccvcEYtMdhzOXWkdlq88TEKU7h8E8Wt7kzVY9mRdL2nunHyeYke+54LWBfhU4oBuGtfpKjiiG68k35Uw9J3RvMzRoWXjFaCCAha+QB3xKpP/T0s8b30Rst8rFiWzxJuQaDCjbVtrDOHMtS9FOCCH8BPvR0f3MzpWAnjBgud6UIs2E31usrEhojBtPLcf+3PxEojOKhYdqBZNaSCFCMR2+9/kcXaQXyvp+2naXOB4AmORRcmsE8JCJTEw==;20:rKOesmldMrRlNwEZiI/S9EN33Eey8G3Kr4J2l2dm8VIXbd2ppEI4C+3jPOhegK1GTj2TUC7cO1gtcwW8Z8qplaPlj6hnG2ZpOw/Uf6MUVsNpEO8lUwLmzAeEzWQZKzU7iFaymA6CL3e08tSipyi5W4mX+7KLQpYCAhSB56VG2wOGAC5klkvrzR/ENONiNg2/Q1oaGi98glFIieuh5cYZ6z71N8j08g6Bh+SBPW98I5oPe2wo8u9F8M9G3W5WhImWn86RzEyYgwPaOIChgL0//6KDfTmp+gPkMP4M+04X2iovex8Mu/erWW3nspG+IhRKF5ZFebs0R640lsgMpmMXbkDl6wS2TJAaOgVyZNESwMk= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1232;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0685; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:DM2PR0301MB1232;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1232; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1232;4:2t5BxWpkqjE0vw9KFZjr0n3SxYMfgErGMycAOGlS7cZilgLZMEbIKx2ETFlA7ygHxcM25O9HU/5MFN0lu/j3qOtBEE9DMZ+LeZOYrY/3lcTSs3dxWf9+BSDgEVB9Hs5GnIaRZnx7fK5bYSm7cGSHINa6nGeBrELSwJorTlkWGdMuvR2VED83I+lbwb3pkwWLPuqAho1tJCoRpnkc0eBP3NVqZWWxuM0maYwVJqRrx75PplHyX04c26McmAfSjjtYef1ymlUTZTU1HBUga2l4CcGzMH7HxZ/hBSIsk76s4vU= X-Forefront-PRVS: 06400060E1 X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1232;23:0fKDG6bk0dol6FRtI6Sj5GhbrlDpkmHkdxbzv6uPbWxmipb+Uona7luqpLY84xxueX02IteRsFrx7gMRYFPz+oIX9e5NNHUotfpTXjMFtAb1I91/5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qVbwr5IEezl69CoNMH6vItd/VdNGgpFa/bEoosBaYB71bCbLxmx9fzh8BsY=;20:VUJHIk6w81EDZ0mqAI8rkTG2hdtEUtHJatNI0oFxdMMPSP20oXr68Zt9M1wcTosVOV2z3Y8WBqnWGFN8Q8E6zw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2015 01:39:39.4957 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB1232 X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0685;2:0B+s2lAkx42BYk8BEZzeyOF2cImaxV9D/b8L4kDwVju6Jzh1712EOYZOC+Mb85if;3:a5SiIVXABbyq+VV1w17QTBhw7BMGix5vUJ8iLLOkdEJJ9UtmkvCQkcLQnqatxC93Ze8zyXg0HtBXsou8OxNlVGOIq4rISjFud6ozs4QSMU95QqRM7ZHZzBSgygUgoh3j4bYYl5XrDvBxh61AEL39a5VsOCwx51fEcsB8Ict0CzWVHyq1pM4isNSR6LTs+POl6Y12eQ1c4EadFraL9Uuh16s8UrGK+NtcYzJBN0DpfXU=;25:2VVg0o/+t29mrBiPWSnNFz7VtAIOSjxF/Lqt1aFzH/BUsUXRKCX5HzPA1zRuxZWxXxs18D3rUThDN6v2PTt8OzADVsvtc87rIW7BpSxZoGqm2JY5uTl3jJO93oP5OdBklmaspaxjfKxiLGjcrv6ovn/Qv1lop5H5j4XDoOAcZn1NQBwrhR96Pf/VZ3qG0Vqla8mJOaap2de0euv06NcXdZr1hovoTgtDvTgkLiXwrFBmzY9xua854xbiTiTTDJzym1G8HX7ZFqZiSQSItnJWfA==;23:evsA1iZT/QPR/VNVh2aoPZyudulOIEYL2GNUZPmITcAC/jf8Sz29Qz6Noe+dRw741a6JAa7HRvgIJeiVqN4diDqzShlxbMRIcynei60Jy/hlCsg0C1Y6Uzok7Wr4PDgFb2qkoxYCFD6FXZoh2NpBkZpUu9XVWc+UEZp/zAS+D00rB5p9JzqxLjHlqM2W6gISfYXSSdh6u9AgVC9O5Cs4uNcWEfVTLdeJZ6yyRO8zIAhYC4GEkRukvXFtnAbUCD4x X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1553 Lines: 54 On Wed, Jul 08, 2015 at 01:19:31PM +0300, Roger Quadros wrote: > The OTG core will use struct otg_hcd_ops to > add/remove the HCD controller. > > The main purpose of this interface is to avoid directly > calling usb_add/remove_hcd() from the OTG core as they > wouldn't be defined in the built-in symbol table if > CONFIG_USB is m. > > Signed-off-by: Roger Quadros > --- > include/linux/usb/hcd.h | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h > index c9aa779..4108288 100644 > --- a/include/linux/usb/hcd.h > +++ b/include/linux/usb/hcd.h > @@ -386,6 +386,20 @@ struct hc_driver { > > }; > > +/** > + * struct otg_hcd_ops - Interface between OTG core and HCD > + * > + * Provided by the HCD core to allow the OTG core to start/stop the HCD > + * > + * @add: function to add the HCD > + * @remove: function to remove the HCD > + */ > +struct otg_hcd_ops { > + int (*add)(struct usb_hcd *hcd, > + unsigned int irqnum, unsigned long irqflags); > + void (*remove)(struct usb_hcd *hcd); > +}; > + > static inline int hcd_giveback_urb_in_bh(struct usb_hcd *hcd) > { > return hcd->driver->flags & HCD_BH; > -- > 2.1.4 > Reviewed-by: Peter Chen -- Best Regards, Peter Chen -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/