Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp142337pxb; Mon, 31 Jan 2022 17:39:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJximOCxtl4zY/1nkU/PSrBT12zULwQTsGnx91qTc6ZGThBiHhgEk8alkFXMurgTLkqqz2OS X-Received: by 2002:a17:902:ab88:: with SMTP id f8mr24329151plr.27.1643679562835; Mon, 31 Jan 2022 17:39:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643679562; cv=none; d=google.com; s=arc-20160816; b=rkSJ8jFrvdBFnQE4Ne69oA8Uewyc1j0Dt5+023pxDTlfSnolXb0tnqGgrbdrs5AV05 adHTcwp76bPN4ZajVO2AmsO/DdHiX4fESx9jL9nbs2ULNc9yjCa+nz3FXC+ym9E5XhsO 9oCe9JDrnWCbvpD0sUD/mN/8wyYDTZsku30DDVNgddnebQqdMXdnRxvtaWrrlTF2/8CF qcNjXLesnjUrdBJKYr3ANNM5uK+gXa4Ds3WIX/DlVIjg2RaRHRbJTpo28ZUzyhh0NyQL f33mHUtuYlg9Mix3+YzVAZaKjSTyOxiFH24ODnfy3+FzQoE6NdrSKAouTcAyTK98VqK5 ElsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=M8KppXZwkQSQWhLcBO/fg1G7bhttmzdUMDjxY3POSRc=; b=ZX/3J1eUIxBvICWfC3ibsIv6G9n7k9SQ3b+Yh9h2Eq3YvvkLwTz+UO8xMY/s34qAIs h61CuIF8M6ZaaFBhpQdeQphqpBEaVSfBy2A7VI4oR2A5/HAgRjAxBslfq73L6rdZSggR INYfk4X53cIHnnBc7FVZTAN8XlXGjA6kc6XdktvVXDFQITijQnInSKioJHOj+TF3kSJ3 Rq002D4JzJXmenUl7zCfpIs9A/Li0TohVjCyohSmoa2crOzLW41X+SZxLgr6XmBP44eD q9ZYDLKWLYzR19wjkwnq7hL0C/qcGsy0LL22s52V/51hZFZnWJF/Qtv8anNXGvYzmh1x gnHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="KYcUA2p/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw12si1116807pjb.174.2022.01.31.17.39.10; Mon, 31 Jan 2022 17:39:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="KYcUA2p/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238268AbiA2Kc1 (ORCPT + 99 others); Sat, 29 Jan 2022 05:32:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbiA2Kc1 (ORCPT ); Sat, 29 Jan 2022 05:32:27 -0500 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE7EC061714; Sat, 29 Jan 2022 02:32:26 -0800 (PST) Received: by mail-lj1-x230.google.com with SMTP id q22so12524378ljh.7; Sat, 29 Jan 2022 02:32:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=M8KppXZwkQSQWhLcBO/fg1G7bhttmzdUMDjxY3POSRc=; b=KYcUA2p/u0YUGwacjhosNfy6/MHCmvfyLeV7o9hkVTyZtzJe9N4W9DkjAJHmHCBpbD 4xcRPkZhMgS8zZsVFRqMRgjSJXNI3paToeVAX5Y6l5md3kVF3gejygqPx2A2fZx04Byy 0K28Y0EXQMvRSypEcGq780su83T2Wlkw5hvbhl2/J6dd7nyDdSvc2fhkQT+hKK0m1j37 uKGKAKDjt3HcHeuxtVUF4bfKWvElYsXUHBzFAs57ATbc4pPTXj/PqBAMjox2t41y1Eh+ YLDv/7FbANJF4pXnbMXEmw5hhHi1q+7ncSVFZrjRuFUOVG/mBa+YO6AUK0wKx7kf6qp2 Tkrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=M8KppXZwkQSQWhLcBO/fg1G7bhttmzdUMDjxY3POSRc=; b=MUiqOU0o31L9+yMjoATN5Z/E5WdslIjfz8ew7CsWeFNXtw0Iz5qbyIjPRniQdsZlH9 /ETFffdnEpWMJe3bamXVzIkEM8IOtPzEYPLqNTM1/63YVxuFCGfHlCxvR0fuRA4Q6QVC 4npFvetjfQWJfl50dtQKC7r0nXz2metnd8u1MHOl0AzXP7+4pexRfkILPyQ9KGL6IIuK c1/NeJi1Q3JntOyZJIvtJbKPszAZdtA4VDxPcHJbdIIFMhkMbR9jFjeno4YVcP20unlD C6XMVNoZEDEXwYTzAD57u61hXP2LZf2ByHC3ZTY7UWIUt8MlsJj64qq3c29hqGz9Bx2b Zq5A== X-Gm-Message-State: AOAM533/J6UkAc/46WlreFDnixaec2Yfbv1qXhmslqbSma8x6XLCu7ba +5QgT1LQkspUFiS0I1EnB3SzzV89dk8= X-Received: by 2002:a2e:9594:: with SMTP id w20mr7906708ljh.448.1643452344673; Sat, 29 Jan 2022 02:32:24 -0800 (PST) Received: from [192.168.1.103] ([31.173.86.18]) by smtp.gmail.com with ESMTPSA id s18sm1705138ljs.115.2022.01.29.02.32.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 Jan 2022 02:32:23 -0800 (PST) Subject: Re: [PATCH v2] usb: usb251xb: add boost-up property support To: Tommaso Merciai Cc: linuxfancy@googlegroups.com, Richard Leitner , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220127231437.10893-1-tomm.merciai@gmail.com> From: Sergei Shtylyov Message-ID: <978bc09c-b963-566b-8fa4-a53f1e5c569b@gmail.com> Date: Sat, 29 Jan 2022 13:32:21 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20220127231437.10893-1-tomm.merciai@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello again! On 1/28/22 2:14 AM, Tommaso Merciai wrote: > Add u8 property to support boost-up register of usb251xb hub. > boost-up property control USB electrical drive strenght Strength. > This register can be set: > > - Normal mode -> 0x00 > - Low -> 0x01 > - Medium -> 0x10 > - High -> 0x11 > > (Normal Default) > > References: > - http://www.mouser.com/catalog/specsheets/2514.pdf p29 > > Signed-off-by: Tommaso Merciai > --- > Changes since v1: > - Fix patch as suggested by RLeitner > > drivers/usb/misc/usb251xb.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/misc/usb251xb.c b/drivers/usb/misc/usb251xb.c > index 507deef1f709..b60ab148e6ac 100644 > --- a/drivers/usb/misc/usb251xb.c > +++ b/drivers/usb/misc/usb251xb.c > @@ -543,6 +543,8 @@ static int usb251xb_get_ofdata(struct usb251xb *hub, > if (of_property_read_u16_array(np, "language-id", &hub->lang_id, 1)) > hub->lang_id = USB251XB_DEF_LANGUAGE_ID; > > + of_property_read_u8(np, "boost-up", &hub->boost_up)) Isn't it hub->boost_up left uninitialized if an error occurs here? [...] MBR, Sergey