Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6197123rwb; Tue, 22 Nov 2022 09:59:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6xvlg5et9Om/b5T+cJuE19YFSxAWvufBwfx9R9md0GrZofvbwq94Qf7A7MrvTly0U5wtTV X-Received: by 2002:a17:90b:2341:b0:218:a506:4fdb with SMTP id ms1-20020a17090b234100b00218a5064fdbmr13823654pjb.207.1669139995714; Tue, 22 Nov 2022 09:59:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669139995; cv=none; d=google.com; s=arc-20160816; b=KoGCqMe8EW/CHXrpOoMPW1fwYskDUUlq3Jl03c5OvXIUuw73WA2K9FVckksgJpHlHt TWOKwl4quUtZ428iWM5CktITagrXA29j+wtAtN+sYZPDv6zB/XC8WulgU7wE119ch7PH dremqThzy2OpRjwnZMis6DbcheK7hsUGpNaRwapcsx8BRIUMpZAZkWGbQ+y3ZrgKe33+ 64MlclGHCD1KPdU9CNp8Ccx5uZTqZmnQJTrDIfLwoJmguYbntoaz0DNya3UDQuUVPwX7 NIJ5BD+7qii3gCfAVk2ZG07ACDcXHB+aTYIrWb8z2GqQGKEIPF8eTiPNAioPZc77hfVl hTEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RufBU7ebgNvXoaLqdRONw7MNH3h/l17JTWuosqTYS0I=; b=tVF0hioh/Og/Ner7pNunnJ1HUyXpH306+yAtnjsl7p9ZyBrMwwWrttTcOPrRaobkc3 KS5pWfkwQZ8unybjExUFR3SAUl1A36BhJd65Fv/Umgjz/dyENiW06cT8GGVy7oCp6EuB mxsz9Pn+XP2j0vecj+TN+fRnEkQUyvjvSASbKHgwfyuyBDsA0+sQPiyvt2SRbguXzdN9 qG37QnGFDE7IQE3SPTkNW0+u+zao2K0DdgUoGSoZqxpSKPXua3XfwFCWLo6ahiPDq5mA XlH7L6cm7mMnG8ufS+QlbzX2IP7fucajH369asNk5jXhZ3x/Geja8pIM64g1bQgDbsrt elPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RRH0pvoQ; 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 b18-20020a170903229200b00177fd8409b7si17321601plh.73.2022.11.22.09.59.33; Tue, 22 Nov 2022 09:59:55 -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=RRH0pvoQ; 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 S234217AbiKVRbc (ORCPT + 90 others); Tue, 22 Nov 2022 12:31:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233609AbiKVRb2 (ORCPT ); Tue, 22 Nov 2022 12:31:28 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6DA976158; Tue, 22 Nov 2022 09:31:27 -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 61308617FB; Tue, 22 Nov 2022 17:31:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F0AEC433C1; Tue, 22 Nov 2022 17:31:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669138286; bh=8UBCk1aFjds98RFSFgY4MTnbmw5QfgG8To9lYS+ZhDM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=RRH0pvoQjD3xu/oyiV17c0bwqmbvH5UCloVcM5GILhLduVSU/rHrgiaDMrT/ZmUZ8 CN6VSOizLrwY2jtJ2pAG2+4eOFS1c/TUv143en4fkVHfxycFuth7sI6oA/iEgx1cY+ L7wKGbzv5ff9+VrqfP+fKfxh0SrbnLsLEYH9ZqqmoFj8Sb+SYTwhQTjJXBr6Fp822O QJQ+n858iqMVtoL4zXwplylq7hFYZ3XQgp87txFCmxa//4vac+DOUK9HGUR6Zf1fEZ ML7IqkLADksC23kJ5x64LAg5QCj2aCqejcA9/Cq0gHAhuSPVmU/mKCSbUzB3nnLr5+ wMLvX0Q1uqpLQ== Message-ID: <22ecf134-233c-8c17-2c8f-0bc3ad761c76@kernel.org> Date: Tue, 22 Nov 2022 19:31:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2 1/4] net: ethernet: ti: am65-cpsw: Fix set channel operation Content-Language: en-US To: Andrew Lunn Cc: davem@davemloft.net, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, vigneshr@ti.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221121142300.9320-1-rogerq@kernel.org> <20221121142300.9320-2-rogerq@kernel.org> From: Roger Quadros In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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,NICE_REPLY_A, 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 22/11/2022 02:58, Andrew Lunn wrote: > On Mon, Nov 21, 2022 at 04:22:57PM +0200, Roger Quadros wrote: >> The set channel operation "ethtool -L tx " broke with >> the recent suspend/resume changes. >> >> Revert back to original driver behaviour of not freeing >> the TX/RX IRQs at am65_cpsw_nuss_common_stop(). We will >> now free them only on .suspend() as we need to release >> the DMA channels (as DMA looses context) and re-acquiring >> them on .resume() may not necessarily give us the same >> IRQs. >> >> Introduce am65_cpsw_nuss_remove_rx_chns() which is similar >> to am65_cpsw_nuss_remove_tx_chns() and invoke them both in >> .suspend(). >> >> At .resume() call am65_cpsw_nuss_init_rx/tx_chns() to >> acquire the DMA channels. >> >> To as IRQs need to be requested after knowing the IRQ >> numbers, move am65_cpsw_nuss_ndev_add_tx_napi() call to >> am65_cpsw_nuss_init_tx_chns(). > > It is probably easier to review if you first do a revert and then add > the new code to make suspend/resume work. Thanks! This will make it much easier to review. > > Andrew cheers, -roger