Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp178060pxb; Thu, 12 Aug 2021 13:43:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVufs1te06M/mgaFochRKvHKZ1+KuLsevI3/2hLq/OGBgqz+QRlwsHdILq28pyHJrdHQRH X-Received: by 2002:a92:de4b:: with SMTP id e11mr343710ilr.22.1628800980199; Thu, 12 Aug 2021 13:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628800980; cv=none; d=google.com; s=arc-20160816; b=doQ4afFIbiRGm0STwGrBRuD9r9gf+ntj/xMyaTjBDCuEtlbW4BugfaYhNbdgV8GbOU xcyYBA440AWHLh/O0sMfm7aH5Zfn78RFPpOQ/Ux5d3LVIrp2r6RLZv9KyK8b7pymAKNN ELYRBt3ACXpqbswpWw+o/GEGZsOnUFeg8JNeV37n75BhPNFWXOSlbBAy8/+bDVghjqWX jYBEBbGAG5En2ZGC2P6w3muxw8Zz7QlOYQxjo6dJnPaYMBZKSsxakWgWDY5qPS1B4TzW 0NyVpTLiKjT8FeBQF4y0nnK/E7KckKzSvDQ04Zo2sVaWA5Eiwvp9LG7NDgZOgDT52GR+ r53A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QSpci64/hMqy88Q22faTec2s8wp9JGPuRuA3v3rI9YQ=; b=ADZ/iDJOZfqX+XfKgJJujcFrMDda3ZyC/RdMokjzIHAdyhZfTlidriBSJEzTfewK0n nWB93U5LwBoKjhU/kndkjC4vZJr7qDed7bd+9pQMfK5Fl+qLyZ9+U3Kw5oiDMIQ9W3vj +EHNRrOlNINwUNimPTFgCabsFz5YAQp0k3dnzSE59b4vK7gHIgG2LlcFVbP3XIauIvW0 VOfMpF1FFhn3vSZgppOyq5/qCftKxTFgbkB+oV3/r2qZ0yGH/+pZqxHpCGZ+81RWW4q0 jW7AyDpPrmr/e8gRi0yZzwU5RvGpfOSjwTAXVWoJyjoZV/+LlWejW0SRYM4ebK5IDj6d FGdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P3PRMZs3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si4159103ioc.58.2021.08.12.13.42.47; Thu, 12 Aug 2021 13:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P3PRMZs3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236733AbhHLTvS (ORCPT + 99 others); Thu, 12 Aug 2021 15:51:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236114AbhHLTvJ (ORCPT ); Thu, 12 Aug 2021 15:51:09 -0400 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6340CC0613A3 for ; Thu, 12 Aug 2021 12:50:43 -0700 (PDT) Received: by mail-il1-x12b.google.com with SMTP id k3so8303726ilu.2 for ; Thu, 12 Aug 2021 12:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QSpci64/hMqy88Q22faTec2s8wp9JGPuRuA3v3rI9YQ=; b=P3PRMZs3/UXYGNdQf6SaCtATu/V7phGy1FxQf7KjkvhAxxvjN3hT//M8K4o4ZBQ7Fq 3dHx2dIcLC6jIsftPgWyWs4noXGATMniiRJxxFAbN+j8t+TDnsM0qUHYoiPwh2EVwWo/ ud4rYqKOEe1v1AjP4t4lIJ2aLiAcK90QyRTg5+/+EAwD/DhNv65eQwPX7XPjsJAn3Hnd HPvYsAR4a2STwLpB2581d7NsTAR83QTdTPApN1cOmTWAq78WAkIrlbQytKTiVPEY4q22 QandDbjzdrgMHQyogapKm+tDPg3OG8Ppe80H/y0rLEo/erFfc63hrdVTULUsJnEeMXXF cb+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QSpci64/hMqy88Q22faTec2s8wp9JGPuRuA3v3rI9YQ=; b=eUUCM+nGsuB8LStRxbwWk1blfOFVuux+UAYK+mndqoYFrzDwbSmqd2/4ksAEDfFECU YpzcFRickls3upbxcISkFkFBXZ+YERIMb52lnU8N50EfP7Sr6fu0cF8y7dfaVN7RyWp7 JO0W7ppmCYVAeSlhFLpKV5sub/foY25csSChbBARuNqR/M1K6HsepC8WcUHx4X1lZcG9 M1tYEkVFdXv1pCw2iGOjZ7s27XE00UqUDK2AA9cRz3c9CyE0Zq6azVAPacPBpIOYGLN1 kia4d9DDRlwn5ioNUYJBbf3PCVlWj9hWQzZJAg3VA07H+rz7Hs+rTxDMqszGCsOaLzRV /LPg== X-Gm-Message-State: AOAM532WpVMW9sRthi+NzsjnacZpoLO46TbAoiHBoAVw6gVHXJcZC+rB YhNj0DSXXccnuC6xGF4Ldxixag== X-Received: by 2002:a92:d18c:: with SMTP id z12mr176696ilz.295.1628797842839; Thu, 12 Aug 2021 12:50:42 -0700 (PDT) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id s16sm2058821iln.5.2021.08.12.12.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 12:50:42 -0700 (PDT) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: bjorn.andersson@linaro.org, evgreen@chromium.org, cpratapa@codeaurora.org, subashab@codeaurora.org, elder@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 5/6] net: ipa: don't stop TX on suspend Date: Thu, 12 Aug 2021 14:50:34 -0500 Message-Id: <20210812195035.2816276-6-elder@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210812195035.2816276-1-elder@linaro.org> References: <20210812195035.2816276-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently we stop the modem netdev transmit queue when suspending the hardware. For system suspend this ensured we'd never attempt to transmit while attempting to suspend the modem endpoints. For runtime suspend, the IPA hardware might get suspended while the system is operating. In that case we want an attempt to transmit a packet to cause the hardware to resume if necessary. But if we disable the queue this cannot happen. So stop disabling the queue on suspend. In case we end up disabling it in ipa_start_xmit() (see the previous commit), we still arrange to start the TX queue on resume. Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_modem.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ipa/ipa_modem.c b/drivers/net/ipa/ipa_modem.c index aa1b483d9f7db..b176910d72868 100644 --- a/drivers/net/ipa/ipa_modem.c +++ b/drivers/net/ipa/ipa_modem.c @@ -214,8 +214,6 @@ void ipa_modem_suspend(struct net_device *netdev) if (!(netdev->flags & IFF_UP)) return; - netif_stop_queue(netdev); - ipa_endpoint_suspend_one(ipa->name_map[IPA_ENDPOINT_AP_MODEM_RX]); ipa_endpoint_suspend_one(ipa->name_map[IPA_ENDPOINT_AP_MODEM_TX]); } -- 2.27.0