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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6236C433F5 for ; Sun, 24 Apr 2022 19:27:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238978AbiDXTaE (ORCPT ); Sun, 24 Apr 2022 15:30:04 -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> 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