Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5482719pxb; Wed, 26 Jan 2022 13:06:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXuXTuLsnfQfcb280wEZ9Mbc808n9faw/evYLyHHLgmVleSBG2vjGcPX1PdrphFXGJ39i0 X-Received: by 2002:a05:6a02:20c:: with SMTP id bh12mr539504pgb.308.1643231163990; Wed, 26 Jan 2022 13:06:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643231163; cv=none; d=google.com; s=arc-20160816; b=NUFkz54uE45Y2sDweozDWXHO0M6L3OMn9Oi6K2J3esLrr1fwkEwNaDw4CK/GSF/Ary Df3SCWK+RG7TwJWJDJtpfmJIHALMKFzhhGjEoaIu2MBsIXqlRsxcN3eVSZJCtfpAzKea nQompp2jNNbqEXElJSg30dO7QI33g4MZoffq+Q/ufdppgY8fdUle0LRo0riKx2gDPbM/ Hc5MNP4z87wrr0Kd0w1csjs4iSfu6wWzoKRZrfB43tXj1DCgDpGf2WeEMEuNgS9BxTXv eM82rKB85Q6gb6ozrE87AiNwfeM132HNHGJ+buIpqTg9uIdyuj3OlIwOZ6ecXaDeHefo XxEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=qyOXoduJ2bHaO5aL7+BKqU4P1nLJ8Yfo/nYcftstQHI=; b=MgsDma4EFVdgcfl+1bTY2u5zpTltBSxCtaRywXQDdjnw4FuxsOMR305baZYxQOzKyn v0HZ2udMpBhdgFfOkNrREHdq/yaVYv2JajZQXJnlfu/eqk4O+NsLf3NChB8xrgV+FEG+ rWROKGeY8AsGDyHTxbkXLCtLYNrxOrh3xDDnZJH6816JyN/qtK6o21rtm92pfysAVHrk 31ePmHOpZ6tzezIvE8jowjrz4sdyVRKDt2AIAArsGIbf5fuPzMICxu+5xqbT3dId9c5w y/AB0zHLRfBTsn+iPCtfZq5NyRUrn+nqXrnFUzxrrQlXcpKmWB0UxuUOGVA0BDr0Js6B TdRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Aou75n6L; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z37si317585pga.610.2022.01.26.13.05.50; Wed, 26 Jan 2022 13:06:03 -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=@kernel.org header.s=k20201202 header.b=Aou75n6L; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240338AbiAZKye (ORCPT + 99 others); Wed, 26 Jan 2022 05:54:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233548AbiAZKyd (ORCPT ); Wed, 26 Jan 2022 05:54:33 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 365DEC06161C; Wed, 26 Jan 2022 02:54:33 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F3F00B81C10; Wed, 26 Jan 2022 10:54:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECEC5C340E3; Wed, 26 Jan 2022 10:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643194470; bh=zXGVW3VwZfxtH955/nyzBSwsLMj5oubdhnKlttWifU8=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=Aou75n6LThZjv5SpeuOZm+fom5lhyY0whllTbNWWkuCROQRtBsExup8mRo9mxJZCu yztplbbP7sNPHH8U5b/ddwSRK4Bk6YZFZOTyMToMDzyg7Hjp2DoyDdvBWorJ+WMNqS wgeApisoYAs+03masRLgBQn4yHETuTRyoDQWxKzXf0KIH1/1lcOH656BCQnm04TG/j W7aHjHvkweRaQ/shjLYrISkP/zjd4lrLw4UeS34JTzqW3W+X/zTtFbrezXZm+gnSTV eApeWmxe5ZVq9ux7pPUfJlmMEPoKLmevth/YbRS+GhGWbDAXls98p6xXfSQ1jX+7ko 5FRk7y6qN0R3A== References: <20220119002438.106079-1-sean.anderson@seco.com> <20220119002438.106079-5-sean.anderson@seco.com> <4696c5a4-5921-f7cb-196c-5ad956e696f9@synopsys.com> <3ca6fb9e-94cf-6483-26a6-ae2682d1f55e@synopsys.com> <2831e216-737f-41b2-1aa0-4af56615e3b7@seco.com> User-agent: mu4e 1.6.10; emacs 28.0.90 From: Felipe Balbi To: Sean Anderson Cc: Thinh Nguyen , Greg Kroah-Hartman , "linux-usb@vger.kernel.org" , Balaji Prakash J , "linux-kernel@vger.kernel.org" , Robert Hancock , Baruch Siach Subject: Re: [PATCH v2 4/7] usb: dwc3: Program GFLADJ Date: Wed, 26 Jan 2022 12:53:28 +0200 In-reply-to: <2831e216-737f-41b2-1aa0-4af56615e3b7@seco.com> Message-ID: <87mtji7onx.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Sean Anderson writes: > On 1/24/22 9:11 PM, Thinh Nguyen wrote: >>>>> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c >>>>> index 5214daceda86..883e119377f0 100644 >>>>> --- a/drivers/usb/dwc3/core.c >>>>> +++ b/drivers/usb/dwc3/core.c >>>>> @@ -348,7 +348,7 @@ static void dwc3_frame_length_adjustment(struct dwc3 *dwc) >>>>> static void dwc3_ref_clk_period(struct dwc3 *dwc) >>>>> { >>>>> u32 reg; >>>>> - unsigned long rate, period; >>>>> + unsigned long decr, fladj, rate, period; >>>> >>>> Minor style nit: Felipe prefers to keep the declaration on separate >>>> lines, let's keep it consistent with the rest in this driver. >>> >>> So >>> >>> unsigned int decr; >>> unsigned int fladj; >>> unsigned int rate; >>> unsigned int period; >>> >>> ? >>> >>> Frankly that seems rather verbose. >> >> A couple of the benefits of having it like this is to help with viewing >> git-blame if we introduce new variables and help with backporting fix >> patch a bit simpler. Mainly I'm just following Felipe's style and keep >> it consistent in this driver, but I don't think it's a big deal. > > *shrug* > > If it's the subsystem style I will rewrite it. > > (btw is this documented anywhere for future contributors?) https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting "To this end, use just one data declaration per line (no commas for multiple data declarations)" -- balbi