From: Jean-Jacques Hiblot Date: Fri, 5 Jul 2019 09:34:25 +0200 Subject: [U-Boot] [RESEND PATCH v3 13/18] usb: dwc3: Kconfig: get rid of obsolete mode selection In-Reply-To: <8a2f06fe-542b-6098-769d-babf992b5775@denx.de> References: <20190627130634.28166-1-jjhiblot@ti.com> <20190627130634.28166-14-jjhiblot@ti.com> <80a83454-ff56-2954-013c-e713f0b46c05@rock-chips.com> <5940c6d6-0e3c-d5cd-0ce3-c58c929b95f8@denx.de> <357cb39e-8112-9170-6164-4d1d9e3d79a7@ti.com> <5cc2bfd0-ad7a-cf46-0429-7982ec7a84a2@denx.de> <2fbccd7b-8d83-0c39-c81f-121b2c1a71d8@ti.com> <8a2f06fe-542b-6098-769d-babf992b5775@denx.de> Message-ID: <431e1fdb-7f3c-e37c-62b3-3a610ab67388@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Marek, On 04/07/2019 15:38, Marek Vasut wrote: > On 7/4/19 9:37 AM, Jean-Jacques Hiblot wrote: >> Hi Marek, >> >> On 02/07/2019 14:32, Jean-Jacques Hiblot wrote: >>> On 02/07/2019 14:10, Marek Vasut wrote: >>>> On 7/2/19 2:06 PM, Jean-Jacques Hiblot wrote: >>>>> On 02/07/2019 13:38, Marek Vasut wrote: >>>>>> On 7/2/19 4:11 AM, Kever Yang wrote: >>>>>>> On 06/27/2019 09:06 PM, Jean-Jacques Hiblot wrote: >>>>>>>> The mode selection for the DWC3 is kind of obsolete. The driver does >>>>>>>> not >>>>>>>> have to be host only or gadget only. This choice is confusing. >>>>>>>> All the remaining callers of dwc3_uboot_init() explicitly set >>>>>>>> dr_mode >>>>>>>> before calling the function, so none rely on a default behavior. >>>>>>>> >>>>>>>> Remove the choice menu and keep only the USB_DWC3_GADGET option. >>>>>>>> Enable it >>>>>>>> by default if USB_GADGET and USB_DWC3 are enabled. >>>>>>>> It must be disabled for the evb-rk3328 as it uses DWC2 for the >>>>>>>> gadget and >>>>>>>> DWC3 for the host. >>>>>>>> >>>>>>>> Signed-off-by: Jean-Jacques Hiblot >>>>>>> Reviewed-by: Kever Yang >>>>>> So is this a fix for current release or feature for next ? I take it >>>>>> it's the later. >>>>>> >>>>> I think this is more the former. I should have changed the title of the >>>>> series to "Fix the DWC3 generic driver" >>>>> >>>>> In the current release all the platforms relying on the dwc3-generic >>>>> driver are broken because of the usage of MISC uclass. >>>>> >>>>> This series among other things fixes it. >>>> Are you able to somehow reduce this to a smaller fix for current >>>> release ? >>> For the uclass fix, only the following patches are required: >>> >>> dm: Add a No-op uclass >>> >>> usb: dwc3: Use UCLASS_NOP instead of UCLASS_MISC for the DWC3 generic >>> glue >>> >>> I've just tested with only those 2 patches on a DRA7-evm >>> >>> >>> The rest are improvements and fixes specific to the K2 platforms >> Do you want that I send a separate series for those 2 patches ? > Well, if you have some fixes (and only fixes, not 18-patch large series > which reworks stuff) for current release, please send them. Otherwise, > rebase on usb/next and send that too. However, please mark the patches > somehow, so I know where they are supposed to go (next or master). Done. Thanks JJ