Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp426660ybl; Fri, 23 Aug 2019 03:02:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQcEdfztyigA9YQSrJmZh2nfUTNN24xdb6VN0Sja5i/T6HB8kXEnhhGbOl8wGR7uGihaeq X-Received: by 2002:a62:7513:: with SMTP id q19mr4465650pfc.192.1566554579233; Fri, 23 Aug 2019 03:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566554579; cv=none; d=google.com; s=arc-20160816; b=qxZwWaQ3clSOJQFQepakVsLLkZWcKoeAMQIJBOe8iZKK6BMORbnbeLL5tjbwkMTLsk nIUKK7DD9eyb4IsREWemd5zlbPWMNR080T7zQ0jq3c4esHSgIkTYsMC7TFl1EmR7G4fF zsgipaNB7Vr3vYBsTYGuT64FlcfezJeOQV5bs5LVWb+rXb13NZdHwPFt+hz72/kuVd5Y bvVitzUkovhrCEtlCNdFTfJXK6QlzVtYs3zyKlaknAnVmJXtr+KALuB9JgNrYzlTEuMH s4pyLws/VM1jjU9utfYXPZdPUVnrg1OU49s0PMku8M6KE7eyETqLdQq/mvM/OyJGicPa TdpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=bnx3drhgBojsxXSjNz/LX/58PzRZIyvtnFmVl/O9W9o=; b=PdSa6UVH8kKcAUVm10iRJdciis/w2nosYfYxJGViYrFsdKNnp3rlK20j+2RYEXHnEh ChsJiWHoMM1NKOsCN03wfMlQgXUMKduQKwujHDCda3TvPQqV0o706nQpDZcmn0ws7k18 rdjsP2euB8MQrKx8sS9U2zryPmZTqtHWkxgHU5CGxDAJvS06CXEJWjaPkpwPrCDGHLHY DKfOgOFcARJceyfrL9mkbKMvDOk8VyEHm4fA1g74Emi2dDwffLvF//tToi6CU5o9+Ns+ NEq9beS8G2UES4AcYlt/RDlNYaoTGlDs6WvQ/Efvg/WwCfVjIhK6uP8HCb15wt7Fthn5 RI1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FH6tm+I0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g24si2186408pfi.119.2019.08.23.03.02.43; Fri, 23 Aug 2019 03:02:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FH6tm+I0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392260AbfHWGA7 (ORCPT + 99 others); Fri, 23 Aug 2019 02:00:59 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:32971 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390268AbfHWGA4 (ORCPT ); Fri, 23 Aug 2019 02:00:56 -0400 Received: by mail-wr1-f67.google.com with SMTP id u16so7502101wrr.0; Thu, 22 Aug 2019 23:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=bnx3drhgBojsxXSjNz/LX/58PzRZIyvtnFmVl/O9W9o=; b=FH6tm+I0vXfXBNn5kT1vWdfewrWGcpstqwWmY0QrNr6B20tsUhVnlk3iWqwT6sXB5i mS8rh5Qhe/Uw8gP9IeOkzkyZvJiiEvIA4qa9yRj7wtqcJINC8OiNa0vHUVE9Ji9Xomff TPn+7T1qWBwOwlX1ICCQrWwVg5tRj9AvMhKaW2N7OOGnvR+8Jw1dy9TTM/yQtjO38LTQ FlfUZX1OwDbnh5GeruNVPP/erEwlRfHcM0cVdOOixNPZiTuNkQ2cjrRAF4oETO/Ol2k2 LO/9TB5v840soGQd8KF+Mn/D1wr/92VfLCqxGAVVXAXix5I5FHRfYdGkuj0MSZhSfyE4 QtNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bnx3drhgBojsxXSjNz/LX/58PzRZIyvtnFmVl/O9W9o=; b=XGKaGLt9YAywchsSBCU6pR/4hft0a2rD1LEb5p+qynKpsW8fDOHJdIbvieztZmn9Aq 9WbLUojph+gey2LL+IaTuRHtEdrGplPsUlkuCPyMuZdtAr5KSB/++1I0UK1NZHYehHe7 HUK7dtP667pehoTviEU3awd/mJZoBG5R63fpYSQ2yLX1d+Wk55i/WFViqWz6x2Enqw6u dk9FfnbNT1amlEVtrrzOY644aWaR8ukfhaslY7Ay23yCvy6c6US9e9bRSMjCYPgNyTm3 b/jhodiIBm7lQAcLih4pZdcfMMG1Bm7S9t658lQkmAHKJnSJgrqUDvR1KJxKifWA3tOt Vavw== X-Gm-Message-State: APjAAAVULGx3U4q5ofhPiy8LcG1/1FlaBi0P6JzGU3xVGoALxoc3I3UW bQBNGFt0ORIXwYT4PxMvV6E= X-Received: by 2002:adf:ef05:: with SMTP id e5mr2922124wro.158.1566540054822; Thu, 22 Aug 2019 23:00:54 -0700 (PDT) Received: from ?IPv6:2003:ea:8f04:7c00:34d1:4088:cd1d:73a7? (p200300EA8F047C0034D14088CD1D73A7.dip0.t-ipconnect.de. [2003:ea:8f04:7c00:34d1:4088:cd1d:73a7]) by smtp.googlemail.com with ESMTPSA id u6sm1501142wmm.26.2019.08.22.23.00.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Aug 2019 23:00:54 -0700 (PDT) Subject: Re: [PATCH v2 net] Add genphy_c45_config_aneg() function to phy-c45.c To: David Miller , marco.hartmann@nxp.com Cc: andrew@lunn.ch, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, christian.herber@nxp.com References: <1566385208-23523-1-git-send-email-marco.hartmann@nxp.com> <20190822.161520.1087789793326068678.davem@davemloft.net> From: Heiner Kallweit Message-ID: <8369d425-adb3-8332-b2e1-7464a74d2809@gmail.com> Date: Fri, 23 Aug 2019 08:00:48 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190822.161520.1087789793326068678.davem@davemloft.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.08.2019 01:15, David Miller wrote: > From: Marco Hartmann > Date: Wed, 21 Aug 2019 11:00:46 +0000 > >> Commit 34786005eca3 ("net: phy: prevent PHYs w/o Clause 22 regs from calling >> genphy_config_aneg") introduced a check that aborts phy_config_aneg() >> if the phy is a C45 phy. >> This causes phy_state_machine() to call phy_error() so that the phy >> ends up in PHY_HALTED state. >> >> Instead of returning -EOPNOTSUPP, call genphy_c45_config_aneg() >> (analogous to the C22 case) so that the state machine can run >> correctly. >> >> genphy_c45_config_aneg() closely resembles mv3310_config_aneg() >> in drivers/net/phy/marvell10g.c, excluding vendor specific >> configurations for 1000BaseT. >> >> Fixes: 22b56e827093 ("net: phy: replace genphy_10g_driver with genphy_c45_driver") >> >> Signed-off-by: Marco Hartmann > > Andrew, Heiner, et al. where are we with this patch? > For me this patch would be ok, even though this generic config_aneg doesn't support 1000BaseT. 1. The whole genphy_c45 driver doesn't make sense w/o a config_aneg callback implementation. 2. It can serve as a temporary fallback for new C45 PHY's that don't have a dedicated driver yet. 3. We may have C45 PHYs not supporting 1000BaseT (e.g. T1). Andrew? Heiner