linux_dsm_epyc7002/include
Jacob Keller bc75c054f0 devlink: convert flash_update to use params structure
The devlink core recently gained support for checking whether the driver
supports a flash_update parameter, via `supported_flash_update_params`.
However, parameters are specified as function arguments. Adding a new
parameter still requires modifying the signature of the .flash_update
callback in all drivers.

Convert the .flash_update function to take a new `struct
devlink_flash_update_params` instead. By using this structure, and the
`supported_flash_update_params` bit field, a new parameter to
flash_update can be added without requiring modification to existing
drivers.

As before, all parameters except file_name will require driver opt-in.
Because file_name is a necessary field to for the flash_update to make
sense, no "SUPPORTED" bitflag is provided and it is always considered
valid. All future additional parameters will require a new bit in the
supported_flash_update_params bitfield.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Cc: Jiri Pirko <jiri@mellanox.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Michael Chan <michael.chan@broadcom.com>
Cc: Bin Luo <luobin9@huawei.com>
Cc: Saeed Mahameed <saeedm@mellanox.com>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Ido Schimmel <idosch@mellanox.com>
Cc: Danielle Ratson <danieller@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-09-25 17:20:57 -07:00
..
acpi
asm-generic
clocksource
crypto
drm drm/i915: Fix sha_text population code 2020-09-02 10:48:11 +03:00
dt-bindings
keys
kunit
kvm KVM: arm64: timers: Move timer registers to the sys_regs file 2020-07-07 09:28:38 +01:00
linux net: stmmac: Add option for VLAN filter fail queue enable 2020-09-25 16:48:33 -07:00
math-emu
media
memory
misc ocxl: Address kernel doc errors & warnings 2020-07-29 23:47:52 +10:00
net devlink: convert flash_update to use params structure 2020-09-25 17:20:57 -07:00
pcmcia
ras
rdma RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
scsi scsi: core: Only return started requests from scsi_host_find_tag() 2020-07-24 22:09:56 -04:00
soc net: mscc: ocelot: always pass skb clone to ocelot_port_add_txtstamp_skb 2020-09-24 19:47:56 -07:00
sound
target
trace
uapi net: bridge: mcast: add support for blocked port groups 2020-09-23 13:24:34 -07:00
vdso
video video: Replace zero-length array with flexible-array member 2020-03-02 16:32:17 +01:00
xen xen: branch for v5.9-rc4 2020-09-06 09:59:27 -07:00