From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEAF2C5B578 for ; Wed, 3 Jul 2019 21:24:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B434A21882 for ; Wed, 3 Jul 2019 21:24:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ECWISvYP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727251AbfGCVYK (ORCPT ); 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-Google-Smtp-Source: APXvYqwHlT4x2pD/pE1d9wNBgrNtHbF+tIzS8ug8mk9SDfeO2q20ORWVmVGYed7fY3M0n+yfpljt0Q== 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?