Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp481675pxb; Wed, 11 Nov 2020 08:24:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwappeIf+ik9QKnqtcNlmsXOFeCQI4sLd9mOe812kaN0zVX0cwaSEr1n+wjpDYEIRDBXiwE X-Received: by 2002:a17:906:9459:: with SMTP id z25mr26675174ejx.88.1605111853349; Wed, 11 Nov 2020 08:24:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605111853; cv=none; d=google.com; s=arc-20160816; b=XO9jCOlwiRkYrK7paPvPN3ubCDwTIqKt1/56HaoftGnj4/ai2aYdwcRNvg7DR3BBFG n3mJegI5jRBfouiKWeMaXSgc2uyMeD/TZqDnYhf5qmBLcZyA8SNu+6lutKL3Ra/IddnF gkeMTKqaZQZPDWqv542/eGaZPFETYwvcfPsICj89GsQT0CLByjYz1Sf8rdB1kpPaH1X9 +TQ5Ahl4LOpddSnc+uDHO4MHuey9FUdA3NxHEeneh518/Lz8GID/HucUtlCBk8pdRSM0 ObGYYfgAQuwkhBN5d7wGVmRy3byFs+ufJg2D8FC6jAfLgIlzIjqdxXvMzu/xF6nZdlBo eQOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=5kPajEKrS5cdGm9i0NKgFfGajVBzPZO6Co2wZTBIP6U=; b=RXz0f6GZSwdsFeKUcX5LtwOisks/YQCRZXExrRzqrkO1SoAdr3UPltxJjuKfzzcGxZ 2HWwJE6CRebaqvsBuT9/1/PvWpjcXvFxva0S/aeO9jq+KeJIT0WC8APa8ZGy2CNlshbL kVs2qX52oqFPKtyqIuR+8gReoZ/FwUvZvKlu8gAei2FaOFBQgHi4g3f+/ROgrDmb1WpQ 3W935BPTm6DPWLjLmIwswG0CKTQG+2/U/BlIw/zcJy5QCaNBke/w6Y20ehsT0cy419gw FC9Yuy51GacCxyCM9vl1djwqCmS1080vBYA6skcvWVdLurTJKkCI8xRmXNp2yxJWkua+ qitg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GlIVwKUF; 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 um9si1692096ejb.521.2020.11.11.08.23.47; Wed, 11 Nov 2020 08:24:13 -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=default header.b=GlIVwKUF; 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 S1726273AbgKKQWF (ORCPT + 99 others); Wed, 11 Nov 2020 11:22:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:51392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbgKKQWE (ORCPT ); Wed, 11 Nov 2020 11:22:04 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7F0CC20659; Wed, 11 Nov 2020 16:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605111724; bh=HAxtj1PVhA7gGIoHhM6mBjlHxkmTmNoqSrX04hzHLZc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GlIVwKUF4JBzPYHYMcpOYjNjEIllEd4V5s5D+OQC1EuklVOS3mTlAvZ+lxQI2VBve q01ITsB3lNED7KjdRzUqK1ccj9iBMUjV5ly5wQ4DZeQ35dsuojupyzdnsR4rZjCQf5 F0c7VoqbmqFWIyGPM67/MrN+s6T2+ijc15cdrTvs= Date: Wed, 11 Nov 2020 08:22:02 -0800 From: Jakub Kicinski To: Jisheng Zhang Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Maxime Coquelin , Philipp Zabel , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: stmmac: platform: use optional clk/reset get APIs Message-ID: <20201111082202.577ea1e0@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20201111101033.753555cc@xhacker.debian> References: <20201109160855.24e911b6@xhacker.debian> <20201109115713.026aeb68@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> <20201111101033.753555cc@xhacker.debian> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Nov 2020 10:10:33 +0800 Jisheng Zhang wrote: > On Mon, 9 Nov 2020 11:57:13 -0800 Jakub Kicinski wrote: > > On Mon, 9 Nov 2020 16:09:10 +0800 Jisheng Zhang wrote: > > > @@ -596,14 +595,10 @@ stmmac_probe_config_dt(struct platform_device *pdev, const char **mac) > > > dev_dbg(&pdev->dev, "PTP rate %d\n", plat->clk_ptp_rate); > > > } > > > > > > - plat->stmmac_rst = devm_reset_control_get(&pdev->dev, > > > - STMMAC_RESOURCE_NAME); > > > + plat->stmmac_rst = devm_reset_control_get_optional(&pdev->dev, STMMAC_RESOURCE_NAME); > > > > This code was wrapped at 80 chars, please keep it wrapped. > > > > I tried to keep wrapped, since s/devm_reset_control_get/devm_reset_control_get_optional, > to match alignment at open parenthesis on the second line, the > "STMMAC_RESOURCE_NAME" will exceed 80 chars. How to handle this situation? Indeed, it's 81 chars. Still one character over 80 is easier to read than when STMMAC_RESOURCE_NAME is wrapped half way through the name.