]> git.baikalelectronics.ru Git - kernel.git/commit
hisi_sas: add v2 hw init
authorJohn Garry <john.garry@huawei.com>
Mon, 25 Jan 2016 18:47:09 +0000 (02:47 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commit5eadd2f161d59b2a84200c8341728dda950c94db
tree2a96b690ddfecc1c4a3eba157e3d0be893729ffd
parent6871564a04e74b6b0b26e0d492ca35f95eb4c490
hisi_sas: add v2 hw init

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: John Garry <john.garry@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c