Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1367454ybi; Wed, 3 Jul 2019 14:28:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxd3N1d2kAhmYUswCX3b3DBj2tbXZ0t2zNUoK4+K+IityulHVir7Qf0K6SVGah5VZTvL2K7 X-Received: by 2002:a17:90a:2641:: with SMTP id l59mr14358918pje.55.1562189305902; Wed, 03 Jul 2019 14:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562189305; cv=none; d=google.com; s=arc-20160816; b=BhQ1rNQmdx3aKmdAIGWvGSXmW5/iCE8zJyMrFUOxKsr+3ImQylBvsfjVTBrBjpEsIc F9NgO6W3gZfq8tKoA+J/wowBll/IyKfFl+lBjNCBAm+B/zIcxTcY/z+oICYIIK/84U9K z1DG/9liYHqknRbplAneGbIhQUTHxW95OeEjQL/jbjBnt3GP75WiM6cOaV7spbYeQ0Q5 86jUTZW80H7YLHtmliGWyb9aJgguSN73xDO3PQZ0eNSNucNKZYYTue4bjD1zNKXlh+3R 0smbOPxq7gnHmOBE1IQT5DT6ItP4+bpila/8MYphAbqIhgBS49yoR7svt+pkG8or7nx0 c8aw== 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=t9ppNu+tTe8IMaz8VD3GfS+xRVxRIJDS97FL0GEnxCo=; b=sdxRZ2plF6gHT2Fv+wkpsLz2fYkx5bUaFRJbtP8QlaLtMX9kjsWJM2T43A7G+omHgb Bx1MeYfrheHhjmZYmuEytGQjEyNiTPvmGuTmWZw0VTKqTw2/BaQRAgwIuuOnnUCyU7xG +ykYbDoVSdiXdm31u6Yq5R6OXVtTT6TDe31BYf4Nhd1/6n1bN9dHSVRYZo07B92iXf4X nwCOOy6XI3+YfmC9ORaU95i3+YuJfPK3tCdam76KYC9owvbYQ3pCYgw+4xm/fATY0hww r8ly34MKR9hM+CauvqEAQj1+Ux+hBRsLus2h99eoIgMCnGR4k0hvJdG/Y2b1uENjDwzx 1Gfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JeLJ6Y3u; 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 h2si3250235pgs.227.2019.07.03.14.28.10; Wed, 03 Jul 2019 14:28:25 -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=JeLJ6Y3u; 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 S1727360AbfGCV1u (ORCPT + 99 others); Wed, 3 Jul 2019 17:27:50 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55733 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbfGCV1t (ORCPT ); Wed, 3 Jul 2019 17:27:49 -0400 Received: by mail-wm1-f65.google.com with SMTP id a15so3644767wmj.5; Wed, 03 Jul 2019 14:27:48 -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=t9ppNu+tTe8IMaz8VD3GfS+xRVxRIJDS97FL0GEnxCo=; b=JeLJ6Y3ufQlegAik9zWghxwF/mrLQWjE5NIpiZJd699FR9cSWOLeh3FrojugG83BwJ DyldNdCjU7FbDJclPm2i6bzFggqRqbxYU4H8uVEYA7A4FE6t6vHcZYZJMWZOyhnZjyhe RUZyVEQe2OLYC81n+dKvND0ZeU6SmUb5qUG73qB8B1baVlp/I0BvnYcmM3AvqbZhXo8I hknyeLUpIF/3L5dxRTm65VR/Cg9AqKFgcu2xstwC2NWcYGp9SRKbJlOj7n7pVOIqXwYO 8VztMEobWnweJL4tmuEidzUCY/pVUyAoF2HDryk/LYahWYfk/VoKMP9rKWe6tpITqRtg Qb8A== 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=t9ppNu+tTe8IMaz8VD3GfS+xRVxRIJDS97FL0GEnxCo=; b=r5bgVdt+H06tfx7kBORttd8AFUUCSh22eIoazPBWsonPj3CjMePaoreWx6o5C8SX4K vNuEfZsDjkdy+js9M56R7N9nLGUH91qEXUlOVsH+nhwPxH94dB0bk8jQqrRlgpQAPQq1 marZ1kYt/+jap7MhtQVBai9cv4eSeulG7Qkykh9UkCDtDZ1JuMRNpDTFGFMpkFd4MADW CZm/Q6SaJeCK+AQ1OCOwfgJjVWDUZsQ3ywPMO/7H1Ti9ij5QsjQjIH9SL16JYueLYSmP 3mBeaBxoeJ6ng85Q2gOpKNp01uHwnhw6HUz7KgCPGRvoJ6MpAIHUx+hP/IYOk+ZfNsVB AbOw== X-Gm-Message-State: APjAAAXmygoDxmPWZUJTWfrCGdFjKHvGQS/PKITbyksgLTO5gt0EAHx5 Xbt1aCF4gKJrg1WtoRyZwv0= X-Received: by 2002:a1c:1f06:: with SMTP id f6mr892554wmf.60.1562189267692; Wed, 03 Jul 2019 14:27:47 -0700 (PDT) Received: from ?IPv6:2003:ea:8bd6:c00:4503:872e:8227:c4e0? (p200300EA8BD60C004503872E8227C4E0.dip0.t-ipconnect.de. [2003:ea:8bd6:c00:4503:872e:8227:c4e0]) by smtp.googlemail.com with ESMTPSA id a64sm7593935wmf.1.2019.07.03.14.27.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2019 14:27:47 -0700 (PDT) Subject: Re: [PATCH v2 4/7] net: phy: realtek: Enable accessing RTL8211E extension pages To: Matthias Kaehlcke Cc: "David S . Miller" , Rob Herring , Mark Rutland , Andrew Lunn , Florian Fainelli , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Douglas Anderson References: <20190703193724.246854-1-mka@chromium.org> <20190703193724.246854-4-mka@chromium.org> <20190703203650.GF250418@google.com> <98326ec2-6e90-fd3a-32f5-cf0db26c31a9@gmail.com> <20190703212407.GI250418@google.com> From: Heiner Kallweit Message-ID: <3e47639a-bbbb-f438-bc66-a29423090e95@gmail.com> Date: Wed, 3 Jul 2019 23:27:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190703212407.GI250418@google.com> 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 03.07.2019 23:24, Matthias Kaehlcke wrote: > On Wed, Jul 03, 2019 at 11:01:09PM +0200, Heiner Kallweit wrote: >> On 03.07.2019 22:36, Matthias Kaehlcke wrote: >>> On Wed, Jul 03, 2019 at 10:12:12PM +0200, Heiner Kallweit wrote: >>>> On 03.07.2019 21:37, Matthias Kaehlcke wrote: >>>>> The RTL8211E has extension pages, which can be accessed after >>>>> selecting a page through a custom method. Add a function to >>>>> modify bits in a register of an extension page and a helper for >>>>> selecting an ext page. >>>>> >>>>> rtl8211e_modify_ext_paged() is inspired by its counterpart >>>>> phy_modify_paged(). >>>>> >>>>> Signed-off-by: Matthias Kaehlcke >>>>> --- >>>>> Changes in v2: >>>>> - assign .read/write_page handlers for RTL8211E >>>> >>>> Maybe this was planned, but it's not part of the patch. >>> >>> Oops, it was definitely there when I tested ... I guess this got >>> somehow lost when changing the patch order and resolving minor >>> conflicts, seems like I only build tested after that :/ >>> >> RTL8211E also supports normal pages (reg 0x1f = page). >> See e.g. rtl8168e_2_hw_phy_config in the r8169 driver, this network >> chip has an integrated RTL8211E PHY. There settings on page 3 and 5 >> are done. >> Therefore I would prefer to use .read/write_page for normal paging >> in all Realtek PHY drivers. Means the code here would remain as it >> is and just the changelog would need to be fixed. > > Do I understand correctly that you suggest an additional patch that > assigns .read/write_page() for all entries of realtek_drvs? > No, basically all the Realtek PHY drivers use the following already: .read_page = rtl821x_read_page, .write_page = rtl821x_write_page, What I mean is that this should stay as it is, and not be overwritten with the extended paging.