Message ID | 20240320-b4-qcom-usb-v4-3-41be480172e1@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:cf01:0:b0:33e:7753:30bd with SMTP id o1csp335281wrj; Wed, 20 Mar 2024 07:32:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXQZ3gDt+tTl5o6iyRtsk2OVZdYsEQqMMszh26t5hnjKe9ss/8ZG1DiCMusKlBOupwbBB57A1PKG6srWMyeZA26 X-Google-Smtp-Source: AGHT+IH4gLPyTi8+W1g3vetK7zyJNZkxRtGlM6/DhY/iXvxQ4Z1VcVXbMAJ9UCaQijbMu6PfXSzl X-Received: by 2002:a5d:5488:0:b0:33e:b7f8:7c66 with SMTP id h8-20020a5d5488000000b0033eb7f87c66mr4033261wrv.41.1710945125458; Wed, 20 Mar 2024 07:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710945125; cv=none; d=google.com; s=arc-20160816; b=sNM8uas3d28aFKPhNKKeazAX3T/4QUVvHmD+PJByPhIKzRw53vNOI7VWA8BXuc/xjg K89nb72H9UdNB4sPDv2x/WsTDzTtOF3X/ZV2npF7q1P7ArETRVZx5bhksKeUOqN5Eq9W 46WMh5PC0zg8RkGeB3RDhP5y2axRLK+l+A5HG5OutTOSSSDxXFXqF0x8l4yezs2RbXXA YwRnA6r7qk0k/DRB0+jVPKY21CPxJrzt4WfJypC+hFp3pZDC9q09HipbFIZnRNms07Yf GaVtcfJpMm6ovjMjzulTwrheiXl4NodyGgrVU+E+meWKzhqTMVNCh1LXmFQVTUlR8m2h seTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=U6Ao/BrHGxpD1C9cPv4fRTuqD3AMDzioaQtxFwiQPrk=; fh=UJLfQHigVNNxRTyupVH3iuVYJLWMjRXGBkTXuIfaL+0=; b=wY51Wu12m0QuI+103HjEtSl4AKYa6Mp/1xdsgQCgV34RkkLsZit68zeqxXSVpFldZg DM40j1SwIWniRv8lqwXLuBbaTyp7WQ+2EdZVZ/LD9MyLZjOg8TQHuZL0919+hg2lXfs2 8dNT8vBRjB+9JFsmmN9zHWuimUP5Z2jQm68D+zJWoKc7yEeRZVZqXiisOWrfCdHid9fg ARmekcrwiw7a249yGaYnF4V/j6ZxdkwYtf+gFV0r/vHvormMhTDPrCtwBUnpniOo663a GdyipRa1ZLZwA3FS+TMw8uJvEjplgRYZjTLOz6dUYzEGr5wxIYBqVhzoMCTSJXzVm35d fLLw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KoG2tk1S; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id f4-20020a5d4dc4000000b0033b47cec5f0si7109947wru.570.2024.03.20.07.32.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 07:32:05 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KoG2tk1S; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 239ED8808B; Wed, 20 Mar 2024 15:31:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="KoG2tk1S"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 09B8E880A6; Wed, 20 Mar 2024 15:31:36 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (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 C5872880B5 for <u-boot@lists.denx.de>; Wed, 20 Mar 2024 15:31:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-33ed7ef0ae8so2563881f8f.0 for <u-boot@lists.denx.de>; Wed, 20 Mar 2024 07:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710945089; x=1711549889; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=U6Ao/BrHGxpD1C9cPv4fRTuqD3AMDzioaQtxFwiQPrk=; b=KoG2tk1SuIy9fOX9bgjYO7GLDAwa4slov/fCbaoNv49513WllbLLHy1y7+pzHF3Vau s2A/KbEPPdA/U9fhy5LNvPVeexlnDgVbbnGT7Dr6kT6Yvp5OMx7JxGKc5PWgv8iPFbeq BHOsZrod2Ub/SJUKufRR/FWsO7Pv6O27SqXPp5BohWCIUT4pjIRC1AP7mdRyditPIskg wVFgx2J2jMemX1QgXUy39z63Cwt4045LJ/53uh1kgob7wd6TCANZKAMtiE+w/2j8X2jb Ikk2WXhu7vPNgx+vCKqYg7ep/kyug9gsDA8/9lT1+XPAjkIV9U1Kt5IZA3ZxyXPlKdw+ HStQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710945089; x=1711549889; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=U6Ao/BrHGxpD1C9cPv4fRTuqD3AMDzioaQtxFwiQPrk=; b=mVlxCPKs6yXJUdT+ton0lzV+HaLOwH+TTWIhGlB2WyQOfJPtBYDuPEogPZiYwO5Wax I0cD+gliGPwNqWuufEP+l8yfxwO61pOIgYl0DbGQEq+lsLzToe0mQsOo3Wn8qRbzIS7P iPWp/qGrUUVR8I4R7BK3ZPc+6fY/3Xm7pxM2yhQgrrpWmKsU6OQxtLo0zrfXlL25qaUU 9Ihq17ezJXnX+RGZQleeHHdk6M1dd0VA5/uBNA2XdHmE54sFCf1LOYuMZYdRRUj9YrFg IpKBx8cJsCUvak5PHX8kSxEYYqjqodxtZeAFBUlGV3K4mw/DHxFaSvMXbjjvydgw9N5G cJKw== X-Gm-Message-State: AOJu0YzsGtXnRshAb9XM01Xp8nrtv+rMIB1muoM0NjLc2rn7oJPhkUPh woxgTCLQaoIyWKUCaYGvdURkScmT4R3A7LSqcBQ1DwKCueicPS38bHbLYqyhmeAdqrRtD9Z5UFG q X-Received: by 2002:a5d:5404:0:b0:33d:d7be:3bec with SMTP id g4-20020a5d5404000000b0033dd7be3becmr4131703wrv.58.1710945089298; Wed, 20 Mar 2024 07:31:29 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id az1-20020adfe181000000b0033ed7181fd1sm12036571wrb.62.2024.03.20.07.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 07:31:28 -0700 (PDT) From: Caleb Connolly <caleb.connolly@linaro.org> Date: Wed, 20 Mar 2024 14:30:49 +0000 Subject: [PATCH v4 3/5] usb: gadget: CDC ACM: call usb_gadget_initialize MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240320-b4-qcom-usb-v4-3-41be480172e1@linaro.org> References: <20240320-b4-qcom-usb-v4-0-41be480172e1@linaro.org> In-Reply-To: <20240320-b4-qcom-usb-v4-0-41be480172e1@linaro.org> To: Marek Vasut <marex@denx.de>, Tom Rini <trini@konsulko.com>, Lukasz Majewski <lukma@denx.de>, Mattijs Korpershoek <mkorpershoek@baylibre.com>, Caleb Connolly <caleb.connolly@linaro.org>, Neil Armstrong <neil.armstrong@linaro.org>, Sumit Garg <sumit.garg@linaro.org> Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1128; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=zOzCrBy5uJTh6xPbLEJbYeWWpo5eW586HYEeAes6w7A=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtRfn21/HJ0jlfl5y2uL++uN///vKe2df6OzpX9m5PMH7 O/XcVuzdJSyMAhyMMiKKbKIn1hm2bT2sr3G9gUXYOawMoEMYeDiFICJrLvOyNDs+vjA1zv9nz+w vO0svTH3n5Zy7b0bMcyM670XXWj73BvD8N+hbteGbZPedr6/Ll3xy3OF7IoH5zlul4bu/ys5I/y bZVIbAA== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
Qualcomm DWC3 USB support
|
expand
|
diff --git a/drivers/usb/gadget/f_acm.c b/drivers/usb/gadget/f_acm.c index de42e0189e8d..ba216128ab27 100644 --- a/drivers/usb/gadget/f_acm.c +++ b/drivers/usb/gadget/f_acm.c @@ -622,14 +622,23 @@ static void acm_stdio_puts(struct stdio_dev *dev, const char *str) } static int acm_stdio_start(struct stdio_dev *dev) { + struct udevice *udc; int ret; if (dev->priv) { /* function already exist */ return 0; } + ret = udc_device_get_by_index(0, &udc); + if (ret) { + pr_err("USB init failed: %d\n", ret); + return ret; + } + + g_dnl_clear_detach(); + ret = g_dnl_register("usb_serial_acm"); if (ret) return ret;