Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3511944ioa; Tue, 26 Apr 2022 05:11:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu9PBwXjiImUEwxF6r+q1SVRkJtXZPoMnqT7JZsCXMdDm91ZL3cbdXPsqXnsh1OeEa48DN X-Received: by 2002:a17:906:4884:b0:6f3:a042:c1c6 with SMTP id v4-20020a170906488400b006f3a042c1c6mr6864522ejq.363.1650975092253; Tue, 26 Apr 2022 05:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650975092; cv=none; d=google.com; s=arc-20160816; b=03c/W5Y6HRq4tU2xxQWdk2hDiFYQfrfM3cUwptOkgLQf7Uh5si5jVTjzXBFSIcpUB8 LQBVlAeARRhwlow+jvbRzLTyyL+XL7IPBFt/pBAjSE3rm6jhv2F2S3e+y+lm4xq/hxme g+Dovgvuo3WyzkSe1z+mabtvEkQNyoN5N7zt/pnCyXcZGX78q37yIdtOdSFaPuzX2qa4 VOR76cRw13JHEr1Z7+z27MNrG8Mia+H/lDhDGr/VHU+Wdkc+zcPX8wBU3o+XPlhGISMl PdU4kbIEsJJS4ec8n8EG3EZof/8v+YuWYir3tLSg8bRzRwOKWfIz1hgO4Mq8RmkYOPXZ iG2w== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=cgkVeFtk7kmhzt6NM7uvR8g8Xij0kTOqB1NgwHZ6ZsY=; b=Z+f6vtvFxPhnnU0KbtSvNSw4KtwQ8uClxrOBxIBcj6mIBvaPoL+5WE0kj9+dPIVrQW zhHFTdD/ysk7Uk7/9tLE77T35/okopkSJfGA0WCIiMD+TorJeyN3/kj+hgEDjuvyTpCq 1zXkj/yd1dXLQ1dCgs5O8ftf+Y6x3bTmD3Q0ZH++M9njqe9Cccrg2Yjr2Er746YVJbQP CvIcXgo8oqZ0GzIyYM496tYPckUR62AAv8GHrWcVD6Qfk+9biwvIx/veeedQd5kiFcbV by1X/wjb7+2/KpwaiIK97OhCbvF2QsoDW5YPsEO+zVrH7LY5e6OaoDSik9HScPpD14dQ Rrew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a59q494p; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gk4-20020a17090790c400b006f379b8cc27si6733339ejb.184.2022.04.26.05.10.50; Tue, 26 Apr 2022 05:11:32 -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=@redhat.com header.s=mimecast20190719 header.b=a59q494p; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344331AbiDZH4B (ORCPT + 99 others); Tue, 26 Apr 2022 03:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344369AbiDZHx2 (ORCPT ); Tue, 26 Apr 2022 03:53:28 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9364ABBE for ; Tue, 26 Apr 2022 00:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650959419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cgkVeFtk7kmhzt6NM7uvR8g8Xij0kTOqB1NgwHZ6ZsY=; b=a59q494ptKU78H9wmlev01aL+1O07FEawGMwH+AcNno+vcdP60afKnBN70DQVTupPmPWin jCeddQTo1ptMYgUwTpa+5REUAMusTduh7WV/qzasrj9rdEUHPq2E3i70YUhu5oE9vpMzwl xWa9Cxc6B22gdHc6w327Nh/IvI/C+2g= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-630-QLIHlhc5MOyuKUKEui5Mtw-1; Tue, 26 Apr 2022 03:50:18 -0400 X-MC-Unique: QLIHlhc5MOyuKUKEui5Mtw-1 Received: by mail-wm1-f69.google.com with SMTP id az19-20020a05600c601300b003914ac8efb8so513101wmb.2 for ; Tue, 26 Apr 2022 00:50:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=cgkVeFtk7kmhzt6NM7uvR8g8Xij0kTOqB1NgwHZ6ZsY=; b=TvnSHhIt/uaoQBCVh6WIUWZtmUtYt22DIq5VC67ftatkf8F52hZ0jLMGJzdy9DAYDZ l+cy6komuntKKJqzBUNaL6opxtAHghLO3VR/0A1SbwvYG0YomjjKDCSGD3CWPDs8n3Vq F7M8N9enSDcxrtjWBt60U2oE9twuch2Ma+cbO/BIYs4FFWV7zhNQxmIEy3SUN9qmxaBt vW5IvFnsLdxO2U643WBhWbJHfPcXvU9FkjnjLuoAnFLk/5hDdfbaEadECG++h9RZAPsx +kKMl9ukKdlfYpziwk15EtBw/fffoWfMr2Rb+cz30YhsXcEaZnm325zmwLrDjGL3WO5r Gr/Q== X-Gm-Message-State: AOAM531AXpZb7K982xEiZj7CwrjvBkQsV67EnF1dQZIdZJUfl6UfBHy5 Erp5IlQ46Vannj0FLs3uR/YQMDGN8U/JTggc1nsKqgxywwxjm8+O48ODdh/ciBh2ncRDg8ysRLq Ih6jlRG60o4vwLa7icc1j6+Uu X-Received: by 2002:a05:600c:5c9:b0:38e:d44a:4cc1 with SMTP id p9-20020a05600c05c900b0038ed44a4cc1mr28698027wmd.124.1650959417063; Tue, 26 Apr 2022 00:50:17 -0700 (PDT) X-Received: by 2002:a05:600c:5c9:b0:38e:d44a:4cc1 with SMTP id p9-20020a05600c05c900b0038ed44a4cc1mr28698015wmd.124.1650959416879; Tue, 26 Apr 2022 00:50:16 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-117-160.dyn.eolo.it. [146.241.117.160]) by smtp.gmail.com with ESMTPSA id b14-20020a7bc24e000000b003899c8053e1sm11841188wmj.41.2022.04.26.00.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 00:50:16 -0700 (PDT) Message-ID: <43773a65a27cb714e3319b06b0215fcb0471aae6.camel@redhat.com> Subject: Re: [PATCH] net: dsa: mv88e6xxx: Skip cmode writable for mv88e6*41 if unchanged From: Paolo Abeni To: Marek =?ISO-8859-1?Q?Beh=FAn?= , 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 Date: Tue, 26 Apr 2022 09:50:15 +0200 In-Reply-To: <20220423152523.1f38e2d8@thinkpad> References: <20220423132035.238704-1-nathan@nathanrossi.com> <20220423152523.1f38e2d8@thinkpad> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 Hello, On Sat, 2022-04-23 at 15:25 +0200, Marek BehĂșn 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 mv88e6341 > > 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. Thanks, Paolo