Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3933710imm; Wed, 5 Sep 2018 08:12:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYC9TbGankUN6K1SOKcI5/40R5Um15/jBmLplYZ0cUUATbC9tD53l6OMGsI02ufiNACBYNa X-Received: by 2002:a17:902:b218:: with SMTP id t24-v6mr8010634plr.235.1536160335749; Wed, 05 Sep 2018 08:12:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536160335; cv=none; d=google.com; s=arc-20160816; b=QCHJtU2a0yf5/8W1j3yO1S39UAD7WLUWRi6/k7gS2SW+UULvYhWTyaY7BnnuLBw9+V w2cJR5eeoabltTassyLmrXZ0D/YD4swjh4qHSPYzxkVP3juL1aBfDUuEy58FG8452vwr bX0glUb9AwoOOaL5wUccNVIpVY2uJduNhnE2AeYEPl4+Nwf1oWLQV7avA6j/0jA64uhU FBVBhAGylpSTRenBKR8Ye45PYA4saqbfNeEvmcryf4qoRQyM8ddLpvw6xkqWWBwc9Um1 lQcxO4aAFJfBbAsWkDjfI2MouzauCCTcomVsTJOObE9p0BnG1FGSqzYJ2vrznkOTMQw2 ha8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=8WkgoamseQrFwgTKHEelbWesxCCfwM7RLTJ7y0AcBfI=; b=A+vQgMjq2u8NZq7IEnVVJjd+pjoZLaLpid2LLUjPMQHsnGcO+smzZLa+dtHEsDIN9l jz76AtQbDUwpgIwJjXifm8Bk95KIrk8thsxeH1VSF785UFMYLpiFqCHjkYukYbssptBt /QQTBUJnCFlqMmK+LZsn+dbzo8IW4Ni4Pnc9EfDasAszm9nGuNL9lzu8FtcipFc1ImK5 9uZ2z7/7nD1eZ353L68/ldwFGQBw543Aa76b2JpHx2jIm81dqzSD5RcXGLAVCaKyVdxa DQ1/pMWoO1gdi3MV/IrpkCdLnrtZGNGBqMbs0UmUQTT+6k39G/bvqp3sRIT22ADkjxEn U3FA== 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 g3-v6si2061538pll.395.2018.09.05.08.11.59; Wed, 05 Sep 2018 08:12:15 -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 S1727629AbeIETkj (ORCPT + 99 others); Wed, 5 Sep 2018 15:40:39 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:46520 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbeIETkj (ORCPT ); Wed, 5 Sep 2018 15:40:39 -0400 Received: from localhost (74-93-104-98-Washington.hfc.comcastbusiness.net [74.93.104.98]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 8E3BF13FFEA03; Wed, 5 Sep 2018 08:10:02 -0700 (PDT) Date: Wed, 05 Sep 2018 08:10:02 -0700 (PDT) Message-Id: <20180905.081002.193347914551729211.davem@davemloft.net> To: stefan.wahren@i2se.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3] net: qca_spi: Fix race condition in spi transfers From: David Miller In-Reply-To: <1536153798-16494-1-git-send-email-stefan.wahren@i2se.com> References: <1536153798-16494-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 05 Sep 2018 08:10:02 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Wahren Date: Wed, 5 Sep 2018 15:23:18 +0200 > With performance optimization the spi transfer and messages of basic > register operations like qcaspi_read_register moved into the private > driver structure. But they weren't protected against mutual access > (e.g. between driver kthread and ethtool). So dumping the QCA7000 > registers via ethtool during network traffic could make spi_sync > hang forever, because the completion in spi_message is overwritten. > > So revert the optimization completely. > > Fixes: 291ab06ecf676 ("net: qualcomm: new Ethernet over SPI driver for QCA700") > Signed-off-by: Stefan Wahren Applied and queued up for -stable, thanks.