From patchwork Tue Jun 18 07:55:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 805202 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:144:b0:362:4979:7f74 with SMTP id r4csp80693wrx; Tue, 18 Jun 2024 00:57:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUuksT3su8jcJOkOZnJMsEgOAce7m+PMzbGXWNVjQRxYeZVswhmM1XWEua16KPRio+FRoP3utqoP6u3mB3O4ynv X-Google-Smtp-Source: AGHT+IGpEvDmdFQy7izhREIaz3r4IRZGmRpPnxcFKPIhC42XLuK07kyayVXZkNbHKVc/VCFHG9vs X-Received: by 2002:a17:906:b890:b0:a6f:1166:1b86 with SMTP id a640c23a62f3a-a6f60dc7fccmr771073666b.53.1718697433623; Tue, 18 Jun 2024 00:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1718697433; cv=none; d=google.com; s=arc-20160816; b=VynZsMZiZS6JCg/i2CpaGuvfUpj3yuKoarA38V5stK0DAtMJWOeubOA8n3fxre5/pw xdyMJvqMnuHUm8oi/VZlee+OCiX/N5L9+KCjZsp41NTn4vm5C72zwptMvy1cVUgIaG31 sWnofE41uFdLQUOlgvTNbjhI24Zu+OezwJ6gBi161b+IEPxZElzoFxV2I+4mEd6vOKIX rC8h7HAxELouwLa1pwXI4asstPxq1iMBYSbS4NtrNJtdumRpT/dzsXa/CFlw/aun4J6g +ANfMaa1lL24lyaQ0WjEoZtZlrZdRXZMU7BYomBgWTIOEzD5NJL3zUkAKm48uzeIIk2L dWhQ== 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=RTli4tgWHlPQpIu9XQZ3uNdUE/50JrdH1m+AlYJrngI=; fh=zvJoKID7+I9JTTaq6l9uN9N3QvlDMt0nxZ2059QwBn8=; b=TBhBmf8lKx2tzoRhIQ5RStBtFqaYCRzWghd3kep0RZMY+z3xq6Re+2vuaQZlx9WfZr UWrSrdEo0c88bZ9PudaE1+VoHN1uGknFnIZvfAa8Qm02TYB/6rjsPfn3siUJer/RI6bY Xjws3EDCwrmd8MjDB6ad8qTCzomMnEF/mfZh0NM7Qgj8RZY3aIZcJrKUcMhQhlR9bz5l 76IhGHpcotSb6JWClOPVJEnXV/bTa4UYOcK8OAYZsW5OuBFqpiYXwo6XYfQ2wx/2wTvM d1Y7R+ramG5pi+4WSnjv6kz3x97sThOIqZaPUNVi0s4XIuIULh7ByCnusCAPhCGJ/YEy uBMw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YGxDsr+h; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f88c53257si159808966b.151.2024.06.18.00.57.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 00:57:13 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YGxDsr+h; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 3918B88538; Tue, 18 Jun 2024 09:55:39 +0200 (CEST) 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="YGxDsr+h"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E9F4A88431; Tue, 18 Jun 2024 09:55:37 +0200 (CEST) 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=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 500A38851E for ; Tue, 18 Jun 2024 09:55:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=neil.armstrong@linaro.org Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-421bb51d81aso39044015e9.3 for ; Tue, 18 Jun 2024 00:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718697335; x=1719302135; 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=RTli4tgWHlPQpIu9XQZ3uNdUE/50JrdH1m+AlYJrngI=; b=YGxDsr+h+Q6k65UFHST2RMp3Y5V2a1aI4vA1PabpfuaOgzMxpKIU6eWnMjZiJW2Kkf WUXN31kZFehVXwHm5V1DFG28PmrON+2ysODpnf9rJP4wHGIBPtZMkqcUCDbN4Xax4MQO LIYH8rejgfHuWpLaA1MQXPGtc74CrJUusNFv8mP/aebwE9EoJgqkfq0aQf3Vn6XyC4wp qZh8pBalEDzBf8Ru1cH7mqCnnImZRrecP0ayBruKkIA8x/xtULxVXlQft/ebTMBuA7Mb poI3CbGdqKYGR+IOL6eveGzyWo5TTYuCGaKrTEsvL1gQ7uxkxuAr5kV6xnM6zZG4A7Ez xnrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718697335; x=1719302135; 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=RTli4tgWHlPQpIu9XQZ3uNdUE/50JrdH1m+AlYJrngI=; b=DLFCy2P+zOgCA90VyhhFamCRcKfbobizqgYiotwQsj65hmYNUpXHFJAw5BCJ15dW7H 7WLFD5IFlDg/KMTQyiXett/F04c/6RxwlW2a7XHUpOkTk45MVrhXf63TFftPqOoNvN0t /YkuneDsJr+HJPBMkS2g3Yr6Q2WruTms/MQH2bLeb2tjBb7AHPjkxlppasuz0L+FSTHU aHMnxM55sQa2bIhVqVvZAWSLHpokdcuQj/vysHu9Ezt0nB9T52OaKkYD/8cY4/VPHiwD M3ZLGzGzcn/ciJN0BmydpnvmcCy8rVFqaSK0ptrawlrFuvqWVUG1+x86VIcvql+6rQTe igBQ== X-Forwarded-Encrypted: i=1; AJvYcCWUwU+y5f0P90pkF+AxGkImPLPavFNch2r+YTaDzoIMMPS4J3WkY0BXB7XwEfnBrM0859KWarJaXiQLcxZ3AAWEb/hP0Q== X-Gm-Message-State: AOJu0Yy8hzNK1J0KtxX8TVwBs0BZ3FnC2XhxNJ+s5Xt1V6rjv28mFseV Fo1RKhCvkTgsAfm1NyfHLfHtg8w1TIzGxTrtRJpMXndEkqhb8R01gU61fOEQq9UUNUYJOjvdgEL eEBw= X-Received: by 2002:a05:600c:4213:b0:421:8188:d394 with SMTP id 5b1f17b1804b1-42304827504mr96861035e9.12.1718697334722; Tue, 18 Jun 2024 00:55:34 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-360750934a4sm13523173f8f.10.2024.06.18.00.55.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 00:55:34 -0700 (PDT) From: Neil Armstrong Date: Tue, 18 Jun 2024 09:55:29 +0200 Subject: [PATCH 5/5] usb: dwc3: meson-g12a: drop usb.h and make dwc3_meson_g12a_force_mode static MIME-Version: 1.0 Message-Id: <20240618-u-boot-usb-gxl-phy-set-mode-v1-5-6b41efa46e35@linaro.org> References: <20240618-u-boot-usb-gxl-phy-set-mode-v1-0-6b41efa46e35@linaro.org> In-Reply-To: <20240618-u-boot-usb-gxl-phy-set-mode-v1-0-6b41efa46e35@linaro.org> To: Tom Rini , Marek Vasut Cc: Mattijs Korpershoek , u-boot-amlogic@groups.io, u-boot@lists.denx.de, Neil Armstrong X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1436; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=PPsS7D8TEBBrAwE0wIAH2nzaqsk2E8ByOhmeHE8CZe0=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmcT1xcC3qXrhLwUmGIga3U/hl9c9wRXnwaefc1Gv3 uhiBmLSJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZnE9cQAKCRB33NvayMhJ0aLAD/ 9Fpl0hd9IOOyEtmNP8iTqTKddD3QniFiZsTNQt+83sj+OZgAZfb21yaiydD357FC5Dd+Sr7TrWyChC mG3bQG/Nn4quioVjmmAANjV6pTv4yRavTt8UhXxLCB8WsKFqIy2D+BR7+lT4amYOc/fiYsvppBcN/L pYQUk/roMFEEuHC5aEDuai9icGOPxXxEcfhRUcu0UpiLWlpLbaT2GcYGz/rPEV6dP6SYFZAZpcojTX QTUhaAC/Ew4L/ENGaqeVhK7W4JISrrd4rK07C5pJicfxYLGnhGRCsz4GzDh3DD6GApgghgGhDgWUxz 0/MIrtqqTXbyXQimKuLKIPiJn6frbNIYoTlCANJ9fvEi2tadBMQI4tTbH+X1sSgJQiLRYoJ1aXTN2q y1Pi4eps694P2DFWLNA/GwPaHJ57rldoj5s1vmT+53lamXXea9H3OR6ucXDnQjID8nNxylYeUbqaZt CtAAq1HDdF4+yMWpkUDL0YGBKEHAQlwZD9fouQiOmifEAm/B6w1AFMRWJZhRWd+rA4TQdMRNXEQpsv iRRq9Cugnnibtr22jNacJuOR/J4qqZyhrD+4zZErWgeCx5oHdsM8pd2cA7l6fJhFJAzES5NCfGxiuD Mg/w+rmSpTa2uJtooHjDs4axd/oKnFFpqmUFVkuh6yh3IZ7L6t/4dWF1PzVw== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE 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 Drop this useless usb.h and now make dwc3_meson_g12a_force_mode static since only used in the dwc3-meson-g12a.c file. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/usb.h | 12 ------------ drivers/usb/dwc3/dwc3-meson-g12a.c | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/arch/arm/include/asm/arch-meson/usb.h b/arch/arm/include/asm/arch-meson/usb.h deleted file mode 100644 index b794b5ce77..0000000000 --- a/arch/arm/include/asm/arch-meson/usb.h +++ /dev/null @@ -1,12 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Copyright (C) 2019 BayLibre, SAS - * Author: Neil Armstrong - */ - -#ifndef __MESON_USB_H__ -#define __MESON_USB_H__ - -int dwc3_meson_g12a_force_mode(struct udevice *dev, enum usb_dr_mode mode); - -#endif /* __MESON_USB_H__ */ diff --git a/drivers/usb/dwc3/dwc3-meson-g12a.c b/drivers/usb/dwc3/dwc3-meson-g12a.c index 21e4f637bb..41d15996e5 100644 --- a/drivers/usb/dwc3/dwc3-meson-g12a.c +++ b/drivers/usb/dwc3/dwc3-meson-g12a.c @@ -270,7 +270,7 @@ static int dwc3_meson_g12a_usb_init(struct dwc3_meson_g12a *priv) return 0; } -int dwc3_meson_g12a_force_mode(struct udevice *dev, enum usb_dr_mode mode) +static int dwc3_meson_g12a_force_mode(struct udevice *dev, enum usb_dr_mode mode) { struct dwc3_meson_g12a *priv = dev_get_plat(dev);