Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1364591ybi; Wed, 3 Jul 2019 14:24:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7yeOVZjjAH9mWF5nnfLv4XJ07YxHdDk3bjinCr42kV4w0pcdko2LugEjiyTamdamtCT7R X-Received: by 2002:a63:ad07:: with SMTP id g7mr36732985pgf.405.1562189088812; Wed, 03 Jul 2019 14:24:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562189088; cv=none; d=google.com; s=arc-20160816; b=HU+C1yl7HnyV6vgOIL2u70thKQ/ng1JSD5YrLAcq692nEZTCotqBi+bi0//kb6/Rbt +9dg1E3vyU6crZ8ZLD5Le4bcfwU7NwKIK8Vk1kF0dNosOfE4NvAbBmdB2V4Y9FdEQaQ6 LLrhY14kVpiGexvawrDB4K2TBS2PUQTtRba1Hr3WW6pwfzHPuO1HsJdPvXyKFe6Qg800 vKuyPjaEsgRI1zplYQMsxsqh0jnDTq6UsHpbT5dp+qviMcTkDL85euftHhxat8BCufNr vvhW5y7VQM14iwejA4MCL1zBwo1rkRazy6cNG1VkQnIqJuEBkSnQtMrEWXgx0UrPIzpb mmFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=v2vlXPjl67SKMwWFhxyJH5w6PdqnZPQg08QW+0HWg7o=; b=sN01PfA0piSpaT2OyD87fB3G2VhrQSZQhgj+Pjv+CAwjMPIaXKBErjnr7ifeTNqKnF 2MedAXtHqwiDDRusK9+KFREyAvQWU1dDqtJgrg/rajKQlJOi6j35gsEoBeqtK4scWLUV 9u7lwxYGh437DcQYUghx54w0BdSuBwVkJ6evrUNf4O2Z7hRPBJlrGMVdng1wLaTChSRh CARqZZpDPCF10CoU2K/TdUJEWhBQyvnAZqnyYqFSVsIPokWNrrPQUeD2ntcuHQIItlSc csWF8d02nIKp2hghTuprR550rG/Ipr11OWNmzfb4dicD7TZSv8ScSduvuljhPPU25bv2 /CZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ECWISvYP; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci23si2803668pjb.106.2019.07.03.14.24.31; Wed, 03 Jul 2019 14:24:48 -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=@chromium.org header.s=google header.b=ECWISvYP; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727134AbfGCVYK (ORCPT + 99 others); Wed, 3 Jul 2019 17:24:10 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:46554 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726678AbfGCVYK (ORCPT ); Wed, 3 Jul 2019 17:24:10 -0400 Received: by mail-pl1-f193.google.com with SMTP id c2so326751plz.13 for ; Wed, 03 Jul 2019 14:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=v2vlXPjl67SKMwWFhxyJH5w6PdqnZPQg08QW+0HWg7o=; b=ECWISvYPDdYHD27CqcEoHJMDMinxTVOSDWlk2tr4YmVh0risPbbZjyZJ/8WzBG1ysf itDw9oG9DAwxaorQ82esteEEeZuZI09qIiZUqDSgxD1M/0EVve3zRKZ95EKnP5c4KoWo ba4Rh808R5Zvinvhgua86qIek5/NBOuP44d2c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=v2vlXPjl67SKMwWFhxyJH5w6PdqnZPQg08QW+0HWg7o=; b=gddwscrknRDCy29PQq01ZpOsPevkzhEV2ZF5nAcj9FnE12JS0u4M3b1iPXiKAnUNFn x5uK3yawyajssEMwLX3BM9qjv3Tm6IHWC9W0ttONEyizcsmWFGHsfMT2phjR7seM7MLL oS2gq7Uczh5Le0CaAPbRilHGYd+9WVZHWDTaw+HaqGyTvYgAwZX4HfvwE4kHXz3uYh6x BfXEICBdNyEwQNZxqVtQUFtuCGOAn3brIzz50mXS/Lg2RHW9Yj8ulFjPiMJvgAZ8FwPu UMA/T7pYyeYvqAog0bjzw4jnSDWeRPVmdEzUEaag/g4ZAbdknz7vuVNmRCsv4W4HgWMc a77g== X-Gm-Message-State: APjAAAXiVC0O/QmoE5nVPxuazQ4YRd0aIlBGYOs59vt8+Y0I41iKvChi Pa0lLzwC4/2TNWBl94U0dw6F2A== X-Received: by 2002:a17:902:1003:: with SMTP id b3mr45312466pla.172.1562189049492; Wed, 03 Jul 2019 14:24:09 -0700 (PDT) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id f10sm3450912pfd.151.2019.07.03.14.24.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2019 14:24:09 -0700 (PDT) Date: Wed, 3 Jul 2019 14:24:07 -0700 From: Matthias Kaehlcke To: Heiner Kallweit 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 Subject: Re: [PATCH v2 4/7] net: phy: realtek: Enable accessing RTL8211E extension pages Message-ID: <20190703212407.GI250418@google.com> References: <20190703193724.246854-1-mka@chromium.org> <20190703193724.246854-4-mka@chromium.org> <20190703203650.GF250418@google.com> <98326ec2-6e90-fd3a-32f5-cf0db26c31a9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <98326ec2-6e90-fd3a-32f5-cf0db26c31a9@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?