Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2734990pxb; Mon, 31 Jan 2022 03:12:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3jyp78SsJtTyl0LawM45hgg+gY/Ntvdagzwc+i3lVHAGA0g8shACQ0PbB3yUSdLm1TS23 X-Received: by 2002:a63:6ac1:: with SMTP id f184mr16150685pgc.524.1643627535455; Mon, 31 Jan 2022 03:12:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643627535; cv=none; d=google.com; s=arc-20160816; b=X1BqX9NIu+Kjq0Trw6L41VfWqgDz0sPkH/dwnhCx95OvYQB8lOxyyYYRe9ZAeCFMUV re1D9ecFkTEsQfrDvdCjhxfZh6hX+sGpzh96sUsNqalY15jFcR88QfmRwiiYyZWe8qaJ IuSUN5UjNpDjEQJMG15z5XzVYFcCZMHooUU4QF1DLNwLAY1jhCfm5bfjcQIgCC6xvk7H LptV5AvO0NoAPOZhqc0Bz0wRQyas5+ongQF7dk8NtT3f1ENTjGwp57Aw+dFJc73lh4JQ YOUcQbeIpKRuYBwo2372r+XGsikn8O6byM0/gaiX0QPZODtPmKKV4FXhwXsrmp4zgFI+ 60Qg== 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=KHs6ffmXoNgB7PgAET8KZkcoI47YhdLdQfWEN1wdVIY=; b=LEvzaSr/k1uhnkd7wMMSHu9UjBGz12EudQbS0EkLGXVeK/brRGts5lONZRvuXb1sZ0 6urq6U06Yd1kWv1BnqGI64+n9/xMGzm542aKpbLMqI5Isd3F0mCIbXLNmG4PUExgq3Bk iQR746OhcCTn74eza26Q+OkDBxQAIZXGEj2IL5UlYbNAI1LkB+hlWN4a6Au1nb3cK6zJ 67bcSOp2v3I8jURur0TDnApdg/eaXNpeLnUfF8WGshhvk4pXMjtAUH6QG6QMH1b8By5m JxTTL0T61NJC9ismBim/O92k5fz0JPCz86D7+Fv7v+CwyERiLPNL5AEoe6l2AvBSUpTj Pr2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EGy5kBsZ; 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 g64si12499110pgc.64.2022.01.31.03.12.04; Mon, 31 Jan 2022 03:12:15 -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=EGy5kBsZ; 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 S1349570AbiA1Pba (ORCPT + 99 others); Fri, 28 Jan 2022 10:31:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348350AbiA1Pb3 (ORCPT ); Fri, 28 Jan 2022 10:31:29 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4CAFC061747; Fri, 28 Jan 2022 07:31:28 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id b9so12486952lfq.6; Fri, 28 Jan 2022 07:31:28 -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=KHs6ffmXoNgB7PgAET8KZkcoI47YhdLdQfWEN1wdVIY=; b=EGy5kBsZs7mue/dnKJkIJKYEb3NQuujucP9629Oezmt3hmr2Lda276tchLhN/H10cm hSTdd88xh4xET4rO+9cz4tQYS8wqjSGbq9JQp3ayfHKoHp6RllbhpLfwA9/WieAp8Tu4 YG7RyoNJz/fdrgUu+ym8BUjRayCPZbZMT5jVMJFll74/40/smf4liERf4Owi7UpMCfmp v1Y4AEREiPkDhWkBoKFU2J3Gi5G2838nldCF++lrZUyftLFNQMNkyzPtUO35hnzhCOfz Y5+01YB4OO9SyWNPSfjTw8C1+FN/UXmCue4UiGMXKwoO3l8J/8EPp4YXhGO8Bo02eNSA l06A== 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=KHs6ffmXoNgB7PgAET8KZkcoI47YhdLdQfWEN1wdVIY=; b=4IyRYXe6jAxtrM5xjlocPDt4hvCVWPOxI0ZEKYs0+OFxKWlidPhxNFOqQCE44eMOdg Atx4Uc3/eyKEGUU4LJEDpgj6gVjvoxVTZLdSZj8qVRIiyGbcRNQ9aNsq5qIi5VVTWK0y 69KA9YRPlD4mMtpCjVrws78ODTAg7KF5WlY3mIT4gTasryuIb3CKuM4nvwCVExUnCFNY M6qp54LSOZY0rhtjvAnjMYqAaJHqhbKJfZ7KjUI7KdXmidiRkw0kNfZZ/hNlDHcNRNYu Y7lmSb/g/1kng+ej7sIXxeDMxAOSH+IC257J1QEw+ukPzaaONX8UJPggnpJ4y1Xn7Vay KWAA== X-Gm-Message-State: AOAM5326Ed3QEvZ8UFGksjowgWH5tOOKJn8vv3zxMkpEHMYT90w4L2wN I0m6/V2JiGzHbXpom8gJw+cG9plyHPo= X-Received: by 2002:a05:6512:12d6:: with SMTP id p22mr6686448lfg.231.1643383886725; Fri, 28 Jan 2022 07:31:26 -0800 (PST) Received: from [192.168.1.103] ([31.173.86.67]) by smtp.gmail.com with ESMTPSA id t6sm2570898lfp.128.2022.01.28.07.31.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Jan 2022 07:31:26 -0800 (PST) Subject: Re: [PATCH] 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: <20220121232612.7283-1-tomm.merciai@gmail.com> From: Sergei Shtylyov Message-ID: Date: Fri, 28 Jan 2022 18:31:25 +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: <20220121232612.7283-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! On 1/22/22 2:26 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 > --- > drivers/usb/misc/usb251xb.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/misc/usb251xb.c b/drivers/usb/misc/usb251xb.c > index 507deef1f709..74fd8ac0c303 100644 > --- a/drivers/usb/misc/usb251xb.c > +++ b/drivers/usb/misc/usb251xb.c > @@ -543,6 +544,12 @@ 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; > > + if (!of_property_read_u8(np, "boost-up", &property_u8)){ > + hub->boost_up = property_u8; > + } else { > + hub->boost_up = USB251XB_DEF_BOOST_UP; > + } No need for {} here at all. [...] MBR, Sergey