From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 32502C04FDF for ; Fri, 4 Aug 2023 20:16:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CDF06862CB; Fri, 4 Aug 2023 22:15:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="RBbOIqfq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 66DD68671F; Fri, 4 Aug 2023 22:15:40 +0200 (CEST) Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F163F8681E for ; Fri, 4 Aug 2023 22:15:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-58419517920so26474407b3.0 for ; Fri, 04 Aug 2023 13:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1691180136; x=1691784936; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=f5NUwpa5Mj4PxkcmibQizhhOIJr81P6U0fGvq9bXFzE=; b=RBbOIqfqQbL1G7a0dwdilmSnBmF5+D8FuxFQoEgv3WeotGQvVRwyxgDuZm1q3Opi+n gaya/JAtEZGTR9JyYf2j/6U/8F+0GwPQ4m2RiL1iXMlvK9c+Mh/HQwDNtEDF+8hvpJhx lXvmR1l+GWqgr9YzPKcuEzdvtn1tf9OI/bp9o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691180136; x=1691784936; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=f5NUwpa5Mj4PxkcmibQizhhOIJr81P6U0fGvq9bXFzE=; b=hJ1wybQ1brBElEMPbwY+MApejnvkx/hhd8N9Jrwibx6x40oQjbhgfO+MRiIZuLMJEk BQxSDUh+1BqIddrfwpcOgHjiXBXzZo3Eg5u7a9g0D/sBGn1HhbIL/zKYw95Nw/Z+5zqo ZKVkYcWy9NzujY70msKx4SOZzm9haRvjL0Pgflqtl7x2PsiQAIImoglITIt7BEv9cfTs O00SxJAex3toq/+Fs1+rxkGQ7miQ59VLQ1+SLpl/S869tabZKiMM0GexFL96vvm3xQJs CG7W7uNbjm4etKJl7t+3821ugPow7QtFWhHMSkDt3tE43nL+SRYfT/QkOtI2TTqNNnmu +gPg== X-Gm-Message-State: AOJu0YwFrCodWedR8W8zlhU+bzwHN07NGMP7EGSqHfr3CNXoAwBVitND mwLCMZfxuY4WsaZM4vVU2SK9vw== X-Google-Smtp-Source: AGHT+IGclSUukr0zb90br8rJgwhUoDqr2tOBWW7c+tWhzZMSSJt/XQiieKzPxFXa6wfUuJ9z9T/9ng== X-Received: by 2002:a0d:eac6:0:b0:586:34:eb7 with SMTP id t189-20020a0deac6000000b0058600340eb7mr2577947ywe.44.1691180136727; Fri, 04 Aug 2023 13:15:36 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-c37f-6e0c-fce7-d587.res6.spectrum.com. [2603:6081:7b00:6400:c37f:6e0c:fce7:d587]) by smtp.gmail.com with ESMTPSA id h1-20020a816c01000000b005773ca61111sm944215ywc.42.2023.08.04.13.15.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 13:15:36 -0700 (PDT) Date: Fri, 4 Aug 2023 16:15:34 -0400 From: Tom Rini To: Marek Vasut Cc: u-boot@lists.denx.de, Kevin Hilman , Lukasz Majewski , Miquel Raynal , Simon Glass Subject: Re: [PATCH v5 3/3] usb: gadget: ether: Handle gadget driver registration in probe and remove Message-ID: <20230804201534.GF3630934@bill-the-cat> References: <20230804154111.97042-1-marex@denx.de> <20230804154111.97042-3-marex@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BvZpsf5LKDZIor8S" Content-Disposition: inline In-Reply-To: <20230804154111.97042-3-marex@denx.de> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --BvZpsf5LKDZIor8S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 04, 2023 at 05:41:11PM +0200, Marek Vasut wrote: > Move the ethernet gadget driver registration and removal from ethernet > bind and unbind callbacks into driver DM probe and remove callbacks. > This way, when the driver is bound, which is triggered deliberately > using 'bind' command, the USB ethernet gadget driver is instantiated > and bound to the matching UDC. In reverse, when the driver is unbound, > which is again triggered deliberately using 'unbind' command, the USB > ethernet gadget driver instance is removed. >=20 > Effectively, this now behaves like running either 'ums' or 'dfu' or > any other commands utilizing USB gadget functionality. >=20 > This also drops use of usb_gadget_release() and moves the use of > usb_gadget_initialize() into usb_ether_init() used only by legacy > platforms that do not use 'bind' command properly yet. Those have > no place in drivers. >=20 > Signed-off-by: Marek Vasut > Tested-by: Tom Rini Reviewed-by: Tom Rini --=20 Tom --BvZpsf5LKDZIor8S Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmTNXGYACgkQFHw5/5Y0 tywDAAv+IsQvnSWFmsMXjme/vH2OnFvOCZxXW5oahF/A7gdUO6vVr9QTyxi9i4Wr 2yPRpotN2nVuTM/W2UYAjMxErUlhKAjw58o2vESH/Pc/So+GyeN10csEjkjVkJmw 9zmlwDvS/fQNZeE2c+N4DVQpa0rx7mupV3YqXpZ3dt/kQZr5fBpPVvZTI/GjDnUb LA76La/hG6O4Z2EVJakre2fk0bYHSFUxYSFQOFpj4obPQZbd/hc8d0YbpHf0oEo6 O5PYH/GJoSWwpe3etrLsqJG4p6NduWVzKt+hxvTAbrBIdsW9yGMM9LFrIkRCaCzX XxKXwAcfFdkk7I+j3bVaoAyPrlDwpR6cmQCN1aHR2Yya0WrEM8ip4tdAmaTFCTLU mfRf/AwSLINtOQGpdfxB0aecZyhBlyjDKmUVyYxdwgxjdzieM5z1lXI6mhlPNOil iL1Bx4UCQY1Qz8Kuuzjy52lSghFcWvybw9DIM4x+iZSkdwzxnareVaHWxGtxxXNU Bv4PsDuH =dvtk -----END PGP SIGNATURE----- --BvZpsf5LKDZIor8S--