Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1937530ima; Thu, 25 Oct 2018 07:17:05 -0700 (PDT) X-Google-Smtp-Source: AJdET5eR60Xzc3vNs/WUo75v3RflywSZJHoY7BFBkgO+ZIs8wDwagvqD2LaJeeq6U5g1Jzsr4y2c X-Received: by 2002:a62:583:: with SMTP id 125-v6mr1735478pff.186.1540477025841; Thu, 25 Oct 2018 07:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540477025; cv=none; d=google.com; s=arc-20160816; b=cacR+xKspualufEt8KrHumOaTm5rsjOPWVTg5TBC5sEG+s3AotIxKlUbWv8Eo4MML7 Z65V+Ju9sV3EK1CSlHBwIzXkPoSyi3icmmiT8JdeqzaJQ5S8DKlLdeqWDMZCSO0ijWYE WK6xrg0sI+vM3GFrtzzFJZnGQbO7BHS0kzwUaJfwCLXd+IqCI17SHXyUfCq4wrr5mBeM QZbWy46Kq0y6PxRe3l+3qwrz4W/y+qTROhj4++GtREO2ef2n9XFWgLZcFn9JWF3Og/bT 6mg8GdP0+QPXZJVvf5sks9l6OWgGfpQilMM+19q0TlQDmZFqBNJctt8kyTF9xALna9Ay DzfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=AnZLQOo9ZiSnxk0rqnzr7IkpMGH4ssDegY4cEeNKrdI=; b=rVQMVtUeoHCajYtMLNn4eBHmtsxMTTZBD8FNHO4TOXp2qcOx7PqsuToaF1pmnNTuEg z/X47JG1+RYmnlUnoHaUot6/5eOA3xDzBcRgfipjvsv/09JceuIxQmx442W9JsiqeVsu cwObcjRuMU3B8qz3wMWjmgSdfj9X4aW0nE17NHY0hWdqxkzRG+6b1t6lbBAgAaoefwTg zonlaZnLYN/v4AAXffykgWYOWeWcmWo9XlBcR+jb/zaJ8TkGBp5WQ0NsJsLUg46aPXE9 CpPiBPcIrJvgTT80kHJBMOAY2vcxl3T2mJ9Kn9g61KwvSpZ5NisbYF9ER3ahF+sroGw4 FfJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wOkr9Txl; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7-v6si3825740pgm.171.2018.10.25.07.16.34; Thu, 25 Oct 2018 07:17:05 -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=wOkr9Txl; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728014AbeJYWoK (ORCPT + 99 others); Thu, 25 Oct 2018 18:44:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:52764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727739AbeJYWoK (ORCPT ); Thu, 25 Oct 2018 18:44:10 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0079120834; Thu, 25 Oct 2018 14:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476674; bh=gi1w3Mvq/PbrZVZSG2F+yIsbqCZ2ka80YPId1QSYqgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wOkr9Txl7d/YMGFXODRtCH6Aq0449vtw1BXKbSZvUQI7UjU7HBPF5DuPFX+79kxxq bUri981UZV2BOvFQnJSlcp7JSpL9qiz9DFL0HRs7xpKIu9MRnnLfn3Ro2aSHZhXL6Z eHOXrd4hM7Lj/b5vc5ex5T758saWs6JU7Jfn2JoA= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kevin Hao , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL 4.14 14/46] net: phy: realtek: Use the dummy stubs for MMD register access for rtl8211b Date: Thu, 25 Oct 2018 10:10:21 -0400 Message-Id: <20181025141053.213330-14-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141053.213330-1-sashal@kernel.org> References: <20181025141053.213330-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kevin Hao [ Upstream commit 0231b1a074c672f8c00da00a57144072890d816b ] The Ethernet on mpc8315erdb is broken since commit b6b5e8a69118 ("gianfar: Disable EEE autoneg by default"). The reason is that even though the rtl8211b doesn't support the MMD extended registers access, it does return some random values if we trying to access the MMD register via indirect method. This makes it seem that the EEE is supported by this phy device. And the subsequent writing to the MMD registers does cause the phy malfunction. So use the dummy stubs for the MMD register access to fix this issue. Fixes: b6b5e8a69118 ("gianfar: Disable EEE autoneg by default") Signed-off-by: Kevin Hao Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/phy/realtek.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 9cbe645e3d89..7d38af5ed4b5 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -138,6 +138,8 @@ static struct phy_driver realtek_drvs[] = { .read_status = &genphy_read_status, .ack_interrupt = &rtl821x_ack_interrupt, .config_intr = &rtl8211b_config_intr, + .read_mmd = &genphy_read_mmd_unsupported, + .write_mmd = &genphy_write_mmd_unsupported, }, { .phy_id = 0x001cc914, .name = "RTL8211DN Gigabit Ethernet", -- 2.17.1