• John Garry's avatar
    hisi_sas: add v2 hw init · 94eac9e1
    John Garry authored
    Add code to initialise the hardware.
    
    Support is also added to deal with the "am-max-transmissions" (amt)
    limitation in hip06 controller #1. This is how many connection requests
    we can send on the system bus before waiting for a response.  Due to
    chip bus design, controller #1 is limited to 32 amt, while, by design, a
    controller supports 64.  The default value for the nibbles in the
    relevant registers is 0x40; these need to be programmed with 0x20.
    Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
    Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
    Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
    94eac9e1
hisi_sas_v2_hw.c 18.7 KB