From patchwork Wed Nov 16 16:49:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 1774 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp247284wru; Wed, 16 Nov 2022 08:57:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf4kCTzvrKju7xEX+mp4J1NVRSN6EkKwLWZe+M06CI+bVtXNJ8PeIwIXy7GfWtB49Dxv7bFQ X-Received: by 2002:a05:6a00:f92:b0:562:317c:2a8 with SMTP id ct18-20020a056a000f9200b00562317c02a8mr24500347pfb.49.1668617855958; Wed, 16 Nov 2022 08:57:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668617855; cv=none; d=google.com; s=arc-20160816; b=zTLqv9+Ubciaq6ebaM8AykvGvnRe2x7NXGH2erIrQxIXFfmcj1NqqInpL+wyUVlB8l CjOnUfV/aZdbKNBak+spHXPnoBLq3Be0Ft4nH9T7HcyA7WQFWEMjdlqF7f5NCPlpZMED YQ0ah9EyeN04BUulmZYmdY47tOd08wp+sRYaqwKiJbGbrFsEw58lefJE/0dDR5M2D1SY NR5WucbL6neUUhKrwwXu2FmrCbXE8PZH6opwY6arT4w4zDWdbTZ99c5bvLOPxUGUEFWG C/BfMa1Pum0NPq4p+wte6x8vomTsQQdRAeRehAcaNp6+SZJRwRkHvRchOrQOsScvcJdf UUJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=ufGYgla5oQPWBriyJ9hqPkkipa+OtiOTIvjzjNGnvBw=; b=hU9ymUHGRXoxLHgHDdFolFCgI54umgxJgx3PsDb6uLV3T9MkoGOBOnO7cUA/IkWJ7U xJPM6/NAPT+2y4FRfZP8VdXdNOEq3WBwK/PzxRh8V0ai9PTfUJ5pD5Gxcktx7M5Eh3+c 6NpSrZKhJ6kfezpzOKKPx3u5A2vb11Kl1cuQuWonHyclwb5V7SdMEamuvFxiuXc7m9wr U85DuCbbzSUzzAj+xn9fpTySmxsEYrst7k00FJcmPUCtqEAmch/RUJPegokMsv6ZMRoQ fSoPnE7KjS5fudKZJE63otoWf752HJrg33KH/6VS2xJtHf3+B+/TZPRmsvYRBvb+bK+K Ep/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fWk8VSQG; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k36-20020a635624000000b00476cd353915si4061254pgb.63.2022.11.16.08.57.23; Wed, 16 Nov 2022 08:57:35 -0800 (PST) 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=fWk8VSQG; 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 S233987AbiKPQvK (ORCPT + 99 others); Wed, 16 Nov 2022 11:51:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239139AbiKPQuj (ORCPT ); Wed, 16 Nov 2022 11:50:39 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3BE05B580; Wed, 16 Nov 2022 08:49:22 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 4058161EEF; Wed, 16 Nov 2022 16:49:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64EA0C433C1; Wed, 16 Nov 2022 16:49:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668617361; bh=3PXc8b0NW5v6xJidUcpApot9Eggk1dZUefh1V9dUkp8=; h=From:To:Cc:Subject:Date:From; b=fWk8VSQG4LrhUsu7cg1IKndN3Hob3rGNPaPU0wO8msrpAkSsfS/TYV/UszE0e9yzZ IvesQNWSpPJeiAZVOZ6WKDKQCT1UKLsL/JUXDEXbjizo8hekz+Vh81P/x1ObI6ZXno 9bN7z29cykEGY0k+2jLp81Yf2Z8kKjV6W/nrifHfqs1kEKkKB0i9IVVTzPWE4Xiq+h AfBCB/7K2iDKihV1gSs7zdkLtVhZUVQVoc6Lwt9E3L8TeqCFYEj8FR5s5SNWF+I3xG j/BC1uI6gvumL/2BD960NXColdrzoiaDIYWp592eQhn77lcmggLs7P9BUvf8fdme9j YBup39MHr1ixA== From: Roger Quadros To: davem@davemloft.net, kuba@kernel.org Cc: edumazet@google.com, pabeni@redhat.com, vigneshr@ti.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH 0/4] net: ethernet: ti: am65-cpsw: Fix set channel operation Date: Wed, 16 Nov 2022 18:49:11 +0200 Message-Id: <20221116164915.13236-1-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-7.1 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749672636971697281?= X-GMAIL-MSGID: =?utf-8?q?1749672636971697281?= Hi, This contains a critical bug fix for the recently merged suspend/resume support that broke set channel operation. (ethtool -L eth0 tx ) Remaining patches are optimizations. cheers, -roger Roger Quadros (4): net: ethernet: ti: am65-cpsw: Fix set channel operation net: ethernet: ti: am65-cpsw-nuss: Remove redundant ALE_CLEAR net: ethernet: ti: am65-cpsw: Restore ALE only if any interface was up net: ethernet: ti: cpsw_ale: optimize cpsw_ale_restore() drivers/net/ethernet/ti/am65-cpsw-nuss.c | 166 +++++++++++++---------- drivers/net/ethernet/ti/cpsw_ale.c | 7 +- 2 files changed, 97 insertions(+), 76 deletions(-)