Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1785412rdb; Tue, 20 Feb 2024 07:03:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWqQoeklA+o9vsM1HH4lAnd2fBGJoombFaB7Uij09s6KwUcUatLvWxwjPT+McqmmMhOpoazERDox/tevq+gf46W4LIlbSfvziec8vv90A== X-Google-Smtp-Source: AGHT+IEA5uoTXWR7LU62uPE3l9giC2vhOh1lfqOujuCNcef5DJxH62TwiVbeqvYRR1CpIcKJgXUL X-Received: by 2002:a17:906:e246:b0:a3e:69eb:45dc with SMTP id gq6-20020a170906e24600b00a3e69eb45dcmr4759721ejb.21.1708441406092; Tue, 20 Feb 2024 07:03:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708441406; cv=pass; d=google.com; s=arc-20160816; b=u6ufYRPeBZCnzs+PeG1WoquGb/5BouVERHtx+qTYm6rS1VMLfMKyJguFkF9lB/hDTC QzQ41FgT66XnaOgwodhd6vd6uC6Tm6zFYziEmMHaC8Bft53SRCtlXyPpgQXi7JgqomDR ccH/Hs3RWHZlrpYC+tzntWTCRfmTWGRrZwIyNbGQuv1Y/+Pn22lKhtZhN0g2REuKoUMb 7nbA9AlsEXw/KtMFVfCrXCMSNusmfEILOzM13iRn5GoIapll+odDX5hOludm4b/YSGWs vSeFAtWkkLig6tnPFw5jiSjD9k7Ml2GNLvK5XeTVrttC3QMTmNpajqmK/fM34DOGxkOg GVAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mB86xxzurEThKxibOQVicByVGG8ZxHK8LFi/v8V6kIY=; fh=CKTxRCUcpH+BmCi6wlfhRm8+TwyLKtmFe+ezlMBNoVk=; b=iN4TasG7CooKZJTdhSn5/C9pn6P48Aqe/vPxP0SVmwDlxEnRJb06EVZS6P2IoZlIK3 RCKhvX1eXkIKXwQvrqPh5xz9sYgA5qwdyUvbqkgeOJJihf35qMsSiITq/NsghgNCvZBs zkRjSIpWbYmTM4k9128rhY75zFQOhFN7anA6Vz+TWxn8khUHn0XQvdQNOyBe9gM7KwiA ebswVlekdxxS19tNPqgrkvFAUa9yMM0ADO1uK2E/A8NCRJoywVujVvVF0b8myRhOdto7 1X/B/Kp+Pvad3xPw6GnS6RbD3MDKJ00+x/xWbjpnQf9POzAZHbhhhpckZ5sTbtUXhRrj ajwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xl5Xrye8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lu20-20020a170906fad400b00a3ec680ee34si1418721ejb.469.2024.02.20.07.03.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 07:03:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xl5Xrye8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8D3621F253EE for ; Tue, 20 Feb 2024 15:02:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62282745D7; Tue, 20 Feb 2024 15:00:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Xl5Xrye8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 876506931F; Tue, 20 Feb 2024 15:00:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708441255; cv=none; b=ECEzOSFuCXcbwOs4uPVq3mNrZTZip6NXDGFC8OYCs+7I0TxsHhB5Ls64T7hkM0iviOWf0FvxmUQYUbBIW4HbjUBKB1lz+xpby/gRFhpIl2Z27OJgSfvCVf4mPTw8zYSfp3+d0xvC3pZjBXJ81bEIMqHf+ul1nGomRwyzPG19dKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708441255; c=relaxed/simple; bh=t0kh6fT7xYxfjYlEKpkM6AOETmzHo7MjScDoq365xG4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=noeXdjSMxKITRhZ098YvpNSUwj/1sDyYJKR8ofxbV8KAOq9/1X4Geihcp1d51yJ40qU4K3phb7NBbn3kirABxM1P19S2/WGeTw9cqG/ozkY49EqzOLmSmusX68RCOn/1FRirz1HHf4JVnYIgP0WH1f5oJwJm9qV9rf20M7ldRWQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Xl5Xrye8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5071AC433F1; Tue, 20 Feb 2024 15:00:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708441255; bh=t0kh6fT7xYxfjYlEKpkM6AOETmzHo7MjScDoq365xG4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xl5Xrye8FtH7cnrdC7jAssSPoehu+/m2GxRMNDtkrhAkjT+5dEsCWjtUhaWDXmvMI ruOmg+0SePgiidCxNnbMVP3k/v453nd3uTMajSeeusA/xwk2fJUgeRld0JRTX37n/Y +tIB0MaarLeH+F8D17aEFyTVerbDAvvbRdxEM03VLlawukPs5MrB+iom2/dlZcpl+h bpTW2KEokm1pmKvgJWPly6i5jF++JwOa9KeU6KHBge2OuemX686I90JYK6czEPyNwK Dw+xr+GxacmF9F3UfLcOnTkxyrijFi6RirbNhn2SxZYj8fO7g+tD2fI+jhCeB3e56R MhoOppnCs/qgA== Date: Tue, 20 Feb 2024 15:00:50 +0000 From: Simon Horman To: Siddharth Vadapalli Cc: andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, xiaoning.wang@nxp.com, wei.fang@nxp.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srk@ti.com Subject: Re: [PATCH net] net: phy: realtek: Fix rtl8211f_config_init() for RTL8211F(D)(I)-VD-CG PHY Message-ID: <20240220150050.GO40273@kernel.org> References: <20240220070007.968762-1-s-vadapalli@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240220070007.968762-1-s-vadapalli@ti.com> On Tue, Feb 20, 2024 at 12:30:07PM +0530, Siddharth Vadapalli wrote: > Commit bb726b753f75 ("net: phy: realtek: add support for > RTL8211F(D)(I)-VD-CG") extended support of the driver from the existing > support for RTL8211F(D)(I)-CG PHY to the newer RTL8211F(D)(I)-VD-CG PHY. > > While that commit indicated that the RTL8211F_PHYCR2 register is not > supported by the "VD-CG" PHY model and therefore updated the corresponding > section in rtl8211f_config_init() to be invoked conditionally, the call to > "genphy_soft_reset()" was left as-is, when it should have also been invoked > conditionally. This is because the call to "genphy_soft_reset()" was first > introduced by the commit 0a4355c2b7f8 ("net: phy: realtek: add dt property > to disable CLKOUT clock") since the RTL8211F guide indicates that a PHY > reset should be issued after setting bits in the PHYCR2 register. > > As the PHYCR2 register is not applicable to the "VD-CG" PHY model, fix the > rtl8211f_config_init() function by invoking "genphy_soft_reset()" > conditionally based on the presence of the "PHYCR2" register. > > Fixes: bb726b753f75 ("net: phy: realtek: add support for RTL8211F(D)(I)-VD-CG") > Signed-off-by: Siddharth Vadapalli Reviewed-by: Simon Horman