Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp171162imm; Tue, 17 Jul 2018 23:33:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeE3pIElrGDPKV0DKV3PIUp+4ANFHiCmbWeMXrz8aeSzN1HYRxJaBHXSd6WBPpjRWL3o+E4 X-Received: by 2002:a63:1063:: with SMTP id 35-v6mr4567351pgq.249.1531895596102; Tue, 17 Jul 2018 23:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531895596; cv=none; d=google.com; s=arc-20160816; b=YoQ8D3UY1Za52t2URljxEYgy6m8BBas4BuTZXtpE5mZ/jR11bwS7QHAVKh/L9Yi3ZM L6+9Ybic+DID7XxM+GYrquZpyOCzChYvqjx+fbqrwd55woMqq1HfRqeLF+irdVlRgHgQ 8ZHzldmnLKZym3umtJMi2urApDqXLDk8B0RO7tPpyJ6ncCVukEFmCtfLNKDJ5O1bV3yI osDkF0VEtcAJo/ptkL+wsgS2pTpfa/7IctbSTWzBSqdkHSdT5Z+G7AO2wd0blXjj3lE9 XCLaESCA5FMEbfvlY2AzWQmvUL/wEX+85O6Qvg/v1c5t9c0t0APyNg7lSF0m8rg9tmZ1 TmNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=I4PITEqvHD8QjRdkgEIQ+6gpPbmhz9YGxZywu1Oehjw=; b=HaTO8PB3sh76i1jt/nk7HREnXqNUngfR6A8wBF3NQwmd7PlF8dlNSo4hJ6vIPlsbLw UY3g8jklf16oepYtDaAXOU3j95JMc9j7p9dOn4a2zwKgB5Xuo/DxOdO7ruzC0CL+lzKf OQ/xX1V62ziXGu6EnXJvokHsawU/j+merTpy2jHZkki0NGYHQM3xpPFVvCjz2FYGr7OQ n+uX9sKqu7uQNhKskwBYzURNsu4GAam/VYvzg26/f5U+0GkuI6+kuyIaSsIaR+nDi3BH IEEitYbOIUIUXF++76ssbfnWoMAu3qEkd/V+z4OdJk9WJph3UWdikrViyvQjxue348hX I3Ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p19-v6si2777943pgm.109.2018.07.17.23.33.01; Tue, 17 Jul 2018 23:33:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729979AbeGRHIj (ORCPT + 99 others); Wed, 18 Jul 2018 03:08:39 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:54081 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbeGRHIj (ORCPT ); Wed, 18 Jul 2018 03:08:39 -0400 Received: from stefan-Vostro-260.fritz.box ([109.104.32.110]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LZvn3-1gKX8A3kGj-00lmcW; Wed, 18 Jul 2018 08:32:20 +0200 From: Stefan Wahren To: "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Wahren Subject: [PATCH 2/3] net: qca_spi: Make sure the QCA7000 reset is triggered Date: Wed, 18 Jul 2018 08:31:44 +0200 Message-Id: <1531895505-26971-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531895505-26971-1-git-send-email-stefan.wahren@i2se.com> References: <1531895505-26971-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:7pL8SFbjMtCO7yuXtKQfn6UAFngKV1aJcG+QD0iqhHEFj1Mp8xG 7/4QubX88LbwEDf5+G7iK9rfGicnWcDKdM8MhBGMHbc7wCvUYNCrWXTy9RRS1VNViLrFpmf g4kOtkCiH09zFtkF7uPas6xM18bDDHnQaphDEAP7rdpqH15QHF2tO254Cietb3znxWrBq2g rXUmyX0QDMiwVZyo6F3QQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:KrCedn1C9Tw=:yVUMHUNW8eN+7WGnOoAo7A JALonmfNDfI+aa8ClNFEYXm+gzn2U099Gt9cLv4H30SPFML3Q6vI01in6hulbQV5RlIIYnK8U +oqHczkWJ1nSQ2Gj1rD85+VxTTFv4G17ZvncPQWNZNYbMKIfymbGC1ErFjKQqINWIafPxSEs9 exoBWV6EznIs/sXoldPTAuu2nL6j1y5eIprJ0hQ8DVKkDyGpj/O0HeG5LbS+yw6KPolPm37NF otemjviwSwt1v0oEzVlR9QjH/5PfEikBN+1j/0miKt34GMi9mpjcR3HRqrHa70oQIKU1NBwv5 zFrCHLH/yYCuCsndsDvmBC7RGBX/hPVbPUSn7mdzP08T41JT34eiKw6R95mISR8UOLIsl5dfv b3rNIYZfG0DPobawL8hQDtSCwlr1NJupA0u2uF9gTgrLmNo8zPRqZR+p0uJ/kDFgNPuofgjPX AWK7AVJbm0FufUMY3UNfT9w4B/BHKJpMm70azEe/KXrH7mACVammSgZNx9QOjBHoc3ORPsF8S buWKBPUdRzvUwpwx/GKy3Ot6THohCWDBn+iR2+XefZepxgL02FR68HBL0k/8uL2iOqOylt1Bv vNAWW5Q7xqUvO+8ljjf3CuIddtUaiJ8dEgjVsVUZ/Z5MqhSJp7IeM7IcopNm41OzZo1X6CWfN BXrTSm3wMlV14Lkya2jErGp7kzcn9xjw2SGOTzVPyKXjvucl3Qv0XRX/fEI9d9aVZzsU= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In case the SPI thread is not running, a simple reset of sync state won't fix the transmit timeout. We also need to wake up the kernel thread. Signed-off-by: Stefan Wahren Fixes: ed7d42e24eff ("net: qca_spi: fix transmit queue timeout handling") --- drivers/net/ethernet/qualcomm/qca_spi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/qualcomm/qca_spi.c b/drivers/net/ethernet/qualcomm/qca_spi.c index 7db149f..7fa815d 100644 --- a/drivers/net/ethernet/qualcomm/qca_spi.c +++ b/drivers/net/ethernet/qualcomm/qca_spi.c @@ -760,6 +760,9 @@ qcaspi_netdev_tx_timeout(struct net_device *dev) qca->net_dev->stats.tx_errors++; /* Trigger tx queue flush and QCA7000 reset */ qca->sync = QCASPI_SYNC_UNKNOWN; + + if (qca->spi_thread) + wake_up_process(qca->spi_thread); } static int -- 2.7.4