Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752987AbdLHTM7 (ORCPT ); Fri, 8 Dec 2017 14:12:59 -0500 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 Date: Fri, 08 Dec 2017 14:12:56 -0500 (EST) Message-Id: <20171208.141256.832383710479771230.davem@davemloft.net> To: privat@egil-hjelmeland.no Cc: andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: dsa: lan9303: Protect ALR operations with mutex From: David Miller In-Reply-To: <20171207185604.30745-1-privat@egil-hjelmeland.no> References: <20171207185604.30745-1-privat@egil-hjelmeland.no> 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]); Fri, 08 Dec 2017 11:12:57 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 352 Lines: 10 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.