Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754676AbbLKJhd (ORCPT ); Fri, 11 Dec 2015 04:37:33 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:34373 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753641AbbLKJha (ORCPT ); Fri, 11 Dec 2015 04:37:30 -0500 X-AuditID: cbfec7f5-f79b16d000005389-d9-566a9957b730 Subject: Re: [PATCH v7 0/4] usb/gadget: independent registration of gadgets and gadget drivers To: Felipe Balbi , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <1448268998-4682-1-git-send-email-m.szyprowski@samsung.com> <87egeujl0r.fsf@saruman.tx.rr.com> <87bn9yjkn3.fsf@saruman.tx.rr.com> <878u52jkgb.fsf@saruman.tx.rr.com> Cc: Ruslan Bilovol , Bartlomiej Zolnierkiewicz From: Marek Szyprowski Message-id: <566A9956.7060001@samsung.com> Date: Fri, 11 Dec 2015 10:37:26 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-version: 1.0 In-reply-to: <878u52jkgb.fsf@saruman.tx.rr.com> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLLMWRmVeSWpSXmKPExsVy+t/xq7rhM7PCDCZNl7TYOGM9q8XB+/UW l3fNYbNYtKyV2aJn5wlGB1aPnbPusnv0bVnF6HH8xnYmj8+b5AJYorhsUlJzMstSi/TtErgy DuxvZytYIFjx4ssTpgbGaXxdjJwcEgImEosWP2GFsMUkLtxbz9bFyMUhJLCUUeJ123N2COc5 o8SJBSdZQKqEBRIkXi/tZgaxRQSiJP7v6GeEKNrCKDG35ytYglkgVeL8tPVgNpuAoUTX2y42 EJtXQEvi7fpTYDaLgKpEy6d1YKtFBWIkHi/eygpRIyjxY/I9sGWcAvoSW7qmskPMNJP48vIw K4QtL7F5zVvmCYwCs5C0zEJSNgtJ2QJG5lWMoqmlyQXFSem5RnrFibnFpXnpesn5uZsYIYH8 dQfj0mNWhxgFOBiVeHgXcGSFCbEmlhVX5h5ilOBgVhLhvTgFKMSbklhZlVqUH19UmpNafIhR moNFSZx35q73IUIC6YklqdmpqQWpRTBZJg5OqQZGUyNu71T9dqXDIaV1iQnXT6U7LS5aL2gR L+f6X42J/fG+Nv4GRYnb17hZYhQ/6Ow6p1zXyOi/dHXefNfUoGjtYOcP0paFM/e/PR6qwSOt vOvEy/u+9ab8uase35+oNrne5uSV6Hmrfde85y05zCLKddMpTk7+neqrW2vuGcjasf55qdii +EqJpTgj0VCLuag4EQACpUv6YAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2405 Lines: 53 Hello, On 2015-12-10 18:13, Felipe Balbi wrote: > Felipe Balbi writes: >> Felipe Balbi writes: >>> Marek Szyprowski writes: >>>> This is a resurrection of the patches initially submitted by Ruslan >>>> Bilovol in the following thread: https://lkml.org/lkml/2015/6/22/554 >>>> >>>> The changes since the original submission (v5) includes rebase onto >>>> latest linux-next branch, simplification of the code requested by Alan >>>> Stern and Felipe Balbi, removal of a patch, which deleted __init/__exit >>>> attributes (this change has been already merged) and fixes of the >>>> checkpatch issues. >>>> >>>> This feature is urgently needed, because it is not longer possible to >>>> use workaround to avoid deferred probe in UDC drivers due to >>>> not-yet-probed i2c regulator drivers (for more information see >>>> https://lkml.org/lkml/2015/10/30/374 ). >>>> >>>> This patchset has been successfully tested on Odroid XU3 boards with >>>> DWC3 UDC driver being deferred by missing regulator drivers. >>> there is one problem with this patchset. If I try to statically link >>> gadget drivers, only one can be chosen, even though I can enable both >>> dwc3 and dummy_hcd just fine. And, actually, this brings another >>> problem. How do we handle systems which have 2 USB peripheral >>> controllers (say, 2 instances of dwc3) and choose which gadget driver >>> will bind to which controller ? >> We also seem to have issues with Kconfig. If I try to make gadget driver >> built-in, when compiling I'll get asked again if I want gadget drivers >> built-in. >> >> Another one: I just tried dummy_hcd built-in, g_zero built-in, dwc3 as a >> module. I can never load anything to dwc3 ;-) > In all fairness, none of these are regressions. Can we agree to look at > these during v4.5-rc so maybe v4.6 has a final solution ? IMHO solving all the above issues requires reviving one of the previously abandoned gadget-bus patch series, i.e. http://thread.gmane.org/gmane.linux.usb.general/109745 Is this an approach You are interested in? Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland -- 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/