Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp18455ybl; Tue, 27 Aug 2019 15:02:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKbIgGpw3ZUuzjsqdIbsQaZ6xs5lgxVCM3SJ3cpHh6KYMoyT/P9bsMpah01sm0ENNSHnDU X-Received: by 2002:a17:902:9a07:: with SMTP id v7mr1122252plp.245.1566943359592; Tue, 27 Aug 2019 15:02:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566943359; cv=none; d=google.com; s=arc-20160816; b=czrh1GYYboPbDLfGzh2GFp+rP6kOnQlkap9GIxEmRTnUAiVtKRD8Oy8W+yBOoDVPtE uC3hbrAXCiPtZ0zjt2V8pA/ZUJo+27KWy08iPqgw7O7xEru6I5Vdbm914TsmsmAh00+p +dJYlph7xxsR89/zZiL0XxmNXochhRzG5w85G6u4CUTb+oi+ksnIz+HLltQfld17jAPk W8X050I6xUkeHRVqaCZTSZUtV5UcxKT1rYakd1sYWZptpNXWSvUy2QtYWeiIrN1FBlT9 TX3b8rgCAlxD/urdJOFid4nF9lzt1gHlqJdbtIf8fdAeyC4RH9up4QwzInOdEH4bhdFh m2TQ== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=YPZvrGAAc/84XLMVzkjvSavWqVXqrCNGbyQDtPz78fk=; b=EHaLEYNPR0qFtL9+KBTZri/kyrB8yaF2QupQcpHSpEbhUVjc8p7+n93VvkOg6Am/ci hSpQ+idTB6sUeFs7wMsmg2v+I4Yx7MlzhZmQaO1WO1OQVE1mWRPC/XBRMim5xSDtxmYI 7s6mcRa44xHMwnODi3GQ9b8ntoE79Ng0G9J6xdB9+7iU5s8p9g4uQ8JbVghdr9CEfliQ Ek7rgB1kSe5t4bQ/jL0SenNU5jI3OP/AjD+rKWwrarfgQP9K8ro2c2EXqgg2IUPpNuF5 A/S9bE/LFLQY8uxlSzTOVqq33XfRgsXbzpxr5BOuUoKww7H9tGyE+VBXahuO/9hfZFD4 Y8gw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si498099pgm.43.2019.08.27.15.02.24; Tue, 27 Aug 2019 15:02:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726530AbfH0WBE (ORCPT + 99 others); Tue, 27 Aug 2019 18:01:04 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:51342 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbfH0WBE (ORCPT ); Tue, 27 Aug 2019 18:01:04 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id A536315256ED2; Tue, 27 Aug 2019 15:01:03 -0700 (PDT) Date: Tue, 27 Aug 2019 15:01:03 -0700 (PDT) Message-Id: <20190827.150103.723109968950216148.davem@davemloft.net> To: marco.hartmann@nxp.com Cc: andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, christian.herber@nxp.com Subject: Re: [PATCH v2 net] Add genphy_c45_config_aneg() function to phy-c45.c From: David Miller In-Reply-To: <1566385208-23523-1-git-send-email-marco.hartmann@nxp.com> References: <1566385208-23523-1-git-send-email-marco.hartmann@nxp.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 27 Aug 2019 15:01:03 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, gentle ping to respond to Heiner who said: > 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? Thanks.