Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1203420pxb; Wed, 10 Feb 2021 02:44:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDiPq5GFH7Zr7l/YN1FSqEkubhF81drT0Ce3FrxRRvZ5dLHXL34b9/XrEE3qP5v0t48xuF X-Received: by 2002:aa7:d8da:: with SMTP id k26mr2535887eds.364.1612953848777; Wed, 10 Feb 2021 02:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612953848; cv=none; d=google.com; s=arc-20160816; b=PrNcR6cQZ66yvBZk0h5Sd/w/+6NR0CP9OP/8Bn38Ig8Xk1yvC3FMhR1CfynmRMTAC+ vX4xUMgoqpBzDtt02RApGaKFDhNo/R36cjSic8wdIbqgcCGXF1qcq6T6jDTrHPAwYWE4 8bByjZxnlo3SEyMZ1TjkglEE6qMYqciysjDtJDAa7uf4KFSkSlf/kvS+sVFamdG3+wXv g8LsfNFTEpNL/sPp6audLJvRmWhSSxgsr7d3uG2hFLVALQJzWH2uZ8n40cY3YA6wAe1T jJTLtk37qKOMN9qCx3JT7SGkZ8LEaWZqAlWeRlhXewwWUCya2T3zvHeD0pKHJdQspdG5 rx9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=wh0vTlN5xwzrmuM0AHqMMV/jTENHTG631Hbx7eavitU=; b=OdNYl52BiN7Q2AbGM50AbxqriV3QcLvprlSE7H8qTbVPjC8eyjg61lIUagtnjf0z1T vO0sNHanXp4gv08BVsRcpZC5XQPI6ElaZ9w/Z5ewrCoQmoyU3FQ6dUxaDRYXnrC+oRcF eBqeVZGVIp4VOlvLAn0fOA2ifAzcKCa5INJrurnMTw6Ent/dlQ3oj+RvlfVW+BbO8tNZ GVsm7aE5eOVRVAIgW2clBsRfAex8J+NfIDZJXH+9Y1YJrshRLcWv4JsJsBNHWJOjEgmX ALYTkd2m15GoMs1lwcvhVjt2W87C3RUgQ5Lo6XntNeUg8OrsEEbllllGUKarPPtHougb zMmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Ja1dQUdo; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c67si1094868edf.523.2021.02.10.02.43.44; Wed, 10 Feb 2021 02:44:08 -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=@walle.cc header.s=mail2016061301 header.b=Ja1dQUdo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231352AbhBJKl0 (ORCPT + 99 others); Wed, 10 Feb 2021 05:41:26 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:42263 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230417AbhBJKjI (ORCPT ); Wed, 10 Feb 2021 05:39:08 -0500 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 59A0323E64; Wed, 10 Feb 2021 11:38:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1612953498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wh0vTlN5xwzrmuM0AHqMMV/jTENHTG631Hbx7eavitU=; b=Ja1dQUdofMfZzdNohvdRWJcjdbK5gNJ5QfdLojNaWUP0Bz1x2+Ses6OB922d6G4OpHyOSb ZZYrqzxVZym7uacqfIbLjHTwCxFdhbCXIhg72XIHqcAL+90f04vhiMCq5OtEhEIZHds/Ji KaBnAH2nS+r4dY9T95BYOosF487Oyb0= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 10 Feb 2021 11:38:18 +0100 From: Michael Walle To: Russell King - ARM Linux admin Cc: Heiner Kallweit , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , "David S . Miller" , Jakub Kicinski Subject: Re: [PATCH net-next 7/9] net: phy: icplus: select page before writing control register In-Reply-To: <20210210103059.GR1463@shell.armlinux.org.uk> References: <20210209164051.18156-1-michael@walle.cc> <20210209164051.18156-8-michael@walle.cc> <20210210103059.GR1463@shell.armlinux.org.uk> User-Agent: Roundcube Webmail/1.4.10 Message-ID: X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-02-10 11:30, schrieb Russell King - ARM Linux admin: > On Wed, Feb 10, 2021 at 08:03:07AM +0100, Heiner Kallweit wrote: >> On 09.02.2021 17:40, Michael Walle wrote: >> > +out: >> > + return phy_restore_page(phydev, oldpage, err); >> >> If a random page was set before entering config_init, do we actually >> want >> to restore it? Or wouldn't it be better to set the default page as >> part >> of initialization? > > I think you've missed asking one key question: does the paging on this > PHY affect the standardised registers at 0..15 inclusive, or does it > only affect registers 16..31? For this PHY it affects only registers >=16. But that doesn't invaldiate the point that for other PHYs this might affect all regsisters. Eg. ones where you could select between fiber and copper pages, right? > If it doesn't affect the standardised registers, then the genphy_* > functions don't care which page is selected. -- -michael