Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4901447pxb; Tue, 28 Sep 2021 06:36:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw11gKrFPNpzoanjdDHaZ94xHhQ0pzxbCC7CO4pwYlCZzMTKwuDYq++dkoAHnFwrg+cmMA X-Received: by 2002:a05:6402:1551:: with SMTP id p17mr7571240edx.388.1632836191981; Tue, 28 Sep 2021 06:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632836191; cv=none; d=google.com; s=arc-20160816; b=1LJFT9Gs6u43CHf+fkA37XGu9xGZNtxMM/o+4suaH3O4nMzgnFnL0aBDdIQgboN7GR upRJu4KsOYtfkV4P9qErEF4BA9mFlChH7LPabm3JIe+31/uMn0s5MYQdVuz0nFo8eP6Y U2WZg2UFObGSb7wmeXNzuMD3FW3PVTSu651CIMo/G6vsWjWf4THoSFrgM2jyQWtilfmx 8C7cEqojIKy1VuO/Lar6zVKPlm+0bq6SSDXJlDiMl4HIoDkhr3XkalYgXY19XL0P2arU zTL+kGIYt5GYGEcmPi26ChIKFT4LPAC602DXZH8cWfqGteT+LuBIPYdMlMBS5kr6pZU+ URug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ExKEVEwA4C3XkzZ1JKRavEbS319ueT+8Ea3ibeZ7H+0=; b=ESaIdBwB1VZVsAoAveO9Qo+ZYuV1zFmMCggqXGXWOjqkWqbiITeQsTZi69pORzCxCD MDoJb3VboAzz/4yAr+zAszxV8zjKDq/O123Ded5NKVHf76/TOQjG77Zfw47P0eQZl6ME m6+gtWGmpcZ/qGDC3/PRXpYSq+NymvLDVnvRqRbqw/E+wNN2yYkLI07ehbo6yS79SuAf g6YY6tvGdz/pjWCW4nOCoprQpDoP9YR8Vw00AyL7Xg3lxrLrPr4iRno9vC7d6v0kQfB9 Q07TXeYWXwGQgKVRZjMQKTfx1dhxICb8hCrhxBRLjXol8lx4XHqoxJoGFV5tgcTnCKdT zXGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="p/keIdxb"; 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 f6si2583893edq.363.2021.09.28.06.36.06; Tue, 28 Sep 2021 06:36:31 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="p/keIdxb"; 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 S241021AbhI1Nda (ORCPT + 99 others); Tue, 28 Sep 2021 09:33:30 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:36028 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240991AbhI1Nda (ORCPT ); Tue, 28 Sep 2021 09:33:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=ExKEVEwA4C3XkzZ1JKRavEbS319ueT+8Ea3ibeZ7H+0=; b=p/keIdxbpVjftVt7HmTkgRhWs5 d7YrbL9hpWDfzNjTnettIRR+qIT3gCBgXKeWoy/rnsJ5oOav2kA9qTm7QUZigj8cuoKcnmKPYDEs5 88h8rgQtqsuifqyVEWBLb0nh37tKzW23ANZXd1cD5xJItkHCCjqViT1McSfsRxqt49ZA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mVDCt-008bol-IV; Tue, 28 Sep 2021 15:31:39 +0200 Date: Tue, 28 Sep 2021 15:31:39 +0200 From: Andrew Lunn To: Cai Huoqing Cc: horatiu.vultur@microchip.com, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: mdio-ipq4019: Fix the error for an optional regs resource Message-ID: References: <20210928132157.2027-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210928132157.2027-1-caihuoqing@baidu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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