Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4331423rwb; Mon, 21 Nov 2022 06:29:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf6DCZLyMKJ0c0liUpL1IMR0YoG4U25D7hp1jJbhK1rZDaTMujGJkn5CJ/4pFpVtz/syQuLH X-Received: by 2002:aa7:d816:0:b0:458:4868:814 with SMTP id v22-20020aa7d816000000b0045848680814mr16787821edq.190.1669040976912; Mon, 21 Nov 2022 06:29:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669040976; cv=none; d=google.com; s=arc-20160816; b=E2MXl45hvRmZIjI0qglrCO7ZQkeSFr5BNkMdfpJRI0UxT6dFjO7JOV+COclcoaR7Yf mp8t+K5He29W80/ALXxt1tsuTewn5toCRrh+LiqI0K8DKNsM0OXsHK/DACMb5Q6ELvUE jRx24MSS4sHQVjfdahh3yPV5RHFObcqIUddz1q3JFaNfWbCtgIx8EjF1IMuCVTOCTzYq VYS8gULXVr8MvqfrGXqgt6FMLib+k4arHXJqUH/L4WQ10FNZ6BRL6hFTRG0DGW3rwafd yZBeGZYfHa8knqhKaQ9kaF54RORVxsB214U09JEw0tAfCjQ1q7WZBTz5tHfJOrw3GEb3 tp2g== 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=m2x1+IjFj0NuuwKQicF/kSpdfm3He+XqmPHkRM/9YfE=; b=GdX8vp0wc6bq06q8o6JYAsdU5SqrVKLcVLtMp+LJ+qbqXyk8ZuRbRbh2hYRr9OBy/J BZf4AW8gd9JoNzbtH8vmT6QBh+/Sqa/h8EvKYedqv2z7dyu3YCfitfXqEbfoTMrODY1D UnAdzyX/AnlSzFEtwEYIUn8FAJrbevEF7tyEpCq7c3umBH4LzUCF2lXd6T1NWSiB0wDO 4mqVPl4Zu4g2gBJyUBIG0e4FfyW2BOrEJ+SJGSDnq35XVWeglPwHcX4081NjxRDnpMbD 2VkSXPdi1mbbelahBtCuXF/3eJ5Z/XTbDqOgJbIJqnbZxJASABy916E1oCBcZYXtqCXX r1Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fNDGIKaf; 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 q14-20020a056402518e00b0045d06ea5596si9896693edd.26.2022.11.21.06.29.13; Mon, 21 Nov 2022 06:29:36 -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=fNDGIKaf; 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 S230484AbiKUOXT (ORCPT + 91 others); Mon, 21 Nov 2022 09:23:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230386AbiKUOXJ (ORCPT ); Mon, 21 Nov 2022 09:23:09 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D5311C12; Mon, 21 Nov 2022 06:23:07 -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 C5F1F61236; Mon, 21 Nov 2022 14:23:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F18DBC433D6; Mon, 21 Nov 2022 14:23:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669040586; bh=cUULGy4mgdbSd468FijsWaJOzVXL6DoDInK2H/YTWCA=; h=From:To:Cc:Subject:Date:From; b=fNDGIKafaZDaj/M/kzfmZuJBs5SF53P0Pclx3NvCmL5hAj/dTl+lwzNbUTKhowCcC Y+PHJmTQTreeAC4kKQseKQ+PXb4QczWC9lHkJdvy2jnu22JZGkCFUvAmzCXn9Td/WD GlOtGPYYutUdjZYu6RUMI+eI/SipKfLuYapcMSp72fsHIQPpwt+TznChinqcJ5WLkC igpNFZSml8zHtlPLM5kUvodC9zV2qVed9ds5mF9N4cGmE8YIermuTcwU0C3KLSnBA0 LLT2pRwKV7LaCfItaScEA6IF/AtBPWQPlqvgkmrcgax6aXUEhusl9SIEDFu7s1mqJK 74VktjC25xd4g== 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 v2 0/4] net: ethernet: ti: am65-cpsw: Fix set channel operation Date: Mon, 21 Nov 2022 16:22:56 +0200 Message-Id: <20221121142300.9320-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 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 Changelog: v2: -Fix build warning drivers/net/ethernet/ti/am65-cpsw-nuss.c:562:13: warning: variable 'tmo' set but not used [-Wunused-but-set-variable] 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 | 167 +++++++++++++---------- drivers/net/ethernet/ti/cpsw_ale.c | 7 +- 2 files changed, 99 insertions(+), 75 deletions(-) -- 2.17.1