Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3264299pxb; Sun, 20 Feb 2022 14:27:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKnfbHcIBTH8e4qoRmllbgGR2D0BGXFIZxXmhbHknCe0vK2itdm2EiKAQaGqEFQRVE6NqZ X-Received: by 2002:a17:90a:ce08:b0:1bc:16cb:343d with SMTP id f8-20020a17090ace0800b001bc16cb343dmr5913259pju.158.1645396046530; Sun, 20 Feb 2022 14:27:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645396046; cv=none; d=google.com; s=arc-20160816; b=a/LOaYI76HgyGuZGZpfDTZ+qk2LdeLf0LeUlojwYcoAk9D96AGPDn77hcra7+TSO7W pcnUeXp0B1ppaN5EMN/BdJmkp4qf5+n04cP+GqhtaISPEzDK6ZJCyfxB3C0m5f+KGxpO 6alo6hBjHUfB3fFsVuEUHtmim4R5wv5/LGIgKoUjubXfe63b242vdIXI+lorDfzGa5BF rWO7ggdQJqXNbHsFlze7nnfy2CkpJXJeHQRwUye7srts2SyUvWkrIQQJTqmaUWNml+oH 13f9JdLCqGYZKzAMa7eqq0DI760P9geb42tnlMalAcxdfqIIwsH9+N3/Iyj+08lUgLNH jYOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ahewP9Amea1IAZyXkPa1BpuDrsJmNgyblVNTj6DRwL4=; b=VFu/H8Hq6HYP0GzORxKYFLHkAzQ2URVOLnwFgNMNjLUcBrcB/M1yUykClMCY/qJ65O nvA7jf/baT8GDdNTUa1tMzEJjp5mPBaj/tlsi0t7kNCqsKzet8+2jgxnj9A7tLg9TLGo VEgWYqlmBdVWMAPJ4jMsz7XTa8KeWCKrBNaNOqIlpAcnm5t9bAWC4SsP3GOtOvy6yPD1 F9QPHEd9o/O06/qhROMsodbg34QZ2R0Xn1v0sshqt9ZAfKaz9md7g4VX3eyo2YAb/ZMU rwHldmb7FV/aLiVCmdsUYhu8rOzANby3E+Vl15QuPq3wsY14pjfrCHpDhhGPyfEynmh3 MHxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 66si7134786pfx.22.2022.02.20.14.27.11; Sun, 20 Feb 2022 14:27:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243913AbiBTKNZ (ORCPT + 99 others); Sun, 20 Feb 2022 05:13:25 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbiBTKNU (ORCPT ); Sun, 20 Feb 2022 05:13:20 -0500 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F9324614B; Sun, 20 Feb 2022 02:12:59 -0800 (PST) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 5AC6E1C0B77; Sun, 20 Feb 2022 11:12:58 +0100 (CET) Date: Sun, 20 Feb 2022 11:12:57 +0100 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Tommaso Merciai , Richard Leitner , Greg Kroah-Hartman , richard.leitner@skidata.com, linux-usb@vger.kernel.org Subject: Re: [PATCH AUTOSEL 5.10 04/23] usb: usb251xb: add boost-up property support Message-ID: <20220220101256.GC7321@amd> References: <20220215152957.581303-1-sashal@kernel.org> <20220215152957.581303-4-sashal@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lCAWRPmW1mITcIfM" Content-Disposition: inline In-Reply-To: <20220215152957.581303-4-sashal@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --lCAWRPmW1mITcIfM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Tommaso Merciai >=20 > [ Upstream commit 5c2b9c61ae5d8ad0a196d33b66ce44543be22281 ] >=20 > Add support for boost-up register of usb251xb hub. > boost-up property control USB electrical drive strength > This register can be set: >=20 > - Normal mode -> 0x00 > - Low -> 0x01 > - Medium -> 0x10 > - High -> 0x11 >=20 > (Normal Default) >=20 > References: > - http://www.mouser.com/catalog/specsheets/2514.pdf p29 Should the boost-up property be documented somewhere in the kernel tree? We normally do that for device tree properties. And we normally have properties used somewhere in the device tree. What is going on here? Best regards, Pavel > +++ b/drivers/usb/misc/usb251xb.c > @@ -543,6 +543,9 @@ static int usb251xb_get_ofdata(struct usb251xb *hub, > if (of_property_read_u16_array(np, "language-id", &hub->lang_id, 1)) > hub->lang_id =3D USB251XB_DEF_LANGUAGE_ID; > =20 > + if (of_property_read_u8(np, "boost-up", &hub->boost_up)) > + hub->boost_up =3D USB251XB_DEF_BOOST_UP; > + > cproperty_char =3D of_get_property(np, "manufacturer", NULL); > strlcpy(str, cproperty_char ? : USB251XB_DEF_MANUFACTURER_STRING, > sizeof(str)); > @@ -584,7 +587,6 @@ static int usb251xb_get_ofdata(struct usb251xb *hub, > * may be as soon as needed. > */ > hub->bat_charge_en =3D USB251XB_DEF_BATTERY_CHARGING_ENABLE; > - hub->boost_up =3D USB251XB_DEF_BOOST_UP; > hub->boost_57 =3D USB251XB_DEF_BOOST_57; > hub->boost_14 =3D USB251XB_DEF_BOOST_14; > hub->port_map12 =3D USB251XB_DEF_PORT_MAP_12; --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --lCAWRPmW1mITcIfM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmISFCgACgkQMOfwapXb+vIfPwCgiRbG5/YkD82ahvEKxpNruxsN /KUAni/lKCLt5eONZbc+NqccFx5/ndlj =18nN -----END PGP SIGNATURE----- --lCAWRPmW1mITcIfM--