Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2618725pxb; Sun, 24 Apr 2022 21:09:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3ywNtJWNzflH0TFFgmGUwNBeYNXAZWZ23+rBI72jL2o4mLHR26jo04mGvpFaeZNcCSi9t X-Received: by 2002:a63:e452:0:b0:3a9:fd43:fd10 with SMTP id i18-20020a63e452000000b003a9fd43fd10mr13443098pgk.541.1650859769787; Sun, 24 Apr 2022 21:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650859769; cv=none; d=google.com; s=arc-20160816; b=JxFsoZpWjSVjlpSpwJSsTTST51qFiAmotbu2+zeFB4TrWqXwJQTXqlkB3c5aVm2kDc QvPe0lal0pdfo6kSRu3f5cNVY+hDvpAlqKNsBrYPECtZwCQWZOY2bCR6pJ6Qgdm5se56 zjT15OetLvyB0HwLfhK89yUarfN4faw8+BTzF0cbY105BvVM3iPfAfgbTAO0g+8jX6xg FAiieW+QrVu4KnU0h0Rzd1G2nATpXTxISHNJb+dPI+13ZPWWHex8kMvC8+14N5F7SJbX 1EkTHJSFj6X8T2PIT0PQjQR29Jcf1x/jWJUpf+YKLmvsbfdssrjsB7LFIx9g5oaVALma ftMA== 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:dkim-signature; bh=7UroR8cAk0U12qPAV3NETzrxsB+mhh/WgYHXhvV0K1A=; b=vWR35JymS4Rwd0qmk7WG3jkf3AnFlljif1BrEOrH8c1q8GMsaUcUSufACrTF0OOwff fb2r48y4JLWQQxyj8qRFae/vtBKqHXpkoWd1HRBcumubtnJu6W9N187ZP/aqSi9d9qUH MWKYlUWT5U+M8hQppRhdA6KQkXVatZvPEQVvLjoFJJrrYHogkwtbi2ApSlv8rYVDGdPi CcwjrIYUXWjR9Dd0V8brgxycryNtKzAjMHlrWOQmfoIl/CdFejXfB3Paw7cZe/c3LMAq s43NVeYDaYnVBxcQMcSTYce455eoULFRulaJgyCJ+72PoKugXpb3JP8KLWgSgq0/a4id NFQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=AiBlkAMT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p9-20020a17090a680900b001cb7af1047esi14199896pjj.100.2022.04.24.21.09.11; Sun, 24 Apr 2022 21:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=AiBlkAMT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238886AbiDXTaD (ORCPT + 99 others); Sun, 24 Apr 2022 15:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236178AbiDXTaB (ORCPT ); Sun, 24 Apr 2022 15:30:01 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B950063BDD; Sun, 24 Apr 2022 12:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=7UroR8cAk0U12qPAV3NETzrxsB+mhh/WgYHXhvV0K1A=; b=AiBlkAMTTAwBXjlgFs684hKIuv +XSB8CvcFDntfNe+k8tbirvzR1X1otSngrByisNnqvqYM1y4O4rSsShVCx7SOg4mxBdjuD16j+f9D E1o3W87v+EI7dDzLHAmj03RS1wwgrGeNfRswhAzCHJObnG9stn0tFLRtJhpKLpfzc+9s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nihso-00HIdF-G3; Sun, 24 Apr 2022 21:26:58 +0200 Date: Sun, 24 Apr 2022 21:26:58 +0200 From: Andrew Lunn To: Nathan Rossi Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Behun , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH v2] net: dsa: mv88e6xxx: Fix port_hidden_wait to account for port_base_addr Message-ID: References: <20220424153143.323338-1-nathan@nathanrossi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220424153143.323338-1-nathan@nathanrossi.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 24, 2022 at 03:31:43PM +0000, Nathan Rossi wrote: > The other port_hidden functions rely on the port_read/port_write > functions to access the hidden control port. These functions apply the > offset for port_base_addr where applicable. Update port_hidden_wait to > use the port_wait_bit so that port_base_addr offsets are accounted for > when waiting for the busy bit to change. > > Without the offset the port_hidden_wait function would timeout on > devices that have a non-zero port_base_addr (e.g. MV88E6141), however > devices that have a zero port_base_addr would operate correctly (e.g. > MV88E6390). > > Fixes: ea89098ef9a5 ("net: dsa: mv88x6xxx: mv88e6390 errata") That is further back than needed. And due to the code moving around and getting renamed, you are added extra burden on those doing the back port for no actual gain. Please verify what i suggested, 609070133aff1 is better and then repost. Thanks Andrew