aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2025-07-16 02:03:14 +0000
committerNiklas Cassel <[email protected]>2025-07-16 07:31:43 +0000
commita4daf088a77323154514eb1f8626bbdf9329cfd4 (patch)
tree103ae550d907444691fe6cbc31edd2608e191f97 /lib/crypto/mpi/mpi-sub-ui.c
parentata: libata-eh: Remove ata_do_eh() (diff)
downloadkernel-a4daf088a77323154514eb1f8626bbdf9329cfd4.tar.gz
kernel-a4daf088a77323154514eb1f8626bbdf9329cfd4.zip
ata: libata-eh: Simplify reset operation management
Introduce struct ata_reset_operations to aggregate in a single structure the definitions of the 4 reset methods (prereset, softreset, hardreset and postreset) for a port. This new structure is used in struct ata_port to define the reset methods for a regular port (reset field) and for a port-multiplier port (pmp_reset field). A pointer to either of these fields replaces the 4 reset method arguments passed to ata_eh_recover() and ata_eh_reset(). The definition of the reset methods for all drivers is changed to use the reset and pmp_reset fields in struct ata_port_operations. A large number of files is modifed, but no functional changes are introduced. Suggested-by: Niklas Cassel <[email protected]> Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Niklas Cassel <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Niklas Cassel <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions