Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp5848307ybn; Sun, 29 Sep 2019 07:02:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrT/HnG+pNiIeUcXOWS9mkr5PQEHNggnWO4wghgL+CIr8WSz6lAqmAyK5GTfChUJX17fa/ X-Received: by 2002:a50:918d:: with SMTP id g13mr14697165eda.64.1569765740834; Sun, 29 Sep 2019 07:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569765740; cv=none; d=google.com; s=arc-20160816; b=HG5Bx/me0VdsyiLfcNEAJkgnuuOgGQqkc1jWitGaCrRzxqgpVCOE19ssojJPX2rFuX 3Ly1LyGhUg86A9lHr7WiP0j4EXafCjlHTMdySY/4DZHYW4DQ3+qW0a2F6W7NKl3B8Cox nqAChFfhLxoJSiWuRI7eoFCHg5y9A077p/JvSy2TwfGrU7TaXRGuwtkUnmezOyI+zBwc AI74HkLJ8+gSVfgPtI6xD1BsBQYp75KaBujOLUNG1eTgGrEtjjNWO+Qpus0nKLcGKy4h lGTdR1Zi9e9eo3iKq5NhZaHtNIuxvhd5ZMe6dddgMOIT6wTunvQUKRiAk6XeRWz3KxGa g+ow== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sopD2kKTD6lsGZkX2hBFQBS2hQG3PtxZYG8Uxz1w2NE=; b=fTQ4QIZOGUAqO/RebhJB35JjlGU5EGLI0a67juAtz7sIh2Tx8n7sNP64SLGhSCNAaZ KaYd5Ob0jyNpucVFHuTZWUhi/7gGlzQx1AiGRuH5YpozZk1SLzLWHUb20NmdM0V2kF9N jrpPXYS6cMLGVrWNaunEKrm37ovv0/u92zeTxiNUKe4MfnIE3M4EIP8pTktMPO0J8YRT wqCvqBott8ftdCZIFPk+/LQJZoppKdl68THkCS0X86wRzf3FTr+7OitSpc5vR+fQJhFY 7Uv0KqOR/VxcdLelvLN6HJusobEJ4g8d6ORVJG5SYIEZ9vJJcVfBLUWwPafnePF5DWyG o3ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=je4Ibyui; 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 k63si5852701edc.347.2019.09.29.07.01.56; Sun, 29 Sep 2019 07:02:20 -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=@kernel.org header.s=default header.b=je4Ibyui; 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 S1729992AbfI2OBM (ORCPT + 99 others); Sun, 29 Sep 2019 10:01:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:43326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729975AbfI2OBL (ORCPT ); Sun, 29 Sep 2019 10:01:11 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DA990218DE; Sun, 29 Sep 2019 14:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569765670; bh=Zhqt+ijLdkbbOgVShEyuhIXfz7EmFYOouXSeyX7XA3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=je4IbyuiDYUea4mreWGyERf7cLAOWaNLlycV8MpiaSNcCgq1Li4QtjYZUSyQiQkBY VyBMa3f40yFz6VLOSzY+3wGUNm9rlv9gQyJu4bkCOz/Fv6Q6SaQ5n0sDBbC7NaTY31 vrv7noM2HCLQziq5eyhINCkEGR2l8iRcp7/Ab8qM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "David S. Miller" , Yonglong Liu Subject: [PATCH 5.2 11/45] Revert "net: hns: fix LED configuration for marvell phy" Date: Sun, 29 Sep 2019 15:55:39 +0200 Message-Id: <20190929135027.883053256@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190929135024.387033930@linuxfoundation.org> References: <20190929135024.387033930@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David S. Miller commit b3e487c0cf425369a48049251af75593a5652dc1 upstream. This reverts commit f4e5f775db5a4631300dccd0de5eafb50a77c131. Andrew Lunn says this should be handled another way. Signed-off-by: David S. Miller Cc: Yonglong Liu Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) --- a/drivers/net/ethernet/hisilicon/hns/hns_enet.c +++ b/drivers/net/ethernet/hisilicon/hns/hns_enet.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include @@ -1150,13 +1149,6 @@ static void hns_nic_adjust_link(struct n } } -static int hns_phy_marvell_fixup(struct phy_device *phydev) -{ - phydev->dev_flags |= MARVELL_PHY_LED0_LINK_LED1_ACTIVE; - - return 0; -} - /** *hns_nic_init_phy - init phy *@ndev: net device @@ -1182,16 +1174,6 @@ int hns_nic_init_phy(struct net_device * if (h->phy_if != PHY_INTERFACE_MODE_XGMII) { phy_dev->dev_flags = 0; - /* register the PHY fixup (for Marvell 88E1510) */ - ret = phy_register_fixup_for_uid(MARVELL_PHY_ID_88E1510, - MARVELL_PHY_ID_MASK, - hns_phy_marvell_fixup); - /* we can live without it, so just issue a warning */ - if (ret) - netdev_warn(ndev, - "Cannot register PHY fixup, ret=%d\n", - ret); - ret = phy_connect_direct(ndev, phy_dev, hns_nic_adjust_link, h->phy_if); } else { @@ -2447,11 +2429,8 @@ static int hns_nic_dev_remove(struct pla hns_nic_uninit_ring_data(priv); priv->ring_data = NULL; - if (ndev->phydev) { - phy_unregister_fixup_for_uid(MARVELL_PHY_ID_88E1510, - MARVELL_PHY_ID_MASK); + if (ndev->phydev) phy_disconnect(ndev->phydev); - } if (!IS_ERR_OR_NULL(priv->ae_handle)) hnae_put_handle(priv->ae_handle);