Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A3FAC4332F for ; Wed, 4 Jan 2023 16:27:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239908AbjADQ1D (ORCPT ); Wed, 4 Jan 2023 11:27:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239832AbjADQ1A (ORCPT ); Wed, 4 Jan 2023 11:27:00 -0500 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 468FD1B9E1 for ; Wed, 4 Jan 2023 08:26:59 -0800 (PST) Received: (qmail 472771 invoked by uid 1000); 4 Jan 2023 11:26:58 -0500 Date: Wed, 4 Jan 2023 11:26:58 -0500 From: Alan Stern To: Heikki Krogerus Cc: Greg Kroah-Hartman , Frank Li , Rondreis , Chanh Nguyen , Christophe JAILLET , Felipe Balbi , linux-usb@vger.kernel.org Subject: Re: The "bus for gadgets" is preventing the use of multiple UDCs Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Wed, Jan 04, 2023 at 06:07:23PM +0200, Heikki Krogerus wrote: > Hi, > > Before the introduction of this bus it was possible to use configfs > with multiple device controllers: > > echo "dwc3.1.auto" > usb_gadget/g1/UDC > echo "dwc3.2.auto" > usb_gadget/g2/UDC > > But now only one UDC can be assigned. When I try to assign the second > UDC for g2, I get this error: > > Error: Driver 'configfs-gadget' is already registered, aborting... > UDC core: g2: driver registration failed: -16 Two separate patches have been submitted to fix this. See: https://lore.kernel.org/linux-usb/20221213220354.628013-1-Frank.Li@nxp.com/ https://lore.kernel.org/linux-usb/20221221091317.19380-1-chanh@os.amperecomputing.com/ So far, neither of them has been merged. Alan Stern