Files
linux/drivers
Edward Cree 2269278085 sfc: suppress duplicate nvmem partition types in efx_ef10_mtd_probe
[ Upstream commit 3366463513 ]

Use a bitmap to keep track of which partition types we've already seen;
 for duplicates, return -EEXIST from efx_ef10_mtd_probe_partition() and
 thus skip adding that partition.
Duplicate partitions occur because of the A/B backup scheme used by newer
 sfc NICs.  Prior to this patch they cause sysfs_warn_dup errors because
 they have the same name, causing us not to expose any MTDs at all.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 09:21:07 +01:00
..
2019-10-05 13:09:45 +02:00
2019-12-05 09:21:05 +01:00
2019-12-05 09:20:08 +01:00
2019-11-20 18:47:35 +01:00
2019-12-05 09:20:50 +01:00
2019-07-26 09:14:05 +02:00