Message ID | 20240319-b4-qcom-usb-v3-3-09ba1f86d259@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:46c1:0:b0:33e:7753:30bd with SMTP id g1csp1892411wrs; Tue, 19 Mar 2024 05:15:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX9PsIdvf0pDhlL/c5zEXRZtfe3/x7un6ns9lx8absaY27FjZfBspt3R7ajppnWLw1GTi6TzilHVck9llwdF1a3 X-Google-Smtp-Source: AGHT+IFEUi5IbLsJdD71VFl/RAQLEMLfIkHvIp5cMIHNMPg2mxcoReDZFTU2aI5483AjV7BVrn1Y X-Received: by 2002:adf:ca83:0:b0:33e:c4c0:4784 with SMTP id r3-20020adfca83000000b0033ec4c04784mr10807831wrh.25.1710850517899; Tue, 19 Mar 2024 05:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710850517; cv=none; d=google.com; s=arc-20160816; b=LykqT5yH8+4GPTTSrqeGaNOsMIKcFJbTCTJXk76BGrjgyUR1mu3lKeafgZM8Y+C4op voryH3ldtSgJWgH81dxMfIQd0HLkSgvJur0tzhFENa+Hyar3JQAnuDa5+aVjmUYwyHG6 MZg0e/SHOUCJbVD5BCQBA7ZFALRD+yE10KdD5xBp8Hbe6TMt2X7E7Vw4hx509UMWbQGr VsDHWvb3KOTI+FcbNOmlxFSh6hrMiIvRk5PmeRw67D539kHXMYNsDrOoJR8R25X1hzU0 I9MiBPBxe3ZyHtwywwnIVhfAMlIJUSibmP4p0h2cGxmOkBL30ohjLA+SDSqJK72DImvJ b1Gg== 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=FY9QGXIHUjUwqJuzkbssdsDDOPXqlzrU5tjnQGdINEMbA1kUtOvJrewaRbMfBtTba/ KFGgb1PSa8YSVAx8ccURo4rYCBateH+w/I4vuVPGYZnQwf3W4GMjse6zzSLeH/H0R327 0hsyRaaXBRXiMZ9g06aL8s54CSkBkSZHkbizwZdubQYDMGokQrkmoAC7wdvqBmPqqtW4 CFE+UJGYZ3Xn250oltRYcuAwkkijolXCJYOSbI0Dml9JErK+RqKNIF9F6gP3W1+y2lC0 VX52wqxwglcuLt5srtYFxy/LMINJBOUmJJMLUK+BYw8rYdXfvgVR1kYk6Ygn0iqUcvIe xqig==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zHf2M/Qa"; 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 g5-20020adff405000000b0033e73297addsi5721998wro.758.2024.03.19.05.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 05:15:17 -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="zHf2M/Qa"; 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 37F3D8800F; Tue, 19 Mar 2024 13:14:49 +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="zHf2M/Qa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E91C287FFA; Tue, 19 Mar 2024 13:14:47 +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-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (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 288BE87F6F for <u-boot@lists.denx.de>; Tue, 19 Mar 2024 13:14:44 +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-x431.google.com with SMTP id ffacd0b85a97d-33ff53528ceso1791121f8f.0 for <u-boot@lists.denx.de>; Tue, 19 Mar 2024 05:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710850483; x=1711455283; 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=zHf2M/QaINfBAmxJHqdrJXbgAuXxplFARvQZSiGk70sZSCHpokFtdghTo0dWaxaWuB qkNgpAYYGIXkIitVBSvXKLMDHqSJyE7d+lEjDJQ/GCDyRJ+ZQK+m3OOPEFUcHs0YlXfT sIXK5xLBbDrtPDpFeUJkMLtsTnbFuhvCgco5zUeqdQFyUdt9kyOFjdEE/sYhkzF24Pmg xqbyLt+IYLOPQw3ovwtupFG7iMJ1c6uZAzMqLcn5SRxC9mU3PlraXjgwn50hMZz5HvaG 5+dmQL5YxnDw8d+ukkiKgcLs+wfGt0mYd2KMN8Dxu/4PDZrAoZ6TwbqkeWPwGAN5Koze Ujyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710850483; x=1711455283; 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=X/5SCE+YKJOirNwA3/f09fx9quZW+d6lYGU9TacXX5f8FwqAQT7VQF729Y8CULa+iv +k2VOMt6XbKvIJI1Br6UCPoDfs/GRzahk4UPSd7hbzCFyVnn5WSQMvfXcU75gvzjxs+c 4QqYVKAVzOgRjmCHrpf9nCpCLIZvRiNBV9vYhp+/40sF2Cmv0PyDkOTLrgFbucu0d2FV CVr1bwqfSjt3Vx9ecTidOsTNLkK9k6toPKhI+k/I1zvSJJdc0SMpjoxqXrL5EfZFGQPJ K5r9oDIxlPUDGmTju8LRp0Ch7KkxhaupRVGE4+ueudWTVCt9Tdp4tWs3nnJrsDvGHh7S +MTA== X-Gm-Message-State: AOJu0Yyt+GUNWA+RqjiEQ0WfFSiEOM2jdmXcofPpWJ8OvjoSDH3MLtTn 70UMCp6D62QocwAuhll1O6qVX5dcuxUiMjt4i/GQi1GVS6GZ+rT8RuAer1Ovh0E= X-Received: by 2002:a5d:6582:0:b0:33e:7c9a:9368 with SMTP id q2-20020a5d6582000000b0033e7c9a9368mr9591324wru.63.1710850483658; Tue, 19 Mar 2024 05:14:43 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u8-20020a5d4688000000b0033e3c4e600asm12345792wrq.7.2024.03.19.05.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 05:14:42 -0700 (PDT) From: Caleb Connolly <caleb.connolly@linaro.org> Date: Tue, 19 Mar 2024 12:14:26 +0000 Subject: [PATCH v3 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: <20240319-b4-qcom-usb-v3-3-09ba1f86d259@linaro.org> References: <20240319-b4-qcom-usb-v3-0-09ba1f86d259@linaro.org> In-Reply-To: <20240319-b4-qcom-usb-v3-0-09ba1f86d259@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=owGbwMvMwCFYaeA6f6eBkTjjabUkhtSfjevPVn+P4tgmbj/nndu20tmxdQmz7wivffJtrjarx /xtDSEyHaUsDIIcDLJiiiziJ5ZZNq29bK+xfcEFmDmsTCBDGLg4BWAi6Z8Y/kf8O3Dwxdr4bbUd kl4HBM72v0+dlak0Z8sjniVW6b1LeYIZ/orp/SnjtZh8Q9xlxa2zi1UYl25dXOnw8iD357ktJ2o /NqwDAA== 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;