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 6387DFC72A6 for ; Sun, 22 Mar 2026 03:44:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 83D1383D71; Sun, 22 Mar 2026 04:43:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.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; secure) header.d=mailbox.org header.i=@mailbox.org header.b="jghtx45w"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A187483FBC; Sun, 22 Mar 2026 04:43:58 +0100 (CET) Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 947C282BF2 for ; Sun, 22 Mar 2026 04:43:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@mailbox.org Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4fdhx72ZgLz9tXW; Sun, 22 Mar 2026 04:43:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1774151035; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o4LgyZgNhHYr60dhnYemXTYa4Nx1JERd4FUJW6v8LVs=; b=jghtx45w+OTZWP5+/ym9sX49IiknIASdqqZKAE7cQTth6eXyojXat9YHITArg066aM+wR+ 58Lf6CTK2F2FH/hYqyz+I6bKmwMdWIstb6FvyRRhFkwrbbAqPWZJwlYNsTDIdzhNfCwmB3 VkxSKuO+/oaTDXIXjEppPQ+4iZVcDbselsrMzgnGk1ca577iwMN5U9nti6pinEzrBkN2z9 KpMSvKPJYGDKHND4YUT3UTSwPqEiWTLFdVy5GDlXl4euv/6PSqSyb7GFsXBbFdQCpb6XHB THlcsbV0u9BOGS8m8sqQTAbpRhzK7nrAJ1wcvoRCdLl6KktDgUm+w4WDz5N4tg== Message-ID: Date: Sat, 21 Mar 2026 19:50:24 +0100 MIME-Version: 1.0 Subject: Re: [PATCH] usb: gadget: Move USB_GADGET_DUALSPEED to be slightly more visible To: Tom Rini Cc: u-boot@lists.denx.de, Mattijs Korpershoek References: <20260317012433.4162524-1-trini@konsulko.com> <20260317134107.GR502704@bill-the-cat> <20260318012649.GG502704@bill-the-cat> <20260319133952.GO502704@bill-the-cat> <20260320135305.GX502704@bill-the-cat> <03a11b96-88f4-4ca0-9705-0bfe8409ee6c@mailbox.org> <20260321173453.GG502704@bill-the-cat> Content-Language: en-US From: Marek Vasut In-Reply-To: <20260321173453.GG502704@bill-the-cat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-META: x6fh5ufmg79njqy9unowm1cpdeikm73i X-MBO-RS-ID: abc054917deb61c818a 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 On 3/21/26 6:34 PM, Tom Rini wrote: > On Sat, Mar 21, 2026 at 02:53:13AM +0100, Marek Vasut wrote: >> On 3/20/26 2:53 PM, Tom Rini wrote: >> >> [...] >> >>>> @@ -371,3 +367,11 @@ config SPL_SDP_USB_DEV >>>> so it can be used in compiled environment. >>>> >>>> endif # SPL_USB_GADGET >>>> + >>>> +if USB_GADGET || SPL_USB_GADGET >>>> + >>>> +# Selected by UDC drivers that support high-speed operation. >>>> +config USB_GADGET_DUALSPEED >>>> + bool >>>> + >>>> +endif >>>> " >>> >>> You don't need to guard hidden symbols. >> >> We also do not want to expose this Kconfig symbol unless it makes sense to >> expose it ? In fact, if the symbol is not available and someone attempts to >> use it in Kconfig, they would get a warning, which should provide a clue >> that they are doing something wrong ? > > It's a hidden symbol, so it's not exposed to the user. The problem is > that today someone is getting it wrong as you suggest but it's hard to > trigger a warning over it. That said, your patch also fixes the problem, > so: > > Reviewed-by: Tom Rini Can you send that as a V2 please ? Thank you