Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752665AbdLGU6g (ORCPT ); Thu, 7 Dec 2017 15:58:36 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:51985 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750973AbdLGU6e (ORCPT ); Thu, 7 Dec 2017 15:58:34 -0500 Date: Thu, 7 Dec 2017 21:58:28 +0100 From: Andrew Lunn To: Egil Hjelmeland Cc: 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 Message-ID: <20171207205828.GA5066@lunn.ch> References: <20171207185604.30745-1-privat@egil-hjelmeland.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171207185604.30745-1-privat@egil-hjelmeland.no> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 373 Lines: 10 On Thu, Dec 07, 2017 at 07:56:04PM +0100, Egil Hjelmeland wrote: > 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 Reviewed-by: Andrew Lunn Andrew