Files
linux/drivers
Edward Cree bf148e6724 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 15:35:10 +01:00
..
2019-11-28 18:29:05 +01:00
2019-12-05 15:34:08 +01:00
2018-12-21 14:11:37 +01:00
2019-05-14 19:19:34 +02:00
2019-12-05 15:35:06 +01:00
2019-12-05 15:34:54 +01:00
2018-12-21 14:11:36 +01:00
2019-09-16 08:19:34 +02:00
2019-05-31 06:48:15 -07:00