Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3864987pxb; Tue, 17 Nov 2020 05:43:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiVDPQ/stuGCaeP2Hg1KTAs7RUoNTjJLh7paI5srhPDWioZ7eh4VGXf91YXMhHRwUE5fI6 X-Received: by 2002:a17:906:d784:: with SMTP id pj4mr18755300ejb.78.1605620592608; Tue, 17 Nov 2020 05:43:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605620592; cv=none; d=google.com; s=arc-20160816; b=QgG5Bf4CutXaRp+YgPfrOxvkBt3DaLgFk4ebAvWC2nuhFcbfk6WB+UU96nPKtHWsDr Wzx8++sZq0+DaHHoaP6cU/1w9GYwNEt6cZbfa8F+j7Lrz0Dd9rD2p63fFeNlmO+cknu9 vDL7sFc4KrOMZpbH8QNbWW8sqpCQD0iRxKSZ6yv5cRK+BQQJ8hue2ObVxq+znyDPv4cp MSs9hyPpO7lRyAijF7FFgDsWbNGtfp/KtUDI+Mo6wNC44AauybXCLNb4on5zGnJtVteL F6EGVUWyPiaJzRyxL6edscOytQHEOYAKtFtXtu4gMRy+ZjPHF2o2P6kphQqIPE/4jHGq O3cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gKZB7+/A3gcf2/zed6XRUAHCw1Koc71HUTrYxfTtn18=; b=WsAFyDYV6YYxa4Nz2se8ZwAMS2R5QyevqBtpAe0tK2g/P/aZVirUhBqPcJgQ+xAc+o DRRj83/37IVRQOY795s4AAVzykLFEDC7WXe5bpUqw2q1w8GxRohdZ7plHNO/M7z2i1cy xlwkj3SSkCvDAhoQ6bEahgUZGbBcJexf2G4jsADPSkV8ZQfvxUoSUHk+CCWakgwF6IZ8 h5Jih3Nwn/jFlu1CEglfh8mZz96Wflhi4q/J6431xIiTSEoWKDsL+xpRAyXIR8DKF+o6 nluA1McFmAsz5FcVnz3vA7yg653lX+zpJqSHvI3BIwaadQodXCkmk7PKe2w86wfCxY58 ASZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hCI533KX; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si13289712eja.372.2020.11.17.05.42.49; Tue, 17 Nov 2020 05:43:12 -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=@kernel.org header.s=default header.b=hCI533KX; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732678AbgKQNjZ (ORCPT + 99 others); Tue, 17 Nov 2020 08:39:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:50882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732408AbgKQNjH (ORCPT ); Tue, 17 Nov 2020 08:39:07 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 D705520870; Tue, 17 Nov 2020 13:39:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605620346; bh=KQCuwdMUqM8EjjgvAFkva6iPqgagY4BwNMp1qW9+J0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hCI533KXeHEO080roUq8nC34aH2RCIQvJWHLCxjQCgG76s/SqTkdlEiZZ5hBiW/cg 3lz3TAxmh3IFXCBSbxmF8y/lQPO53TO4pIjPhYstxYW0w8uOUGFuh774Bk///GZcN0 HZRiPqOj0ia04cIeEf2xlnIysHVUnhyEg4SkzPz4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiner Kallweit , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.9 157/255] net: phy: realtek: support paged operations on RTL8201CP Date: Tue, 17 Nov 2020 14:04:57 +0100 Message-Id: <20201117122146.590282409@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122138.925150709@linuxfoundation.org> References: <20201117122138.925150709@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heiner Kallweit [ Upstream commit f3037c5a31b58a73b32a36e938ad0560085acadd ] The RTL8401-internal PHY identifies as RTL8201CP, and the init sequence in r8169, copied from vendor driver r8168, uses paged operations. Therefore set the same paged operation callbacks as for the other Realtek PHY's. Fixes: cdafdc29ef75 ("r8169: sync support for RTL8401 with vendor driver") Signed-off-by: Heiner Kallweit Link: https://lore.kernel.org/r/69882f7a-ca2f-e0c7-ae83-c9b6937282cd@gmail.com Signed-off-by: Jakub Kicinski 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 0f09609718007..81a614f903c4a 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -542,6 +542,8 @@ static struct phy_driver realtek_drvs[] = { { PHY_ID_MATCH_EXACT(0x00008201), .name = "RTL8201CP Ethernet", + .read_page = rtl821x_read_page, + .write_page = rtl821x_write_page, }, { PHY_ID_MATCH_EXACT(0x001cc816), .name = "RTL8201F Fast Ethernet", -- 2.27.0