Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4139029ioa; Tue, 26 Apr 2022 18:29:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp9JSLwNI7tddUZmvwVxvJHKuM9CkeGUjHpyrfR4pV9aXPfU0ZL2Qr8BL3Dz/4DLL7/kTN X-Received: by 2002:a17:902:d507:b0:15d:11cf:ca68 with SMTP id b7-20020a170902d50700b0015d11cfca68mr13393156plg.38.1651022974350; Tue, 26 Apr 2022 18:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651022974; cv=none; d=google.com; s=arc-20160816; b=g5VdLgF9l2/r6mYVD5l8hBYjp5Gi4ko8Rw8Bbo/lbQDcbvL8qy/NKu4M5UfJm9K6rM lnN3hhkoEnyAnQ2o2Ojh0COGVsCNRhKiQzRqwNraFA49T6eiuBuLVPTKWUuNqQc7KSw6 jdB7h7FQS8MofzGqIQ5T3UUfHCpfhayWPNrpW9/FtuQAdIi8LFU44iABLYGu8Ay3Jio4 3o0mpMsfrXWmYOi5BQvoEmrYILR7rZIF4fsIzkeBZS1xJTxzFyH1m9YfpHjKmadm93no XxO1kAeryQMq38qFnPr0/jxv1NY1p2QymLNtfO3FWdOY/rZQ8M7NGfoSCw2tdg6BoyFV Hxgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1LbavT3LkvBnPpf+Xg/axGsnbaFHBATYMxSGbn93c9A=; b=qmSdolNyJugdTwr0Zo6qVC4vSZQdt1uewMs9dKfEOx4eOrBAaCJMld61GdFwQkZNMY rjOYR0gtpN4zcBu6Ypwht0RvoSHoFTB68jHkvxJ6EXGqAPTvDQxtOJcKkK5RhhlnjB60 0d8F2bvV3cZ07pC6ov4rYOGNIT+d0EVjIttHNc+UBeH9hxfE5YHSnbzJdByEFK1XV2Ez 3ZSQeOD2Udw1fHkiATsNHIIoSil7iXA7j/6bMeoCoqwSYmTv/jLCv9qoZ1wURug7fvE6 jrd0wG7DGywXGA6KI4b8rwi1Tdb6v2KoFG1INejuSRio7BrlevVcpiP2zSgZAg2nRjQM gYIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nathanrossi.com header.s=google header.b=cIg12B0G; 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=nathanrossi.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay32-20020a056a00302000b0050d33d1578esi8546705pfb.211.2022.04.26.18.29.06; Tue, 26 Apr 2022 18:29:34 -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=@nathanrossi.com header.s=google header.b=cIg12B0G; 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=nathanrossi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349225AbiDZKuQ (ORCPT + 99 others); Tue, 26 Apr 2022 06:50:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346220AbiDZKtb (ORCPT ); Tue, 26 Apr 2022 06:49:31 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F8682A734 for ; Tue, 26 Apr 2022 03:45:34 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-2f7b815ac06so101244907b3.3 for ; Tue, 26 Apr 2022 03:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nathanrossi.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=1LbavT3LkvBnPpf+Xg/axGsnbaFHBATYMxSGbn93c9A=; b=cIg12B0GcGwK6aaDPRlq4eNs7XBHGZROmNxN9pbLNI2/ziSDKEC4sgQ55w+XG4xL/R MOI39pNJYUAWUqc9Y8BZXm21OQqK26E2NcASnlhKxZkdTBhq/HTiryR/v+4kA7VKbBTg Hsy3CO4GKV89QUNmn9y4KDQ3CFfWtt8sn6GNqty8VscXO2Guj3y1gHCXbOLtj/TN8Qnw rWemHgAeKY+8WK6rlObkeXIqq4Xkt6RAklG0BaqwKncvRGBBruVg2OtY61akuyXqchRI S7bYVLDDlq99ydH3IyvGYTEHFy9KSkm9dDLEfWq0Mx0Mm8ZDfxgMub8sDNIHfSeRGZ4X S9DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=1LbavT3LkvBnPpf+Xg/axGsnbaFHBATYMxSGbn93c9A=; b=duaE5GKIauYZN4DXfSVjyXn1hXAjEIC0VkFuJlZQY45iOh8xUnV49qEAP2sbRJjNGc 0AbxxaWVHN9L8Fau8BJNYaHrbE/VpG2DAVu6/tDn8C+4JMZAMVLlaKCOgMa1Kne2KAr4 +Yw6YBSlg3It9zV9YuAHDht2HqlniZNtMYDhURXlbbN+wIQ+vtOWL1gXRigmWUOvOeMw KI7s8v5eMS6kdqplXOR++C+5O/nYCm2/bKx4UhxuSbsfbmwwlNx950rbazxz03mFe4e8 lJyzcyYiDNiHfzPOrIGBEDvEILbbzyjRC7BuwIOFUJ3CltlGYQDTodhwskm2vuNmCSrC uEUg== X-Gm-Message-State: AOAM530+vRqrtvTwxM58kr/IVyG+UVzEoExduQRbZFp8FCx/6gvxlTin 9o9S/OSrv7yUxU7o19FVkugE2+NtYqBrlmj24DeYvA== X-Received: by 2002:a81:3648:0:b0:2eb:c4c2:2920 with SMTP id d69-20020a813648000000b002ebc4c22920mr20999279ywa.291.1650969933910; Tue, 26 Apr 2022 03:45:33 -0700 (PDT) MIME-Version: 1.0 References: <20220423132035.238704-1-nathan@nathanrossi.com> <20220423152523.1f38e2d8@thinkpad> <43773a65a27cb714e3319b06b0215fcb0471aae6.camel@redhat.com> In-Reply-To: <43773a65a27cb714e3319b06b0215fcb0471aae6.camel@redhat.com> From: Nathan Rossi Date: Tue, 26 Apr 2022 20:45:22 +1000 Message-ID: Subject: Re: [PATCH] net: dsa: mv88e6xxx: Skip cmode writable for mv88e6*41 if unchanged To: Paolo Abeni Cc: =?UTF-8?B?TWFyZWsgQmVow7pu?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Tue, 26 Apr 2022 at 17:50, Paolo Abeni wrote: > > Hello, > > On Sat, 2022-04-23 at 15:25 +0200, Marek Beh=C3=BAn wrote: > > On Sat, 23 Apr 2022 13:20:35 +0000 > > Nathan Rossi wrote: > > > > > The mv88e6341_port_set_cmode function always calls the set writable > > > regardless of whether the current cmode is different from the desired > > > cmode. This is problematic for specific configurations of the mv88e63= 41 > > > and mv88e6141 (in single chip adddressing mode?) where the hidden > > > registers are not accessible. > > > > I don't have a problem with skipping setting cmode writable if cmode is > > not being changed. But hidden registers should be accessible regardless > > of whether you are using single chip addressing mode or not. You need > > to find why it isn't working for you, this is a bug. > > For the records, I read the above as requiring a fix the root cause, so > I'm not applying this patch. Please correct me if I'm wrong. You are correct. Sorry I forgot to reply to this thread after posting the root cause fix. For reference the root cause fix to the issue mentioned by this patch is https://lore.kernel.org/netdev/20220425070454.348584-1-nathan@nathanross= i.com/. Thanks, Nathan > > Thanks, > > Paolo >