From patchwork Sun Jan 17 21:46:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 365366 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02BBBC433E0 for ; Sun, 17 Jan 2021 21:48:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C8417224D2 for ; Sun, 17 Jan 2021 21:47:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729739AbhAQVrs (ORCPT ); Sun, 17 Jan 2021 16:47:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:56640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728042AbhAQVrr (ORCPT ); Sun, 17 Jan 2021 16:47:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0AD4920791; Sun, 17 Jan 2021 21:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610920023; bh=DsImuYJ84kSef06kOjeMCoxSqfX77ZpNBhBovu1VUQk=; h=From:To:Cc:Subject:Date:From; b=qg+GAWiiN2058uOnmEYwp4QO16n3ujB6c1vUUbTtwtgJSthnWrD3NQuKkzjLvrjmN vV3hwX4D0LTodb8oZFEMhRqtHMR7GN0Misj2NEdeKepjEHC3Jnp1BvYUm++uPBk1vZ Rue/Q64rwRMoScDFBUQ4p6p8/CDgmORwzpu092YPo6UvLoHYGtsNXaGo53RGBw3q1w hv10fBEteJkN9kiAC1tMoO1rrt5GdB2T5EVPa533lp9LjeCVixsq0mjOH8hBkbTIyC vfqsUq77aSGdkSo0zY3gSBZcrTUFySH6NtY5AeovUgEGjZ0sUrtGcbvrzTB8gCSj6t ka2Zoiol93vIg== From: Lorenzo Bianconi To: linux-wireless@vger.kernel.org Cc: lorenzo.bianconi@redhat.com, kuba@kernel.org, z.han@gmx.net Subject: [PATCH] mt7601u: process tx URBs with status EPROTO properly Date: Sun, 17 Jan 2021 22:46:56 +0100 Message-Id: <72392e8341aa8591c0b9962661a6ca26b1198f32.1610919534.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Similar to commit '0e40dbd56d67 ("mt7601u: process URBs in status EPROTO properly")', do not process tx URBs if marked with status set to EPROTO. Signed-off-by: Lorenzo Bianconi Acked-by: Jakub Kicinski --- drivers/net/wireless/mediatek/mt7601u/dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt7601u/dma.c b/drivers/net/wireless/mediatek/mt7601u/dma.c index 234e5059e5e6..85bda46d4cf9 100644 --- a/drivers/net/wireless/mediatek/mt7601u/dma.c +++ b/drivers/net/wireless/mediatek/mt7601u/dma.c @@ -237,6 +237,7 @@ static void mt7601u_complete_tx(struct urb *urb) case -ECONNRESET: case -ESHUTDOWN: case -ENOENT: + case -EPROTO: return; default: dev_err_ratelimited(dev->dev, "tx urb failed: %d\n",