Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp226009pxb; Tue, 28 Sep 2021 20:15:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwINtQ/ipeq8fKi4qblP1FbteOhoymV0QrkXreGuvqqSFh2OAmvWL9AEuuTRw39+kMf8dfA X-Received: by 2002:a17:90b:17c1:: with SMTP id me1mr3933832pjb.28.1632885319314; Tue, 28 Sep 2021 20:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632885319; cv=none; d=google.com; s=arc-20160816; b=nTlfuYDbWXfLqxl8Q8NgJ2JpGGhx6Pux4WR6BmxhqHW/xRtg7YTy0Lg29/RU7hFOkG 5Kk+aumAurThXNaEBXTRw7sB75KwTGIMGYWb6HPDEzbAgYgPNfvCp8tgSbFwugQ8x2SL +dcTBmVsuGmo4T2QdA2vqWcUAS0Ho6Ogbk6aCKBKa0FIn2J3eIUPv2i819iksvnQMtwF 3daq77lg9VASWlRVtiKuoSEJpTakT5c7IljV8pDDFvpjlz2QSq0BSfIO/AqiAik84yyL L9s8cLW5//amT0bpT8FwGi5uVxtK1fVuQenWk5K+0RqO8vJ3u3A/qzH1NnVkWgTcrcks MF5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qAmijYBqzI4m1WE+A0SA6dIDsY7eopxWVBbbWp1FGC4=; b=wOf9Nl2suJ4QSyO+uD8psDxkR2eVCnSFUGihwwjSHzjmdbHK0kqJ/aGO6NDMtlsDjf mVACKjs66p0fDKYoWcm/F1B+5QvLgb6JqLYaBAqNraMTKQi4frscv8nVjsQbEKXkGee8 YOwp0Q6gOYhLrGMynD5cAaBhNtwV9LdiHVW9gSYmR16jVoiyHwr/5wTfSJr+cSWlmdqT foefFfH3oIlOVIp0WmzDO2PKDrp1HVt0EL4AyIjCRz57TtYeZWvOoz+eMXXq5/iy95D0 Qhv6eDZCpkjtM3KFxqrGNHzcQQzKLOPG2f+ACeUyaoUsz3hLKJAwksXJERe2xcmUv73c pQJQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c9si1233349pgq.163.2021.09.28.20.15.00; Tue, 28 Sep 2021 20:15:19 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243813AbhI2DMt (ORCPT + 99 others); Tue, 28 Sep 2021 23:12:49 -0400 Received: from mx24.baidu.com ([111.206.215.185]:46174 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230022AbhI2DMt (ORCPT ); Tue, 28 Sep 2021 23:12:49 -0400 Received: from BJHW-Mail-Ex15.internal.baidu.com (unknown [10.127.64.38]) by Forcepoint Email with ESMTPS id F090134BA411A96D99A6; Wed, 29 Sep 2021 11:11:06 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex15.internal.baidu.com (10.127.64.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 29 Sep 2021 11:11:06 +0800 Received: from localhost (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 29 Sep 2021 11:11:04 +0800 Date: Wed, 29 Sep 2021 11:11:02 +0800 From: Cai Huoqing To: Andrew Lunn CC: , , , , , , Subject: Re: [PATCH] net: mdio-ipq4019: Fix the error for an optional regs resource Message-ID: <20210929031102.GA2262@LAPTOP-UKSR4ENP.internal.baidu.com> References: <20210928132157.2027-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex05.internal.baidu.com (10.127.64.15) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) X-Baidu-BdMsfe-DateCheck: 1_BJHW-Mail-Ex15_2021-09-29 11:11:06:937 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28 9月 21 15:31:39, Andrew Lunn wrote: > On Tue, Sep 28, 2021 at 09:21:57PM +0800, Cai Huoqing wrote: > > The second resource is optional which is only provided on the chipset > > IPQ5018. But the blamed commit ignores that and if the resource is > > not there it just fails. > > > > the resource is used like this, > > if (priv->eth_ldo_rdy) { > > val = readl(priv->eth_ldo_rdy); > > val |= BIT(0); > > writel(val, priv->eth_ldo_rdy); > > fsleep(IPQ_PHY_SET_DELAY_US); > > } > > > > This patch reverts that to still allow the second resource to be optional > > because other SoC have the some MDIO controller and doesn't need to > > second resource. > > > > Fix Commit fa14d03e014a ("net: mdio-ipq4019: Make use of > > devm_platform_ioremap_resource()") > > This is not a valid Fixes: tag. > > Add to your ~/.gitconfig and add: > > [pretty] > fixes = Fixes: %h (\"%s\") > > You can then do > > git log --pretty=fixes fa14d03e014a > Cool, it is a great help to me:) Thanks, Cai > and get: > > Fixes: fa14d03e014a ("net: mdio-ipq4019: Make use of devm_platform_ioremap_resource()") > > Which is the correct format. Don't wrap it, if it is long. > > Andrew