• Tejun Heo's avatar
    libata: implement PMP helpers · 071f44b1
    Tejun Heo authored
    Implement helpers to test whether PMP is supported, attached and
    determine pmp number to use when issuing SRST to a link.  While at it,
    move ata_is_host_link() so that it's together with the two new PMP
    helpers.
    
    This change simplifies LLDs and helps making PMP support optional.
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    071f44b1
libata-pmp.c 24 KB