Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp172383imm; Tue, 17 Jul 2018 23:34:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe0VOZyZNbCSyuydQZovWiFP8rLCg5GrdbWQSmzWu9Wu+Z9/mcpi4fwKuaPNqQja849ZCBp X-Received: by 2002:a62:3c4f:: with SMTP id j76-v6mr3930359pfa.119.1531895697995; Tue, 17 Jul 2018 23:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531895697; cv=none; d=google.com; s=arc-20160816; b=hfNRevVO+lwt8285eEcKtZaEbNK+GZ5e/F105og7uzFXe4id6wCQRUF2rgn3LprFCm hVWTrpU9wtgiS9WI6puJRU18i47TmEQ+GpQqoJ9ZHrrVe743/dT1JIu6aV6HRLoHwPg9 ETSLxkwdoLOUJDL85mrdlaXmohXvihtLdr/aLtb2iyIEs0KrmUFMJkzp0HRvnTi5/DtN 2uHPpBQ5ZiJbLnWSAXkD+cSN9WwBIt3HYJGGZowBFvTymUdItuYMDKSLB/9EV1Z3z2C1 CdAWglIJRUXuhqI+ktp1SpoR+2rOCIGy41Ycf27mD/LlqcwsJLAy8Jzhp27M3kwbtbg+ +EIA== 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=zHEWz9EiWTlgUw6DPlMPKqgeoBL9MXJzIKQxLvSQayg=; b=R0LzHxhZGO0RZPjJvq5lgbHaAzzUykw5VwNXm6KqQ+uIblama4Vb9QLRf9Bfroh1gM SdhOI0NttZJbWKOQM1PstIrkZyyH0Zm861b/zCh3CqrAZ0N7vIyLbsno8Sanu6jupp6/ Rc74x8ATrkp/qKYdtfEmuPHeitiu3q/O+Sss08dXoSDd2ZChIOkqDaSRhOu6PfDqWzPl bX+7r7amg/N6k54uYnaIkw3ve8+vH4EN6+euDKay+oe8iJAwQBMcFbU9HQencpLeyHxV P3gkqV3peIZT3i9za80cEzjfOWVuUuAO27Iei6MOzpD8bZKVGkaCFvFGlAkFrY86/8ra 1aag== 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 y10-v6si2834545pgf.312.2018.07.17.23.34.43; Tue, 17 Jul 2018 23:34:57 -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 S1730093AbeGRHIz (ORCPT + 99 others); Wed, 18 Jul 2018 03:08:55 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:60091 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbeGRHIj (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 0LheU5-1gSEE62hjl-00mu8m; Wed, 18 Jul 2018 08:32:19 +0200 From: Stefan Wahren To: "David S. Miller" Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Wahren Subject: [PATCH 1/3] net: qca_spi: Avoid packet drop during initial sync Date: Wed, 18 Jul 2018 08:31:43 +0200 Message-Id: <1531895505-26971-2-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:iWY8HDKD4qxhiarp2oX6kZtiFR33vqvj+JaiXkJXMvXR3FGK9Ti HBRejgMgdsCblwdjoN/db73nbaezUd8wb1GEPJd7IM/0wrcrgQIhgEJcl0l1KhANnE9c6t2 3Kdb4cMZGkZuIhpwdvWxox1K8vrvL0pbUBdk+UWoVBz9Zy8zeE2MA7dF1eCOvx84535TcT2 QjWrC5HcSevJT6c8xeSnA== X-UI-Out-Filterresults: notjunk:1;V01:K0:AKzZbpuezK8=:5u5qO0UlEItxfTedT2eNtF aXNnq+AlZXy8Odj3MbJddsUEUKwzCuDwZe2Xe6MyhWUpJWtLt5SBK92gsTMdmZ2BZeuU3zmdU e2jml/6ektO/ldSmAbYIAH+8UHUN+o4CLd7qvqvRux1UDbxdzh1MpzQ5Fh7oqM+rhEgbfEAn9 LN41ltCdjKh/DW2Z+Dm/DLboAowDvhK1eo37+BZWEpetvV4ukjMX7x+yIO5xOj0KFdHtknlVa 1Dkwg18Wna2iHPxRhG2G21xo4A/fJft+52VaLM05LB/fh/d7fi2fA92xsGEI18CgaztoCTG+I AdKHyUKGxSc1GPFgq+i0/T7Ec6FP6Y65BNp39lryVTqEoSuoFXynACNHw0dIDmgfEc3w6/DqC Dt8nmWlZ8CU5mTskJ1x7zkoQtfXrCmU0bdAHBNAFfNkxvnbwsoWOAbUeKxNcLCZBaBsy95yCJ 8mwtTowR7XB28TK0qP3UKZ+NuWBoOn1qHUScXBpz8wkO/SswWfF+pXKZcF1RavyMV7mWJxYN2 IVeLYNg0u/TDJ6o0HN4KfzfLB2BGcTVh1WWLABZHYghcT3AwSSuf2imulmlw9ovwlA3ISM9tC YCNfYM0YwG7lxGZBspi417ScN9+FLCWxB3G/3MOOf59WigG3YEYF8lZJpXQmEn3QDb7+1BoiH yK0O3Ih5sr8ZYiLtN0CuMGeStmwJH0bp2gcw30CUdqsg+GcaZwr0nQ8mejU4jus4z9c0= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As long as the synchronization with the QCA7000 isn't finished, we cannot accept packets from the upper layers. So let the SPI thread enable the TX queue after sync and avoid unwanted packet drop. Signed-off-by: Stefan Wahren Fixes: 291ab06ecf67 ("net: qualcomm: new Ethernet over SPI driver for QCA7000") --- drivers/net/ethernet/qualcomm/qca_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qualcomm/qca_spi.c b/drivers/net/ethernet/qualcomm/qca_spi.c index 5803cd6..7db149f 100644 --- a/drivers/net/ethernet/qualcomm/qca_spi.c +++ b/drivers/net/ethernet/qualcomm/qca_spi.c @@ -658,7 +658,7 @@ qcaspi_netdev_open(struct net_device *dev) return ret; } - netif_start_queue(qca->net_dev); + /* SPI thread takes care of TX queue */ return 0; } -- 2.7.4