Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2268471pxb; Sun, 24 Apr 2022 09:27:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSiUtFpxKpUYXbbwDTae/SyP6uP+/T1eGpSlWj0JBEVslNMsXHjBV6P9qVZpCE5HdNUnAc X-Received: by 2002:a05:6a00:1254:b0:50a:55c5:5ff7 with SMTP id u20-20020a056a00125400b0050a55c55ff7mr15039568pfi.85.1650817659701; Sun, 24 Apr 2022 09:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650817659; cv=none; d=google.com; s=arc-20160816; b=dqFX5FzUnGgoF1HexeQ0eZVbVgWhBYrpE/MbzhX5hAFSbVwuFHo3/9N2UuxEcOb/uE HsZ7eqk/hMWrkMTTUjOW1tmZiualRKEsi5nPGwxGdo41EvYqDV7pYmVhjoBdkcOy8RyP Pvel1c+xjiZyburiGHptqqOPBaIUNvsDDn3bYlaABvPmAsyCvmHZBHWJZXBqXoizJL+q D+HyWXW5Edz8sP4HpWZQB1lbnAO1cXXP1k5hhlJPFe34tPYMDaWxQ5U8RnnZT90RoBTu IX9bZYl/qsXYQE1ey86+LhPUOrbuXWrSWCTv/e1UOuMw6mdaSdykKq6BgsTsc3uNXP0z 1kqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=R9BUA7QXAbyt0mA+XirxKQXC4T6pAZr7+lcD18T+lCE=; b=k219Gf+qU/QEZbpfrjNw6292McO9MHgIrQY2VyqpLBPd1Aw6r8iJ6govN3XSPH29+x O7oQwHqjzFFfgimGgATlb4tgFFFgbNgTYdy9SZlpbwhftHTXSQ6wENXUTSf3uiW+AgrP Kh6iCZzWPUVXR31gwq6MXlqutgWL8rnetJ8/dzhCr1uSASh43kH4sgwBxsv1Hv2u1CdG YJDeDkgvT2gcrya3onzhkv3tzwaB2DZy63hvmW5x3y7LApf1UBqn91/7CS5FXDkyDI03 Ozxq4GorHYGJ0vY90mYZj6pHykSnrEMNbnd63DjNzi5zDpI0cRoJh46TdtvRlXnQfYeY HSvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bViU/5da"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 195-20020a6302cc000000b0039d9bb4fff0si13692315pgc.817.2022.04.24.09.27.24; Sun, 24 Apr 2022 09:27:39 -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=@kernel.org header.s=k20201202 header.b="bViU/5da"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239472AbiDXOzk (ORCPT + 99 others); Sun, 24 Apr 2022 10:55:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231394AbiDXOzj (ORCPT ); Sun, 24 Apr 2022 10:55:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D000337BC8; Sun, 24 Apr 2022 07:52:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7A60BB80E4A; Sun, 24 Apr 2022 14:52:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4BECC385A7; Sun, 24 Apr 2022 14:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650811955; bh=VrS0Ke+JASD9dwCpktBbdVYtkBgBLsMZ1lrYaYJS8p0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bViU/5daBiG3nNi+NMeZ6PRCZUGkw2A3WoWzVEJK6a120AeuckM3gQPdbIGTrnJ72 HMcluBSRkIH4Vh5kgyuVKIEvE05JqSHfzSKnSD0GaD2taomlcPy1FqIlgob/5HHBWE UgA5CzdF5H8rrKeIA3/AhaCG2O5xG5p+GziL9KobCAR5598aZ8GuEDTJgv/978i33g cr/D9svcZB8eMXgZQdRgCoCouLjIvJzj6F5z3C/pEKWMo22dFTxVrWoOfXOF+Mc2/M qx3FxCXfdOrMngoppEedD4jcxgM1deqQMya+dwDgtwbQnksCMVM8z5lhYGH4dpYYoZ AVK7fRzZLVjIw== Date: Sun, 24 Apr 2022 16:52:28 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Nathan Rossi Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH] net: dsa: mv88e6xxx: Fix port_hidden_wait to account for port_base_addr Message-ID: <20220424165228.4030aea6@thinkpad> In-Reply-To: <20220424141759.315303-1-nathan@nathanrossi.com> References: <20220424141759.315303-1-nathan@nathanrossi.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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, 24 Apr 2022 14:17:59 +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). So basically the code is accessing the wrong register for devices with non-zero port_base_addr. This means that the patch should have a Fixes tag with the commit that introduced this bug, so that it gets backported to relevant stable versions. Could you resend with Fixes tag? Marek