From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] net: dsa: lan9303: Protect ALR operations with mutex Date: Fri, 08 Dec 2017 14:12:56 -0500 (EST) Message-ID: <20171208.141256.832383710479771230.davem@davemloft.net> References: <20171207185604.30745-1-privat@egil-hjelmeland.no> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: privat@egil-hjelmeland.no Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:57592 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752003AbdLHTM6 (ORCPT ); Fri, 8 Dec 2017 14:12:58 -0500 In-Reply-To: <20171207185604.30745-1-privat@egil-hjelmeland.no> Sender: netdev-owner@vger.kernel.org List-ID: From: Egil Hjelmeland Date: Thu, 7 Dec 2017 19:56:04 +0100 > ALR table operations are a sequence of related register operations which > should be protected from concurrent access. The alr_cache should also be > protected. Add alr_mutex doing that. > > Signed-off-by: Egil Hjelmeland Applied.