mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
sfc: extend MTD support for newer hardware
The X2 family of NICs (based on the SFC9250) have additional MTD partitions for firmware and configuration. This includes partitions that are read-only. The NICs also have extended versions of the NVRAM interface, allowing more detailed status information to be returned. Signed-off-by: Bert Kenward <bkenward@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cea3bfb374
commit
5fb1beecea
3 changed files with 63 additions and 10 deletions
|
@ -66,6 +66,9 @@ int efx_mtd_add(struct efx_nic *efx, struct efx_mtd_partition *parts,
|
|||
|
||||
part->mtd.writesize = 1;
|
||||
|
||||
if (!(part->mtd.flags & MTD_NO_ERASE))
|
||||
part->mtd.flags |= MTD_WRITEABLE;
|
||||
|
||||
part->mtd.owner = THIS_MODULE;
|
||||
part->mtd.priv = efx;
|
||||
part->mtd.name = part->name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue