The first patch improves handling of a device general purpose log directory log page by avoiding repeated accesses to it using a cache. The following 3 patches are simple cleanups that do not introduce functional changes. Changes from v1: - Improved error handling in patch 1 - Added review tag to patch 2 - Split former patch 3 into current patch 3 and 4 Damien Le Moal (4): ata: libata-core: Cache the general purpose log directory ata: libata-core: Make ata_dev_cleanup_cdl_resources() static ata: libata-eh: Rename and make ata_set_mode() static ata: libata-core: Rename ata_do_set_mode() drivers/ata/libata-core.c | 47 ++++++++++++++++++++++++++++++++----- drivers/ata/libata-eh.c | 11 +++++---- drivers/ata/libata.h | 2 -- drivers/ata/pata_optidma.c | 4 +++- drivers/ata/pata_pcmcia.c | 4 ++-- drivers/ata/pata_pdc2027x.c | 2 +- drivers/ata/sata_sil.c | 2 +- include/linux/libata.h | 5 +++- 8 files changed, 58 insertions(+), 19 deletions(-) -- 2.50.0