Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1951051pxb; Wed, 9 Feb 2022 07:56:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8vKfySzkuE1Do2b0d8Rhyq8+SRLWDDlH+tME27L+Zjq7nhxV21L5lTaBQ9lRwSL5kwKG7 X-Received: by 2002:a17:906:99c1:: with SMTP id s1mr2677751ejn.298.1644422171594; Wed, 09 Feb 2022 07:56:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644422171; cv=pass; d=google.com; s=arc-20160816; b=A1QMW93VB76MgLNYXmQ/aQKLF4GBBTlk7cdZr3dXo1lib1ddk3AJPDeez3/Usry1qt VjCOeRHmnqxmiEHU9+6WZOyChzS3i0aHJoFqlVgDY8kIx9cmDLoNo2vDf99J48xFM48I pmHUS6T3vBeBtr0RP5zd1QhEgSghaLy3ipyqpkOmNTZhofKvZ18ATP+T3ABVQ1eIuXEt xUHThwk26Q1tFpz1+LeOu5/xDhBLsonb9N/s0q/abnemQHzJywy0AaDIZnDT2B56FtXo fnwL7G/W1PcXiZehb9IUuH1Rs/G6LdZ6UkuboEXXwt7RocSPkDHyPQaUyRxPXwt1ESsT sDlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kmwejnD0khrSw7Jzk3gPGadOWupapvsORfk9uYGhYd8=; b=gAPqM6MRnM1JoBQhozsvlHQoRm6VxH5pXzkevy6RaEFo1ViXYNdUSBEvFwZxoYnDDM 5hX123hTzI+P9waT+07sNgy6rvRh8Hx+1qMtX684yQ/rsmb++lsTm2lspGvz4ZVKTu9c MTd1hMkUVtFhBidnvjLTwx5uValaHawWWVdPBsc+pVlCa7qw7ISSixJyNQEU8jSIYHfH y+WJksGS9YXrvi6NMH5JfuGUX+QcPUvpjO5TyayB/vkFnh917jVvCaaSTCcpmgkFg+zX vswfaetOyo3oVPeD2vV/c+k0iNcyEp2kjxHGUeB7TruiMmeGqYGUDrR12BcW/cIkLsnv BeHA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=dtNvbm1V; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.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 sh37si7362800ejc.929.2022.02.09.07.55.45; Wed, 09 Feb 2022 07:56:11 -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=@arinc9.com header.s=zmail header.b=dtNvbm1V; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.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 S235470AbiBIPD0 (ORCPT + 99 others); Wed, 9 Feb 2022 10:03:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235465AbiBIPDY (ORCPT ); Wed, 9 Feb 2022 10:03:24 -0500 X-Greylist: delayed 911 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 09 Feb 2022 07:03:28 PST Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BDB4C06157B for ; Wed, 9 Feb 2022 07:03:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644418054; cv=none; d=zohomail.com; s=zohoarc; b=TjSgu9sZsyKr/hEIFKeJoy8pAugybVEUIG2BbddlTrs/AzVW06uYW0wauusGZd1/x2gqVFeErVdMmZTGCV977DymOq79p4kbgo0g8G/TTySGUNIuIBucp4FqADBDddVFu45vp9XSpagMGUCLyrlLsASlnwdqVMrhsmhQAySobVE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644418054; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=kmwejnD0khrSw7Jzk3gPGadOWupapvsORfk9uYGhYd8=; b=ZfRt3CP6bd8JCsvrDkWACX5GpUwqQH8HPkoDpdKMq0KlyXyLVrvP4BF63Csvjie+bhLvvPKdwZR+gGYEqcFz7yDUJzB/yfWFOTS7wBtnyPB3W3g3g+DXbAhGCedhmLhnmlpkJ1KOF+wKJshTEph8ljTgN92mEtxp0UDiX0Sjr14= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1644418054; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=kmwejnD0khrSw7Jzk3gPGadOWupapvsORfk9uYGhYd8=; b=dtNvbm1VL5aQ7kRJ3HU8prbsmNoyKbtJT6VpnGh3kx9eJngRuoRUbnyu6offD4tt y9tws15N7pKZwvLJgg4u1Kj6ngAU/o9Trel972AB06beF6VH61aRGTihbjkf0PqFbAl JWjqjnvn3w6MV7vuG9bf+d8ZvcKZZGtXwriz2P5c= Received: from [10.10.10.216] (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1644418053600780.3051547022845; Wed, 9 Feb 2022 06:47:33 -0800 (PST) Message-ID: <24eba648-9029-e66f-aa2c-31ddbc7b1199@arinc9.com> Date: Wed, 9 Feb 2022 17:47:29 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH net] net: phy: mediatek: remove PHY mode check on MT7531 Content-Language: en-US To: DENG Qingfang , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Jakub Kicinski , Matthias Brugger , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Hauke Mehrtens References: <20220209143948.445823-1-dqfext@gmail.com> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20220209143948.445823-1-dqfext@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/02/2022 17:39, DENG Qingfang wrote: > The function mt7531_phy_mode_supported in the DSA driver set supported > mode to PHY_INTERFACE_MODE_GMII instead of PHY_INTERFACE_MODE_INTERNAL > for the internal PHY, so this check breaks the PHY initialization: > > mt7530 mdio-bus:00 wan (uninitialized): failed to connect to PHY: -EINVAL > > Remove the check to make it work again. > > Reported-by: Hauke Mehrtens > Fixes: e40d2cca0189 ("net: phy: add MediaTek Gigabit Ethernet PHY driver") > Signed-off-by: DENG Qingfang > --- > drivers/net/phy/mediatek-ge.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/net/phy/mediatek-ge.c b/drivers/net/phy/mediatek-ge.c > index b7a5ae20edd5..68ee434f9dea 100644 > --- a/drivers/net/phy/mediatek-ge.c > +++ b/drivers/net/phy/mediatek-ge.c > @@ -55,9 +55,6 @@ static int mt7530_phy_config_init(struct phy_device *phydev) > > static int mt7531_phy_config_init(struct phy_device *phydev) > { > - if (phydev->interface != PHY_INTERFACE_MODE_INTERNAL) > - return -EINVAL; > - > mtk_gephy_config_init(phydev); > > /* PHY link down power saving enable */ Thanks for submitting this! Acked-by: Arınç ÜNAL Cheers. Arınç