Re: [PATCH 2/2] net: dsa: microchip: Add shared regmap mutex

2019-10-13 Thread David Miller
From: Marek Vasut Date: Sun, 13 Oct 2019 12:50:15 +0200 > On 10/13/19 2:21 AM, David Miller wrote: >> From: David Miller >> Date: Sat, 12 Oct 2019 17:20:55 -0700 (PDT) >> >>> From: Marek Vasut >>> Date: Thu, 10 Oct 2019 20:25:08 +0200 >>> The KSZ driver uses one regmap per register width

Re: [PATCH 2/2] net: dsa: microchip: Add shared regmap mutex

2019-10-13 Thread Marek Vasut
On 10/13/19 2:21 AM, David Miller wrote: > From: David Miller > Date: Sat, 12 Oct 2019 17:20:55 -0700 (PDT) > >> From: Marek Vasut >> Date: Thu, 10 Oct 2019 20:25:08 +0200 >> >>> The KSZ driver uses one regmap per register width (8/16/32), each with >>> it's own lock, but accessing the same set

Re: [PATCH 2/2] net: dsa: microchip: Add shared regmap mutex

2019-10-12 Thread David Miller
From: David Miller Date: Sat, 12 Oct 2019 17:20:55 -0700 (PDT) > From: Marek Vasut > Date: Thu, 10 Oct 2019 20:25:08 +0200 > >> The KSZ driver uses one regmap per register width (8/16/32), each with >> it's own lock, but accessing the same set of registers. In theory, it >> is possible to creat

Re: [PATCH 2/2] net: dsa: microchip: Add shared regmap mutex

2019-10-12 Thread David Miller
From: Marek Vasut Date: Thu, 10 Oct 2019 20:25:08 +0200 > The KSZ driver uses one regmap per register width (8/16/32), each with > it's own lock, but accessing the same set of registers. In theory, it > is possible to create a race condition between these regmaps, although > the underlying bus (S

[PATCH 2/2] net: dsa: microchip: Add shared regmap mutex

2019-10-10 Thread Marek Vasut
The KSZ driver uses one regmap per register width (8/16/32), each with it's own lock, but accessing the same set of registers. In theory, it is possible to create a race condition between these regmaps, although the underlying bus (SPI or I2C) locking should assure nothing bad will really happen an