Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1615983pxb; Wed, 10 Feb 2021 12:29:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0KF5OXs7AjTmc3/6vpWfXQUa8cM4987mALj+jXD1LHafz1KPrf4iBw/M66A3oZronUkIa X-Received: by 2002:a17:906:e03:: with SMTP id l3mr4723667eji.64.1612988969464; Wed, 10 Feb 2021 12:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612988969; cv=none; d=google.com; s=arc-20160816; b=er01DRpwCT/urlli/+/rD1hmTKrOGaFvSw89gpTjrOyetX5QEY55akOUuQLAiv1DYP FVA6aV3dhWLpru+4WLf9jLf1+aZL0WJprp2lm8xxeIO6b0rw4CqvOvvVRx07yiQyTXzm Gx6y9L7IhL31Fc/36sWby+ISdeAKf5rMe3B0Mo/5RlJYONXBhzG1kR2ha/gMRW8xorRL 8hAy7gdI/YogM1vV80vr5Hv54oxVXsJ64h11n8wy539zjX/2qkhAVYCZ4H4BK3HGy6g0 LR9NNIMz0gZFMvcdZ/pMbYrX74X1lOOm1zm/OxzQ35yPNSEARmCkQ6o7MhuGGdprfeYC Bsaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=XTqf2FTXJj+Xrw4tMWW6d74aX9F5JNx6kKNvBSoGhzI=; b=lXPf9LHkl2uCELbbtLTCoIyyIAhCDKb45k8MOAzmy59rC9anXyWqBF/PBY2w/00Od7 Kjr3jzjwxV4XxfOx0zm9tWscUAaIVBh7mHQp0WB4iUMetPZMMIYZ8SwMlxbl99rxJcK6 JtuXRU4BG+2KsmDCxur3hj593VB5MFjLmHp4QAEQEJMiHudZEG+ogyFnLm7LZaHFWU7S ER5yzNQmGLTpumU5RcC4umEu9LaCDJQM9M3PRMoswa8HVLzWyxs2ZDn+eD79fFzd1NgF 52CjwKcZFqlp9TOKU0onPU3wh/kwg+EI9TSAsLs4EvT/oAlUO4T9jPpXuMuUxbJ8JmjS FZ/A== ARC-Authentication-Results: i=1; mx.google.com; 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 i13si1982828ejy.297.2021.02.10.12.29.03; Wed, 10 Feb 2021 12:29:29 -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; 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 S233145AbhBJU2Z (ORCPT + 99 others); Wed, 10 Feb 2021 15:28:25 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:33248 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233131AbhBJU2U (ORCPT ); Wed, 10 Feb 2021 15:28:20 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1l9w5E-005OFt-BE; Wed, 10 Feb 2021 21:27:32 +0100 Date: Wed, 10 Feb 2021 21:27:32 +0100 From: Andrew Lunn To: Michael Walle Cc: Russell King - ARM Linux admin , Heiner Kallweit , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S . Miller" , Jakub Kicinski Subject: Re: [PATCH net-next 7/9] net: phy: icplus: select page before writing control register Message-ID: References: <20210209164051.18156-1-michael@walle.cc> <20210209164051.18156-8-michael@walle.cc> <20210210103059.GR1463@shell.armlinux.org.uk> <20210210104900.GS1463@shell.armlinux.org.uk> <3a9716ffafc632d2963d3eee673fb0b1@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3a9716ffafc632d2963d3eee673fb0b1@walle.cc> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I guess it boils down to: how hard should we try to get the driver > behave correctly if the user is changing registers. All bets are off if root starts messing with the PHY state from userspace. Its a foot gun, don't be surprised with what happens when you use it. Andrew