From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C984C4332F for ; Tue, 12 Dec 2023 19:19:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377118AbjLLTTG (ORCPT ); Tue, 12 Dec 2023 14:19:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233067AbjLLTTC (ORCPT ); Tue, 12 Dec 2023 14:19:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF5F2AF for ; Tue, 12 Dec 2023 11:19:08 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16CECC433C7; Tue, 12 Dec 2023 19:19:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702408748; bh=VxUoH5W5QC5FMheEWzI9jkp0t9473bp8pPVB/cabv8Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EJnt4hSjmhNoJdTQBC3pAIpLXXR60HMnuj7GY98aRzTVrTSMiSR7FQbNGgf04MACC UEJ1I75/BzQawTP6amcrMVoo0fzVVH7OlW78OY6upyqPsEBEtzu9wXuOK4cq0IQcMB FY1j3CqXTyoH0rLYlxeUcXAkSHJ694vOd9CmFZA1LTtN2Aw6hvxBwfuCRR2ZBcUic2 vZakpo64JMHxfEPwV5B47K7y5b12bTDGFDkhaPDhK97iLDYpjLBuEOBVsbTlMpDQM5 eqanzn7KJPQhcAk5KQfqIiu+NkkKPr66qK4V6//XNdTbTj6zMhgO0WG4zrZO7B8kbR oY8UG/MKLO46w== Date: Tue, 12 Dec 2023 11:19:07 -0800 From: Jakub Kicinski To: Justin Lai Cc: , , , , , , , Subject: Re: [PATCH net-next v14 09/13] rtase: Implement pci_driver suspend and resume function Message-ID: <20231212111907.543e8f04@kernel.org> In-Reply-To: <20231208094733.1671296-10-justinlai0215@realtek.com> References: <20231208094733.1671296-1-justinlai0215@realtek.com> <20231208094733.1671296-10-justinlai0215@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Dec 2023 17:47:29 +0800 Justin Lai wrote: > +static int rtase_suspend(struct device *device) > +{ > + struct net_device *dev = dev_get_drvdata(device); > + > + if (netif_running(dev)) { > + netif_stop_queue(dev); > + netif_device_detach(dev); detach stops the queue, you don't have to call both > + rtase_hw_reset(dev);