Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3471229pxb; Mon, 9 Nov 2020 12:01:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJylxHLmcgW5IKc8EABsx+M4tZmvaDtoVbcUJ7zZ1zG6WVehy9/jZjm0QXPpmva0wDsSn75R X-Received: by 2002:a17:906:1a14:: with SMTP id i20mr17450901ejf.422.1604952119566; Mon, 09 Nov 2020 12:01:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604952119; cv=none; d=google.com; s=arc-20160816; b=xycrBpv8vYX99Gp9pc3h13W4X1cyDFRom751gkJqzqnNQc0gnVseZD2ODcrt4Dylm6 hWja/ehJ4ldCorfGHF8kaXyiJvFcKipQ+arM4LAlkjOZy259o2leGm2N3EVpkC0Qg0L3 JwGtwTGe9zAm4Y/Rzdv3tz2MmiS+P8XrQ30zYLeeSPgq78rbXoKwZeL2+GEq9W4nUhY2 8rx8l7K9q2hFGQr7rNKGM9CZ6KdovfyAonev/xGuPdy5lRX/clJbNrua5Cy1fN6UoFgt aHL5ojPi2oShE9SuZ3WcjdfiehUgb9y5qclr8uQm5oDXtlrYAJu62rdYGvvAkaMfNCdC KTvg== 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=uE67Nm1XpQ6Au4sFZ+1PqfxghpUBLyPmypKBqguY84g=; b=Sggyv8pQ3unonY3AV8aiksnagmp06Tn92xNoI1ej83bBRUpyHHmzARllIJHkPxyqHK djuKMQXOLdA0Q/RkJdaSkisImANYA5Jn/VdVREzdMEtltFQ7CEj+sZasm02qxUpbcxYO HEVr24C/0q73ykBHgPFUQfR/BN9/XitNR4Dye8OOWGVekWYnb3m3360dUWTPvuX+VnAT neG4ffGWKmQNunhO1qCcudA8Glj+176LgKGqUxC8MFFgv54gYo9TAr//0spnmuPYVjrj CdW39na28KgnOs1uicHopDYHEBmJa6t75ro0nP7W+2U1qhc1gTRLgobco3s/Law+sbHC sdpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="WRjM9/gT"; 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 u24si7473333eje.619.2020.11.09.12.01.34; Mon, 09 Nov 2020 12:01:59 -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="WRjM9/gT"; 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 S1731230AbgKIT5P (ORCPT + 99 others); Mon, 9 Nov 2020 14:57:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:45930 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729499AbgKIT5P (ORCPT ); Mon, 9 Nov 2020 14:57:15 -0500 Received: from kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net (c-67-180-217-166.hsd1.ca.comcast.net [67.180.217.166]) (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 5E9E2206D8; Mon, 9 Nov 2020 19:57:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604951834; bh=hqgvKvqsLrWlJnRXYEC8bkCbRe/XLhQPjqC2IZq8Jh0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WRjM9/gTqlHnSklr6hkuYho/PC3pcAdQIdHg0iehe5/SprIyh7ThQeDKTnjOnF5r0 m3TXyp2ma4vLaERpehnDYDrLk8BfzZaFm1gl4632itLKU9i139xujTwKa0JY9QoZpR 4YpW+v8NFSNV0iXiXPZKQsdYbw5Y7cs5K0UDa9EA= Date: Mon, 9 Nov 2020 11:57:13 -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: <20201109115713.026aeb68@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: <20201109160855.24e911b6@xhacker.debian> References: <20201109160855.24e911b6@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 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.