[PATCH] scsi: megaraid: fix spelling mistake "maibox" -> "mailbox"

2018-09-23 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in warning message and comments Signed-off-by: Colin Ian King --- drivers/scsi/megaraid/megaraid_mbox.c | 4 ++-- drivers/scsi/megaraid/megaraid_mbox.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/megar

[PATCH] scsi: ufs: use PTR_ERR_OR_ZERO in ufs_hisi_get_resource()

2018-09-23 Thread Josh Abraham
This patch uses PTR_ERR_OR_ZERO instead of IF_ERR() return PTR_ERR(). Signed-off-by: Joshua Abraham --- drivers/scsi/ufs/ufs-hisi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/ufs/ufs-hisi.c b/drivers/scsi/ufs/ufs-hisi.c index 46df707e6f2c..e79499469cb3 10

[PATCH V14 1/2] scsi: ufs: set the device reference clock setting

2018-09-23 Thread Sayali Lokhande
From: Subhash Jadavani UFS host supplies the reference clock to UFS device and UFS device specification allows host to provide one of the 4 frequencies (19.2 MHz, 26 MHz, 38.4 MHz, 52 MHz) for reference clock. Host should set the device reference clock frequency setting in the device based on wha

[PATCH V14 2/2] scsi: ufs: Add configfs support for UFS provisioning

2018-09-23 Thread Sayali Lokhande
This patch adds configfs support to provision UFS device at runtime. This feature can be primarily useful in factory or assembly line as some devices may be required to be configured multiple times during initial system development phase. Configuration Descriptors can be written multiple times unti

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-09-23 Thread Stefan Priebe - Profihost AG
Am 22.09.2018 um 23:40 schrieb Bart Van Assche: > On 9/18/18 11:10 PM, Stefan Priebe - Profihost AG wrote: >> after upgrading the aacraid driver / kernel from aacraid 50792 to >> aacraid 50877. > > The aacraid driver version was updated to 50792 in commit 0662cc968ace > ("scsi: aacraid: Update d

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-09-23 Thread Stefan Priebe - Profihost AG
Am 23.09.2018 um 20:22 schrieb Stefan Priebe - Profihost AG: > > Am 22.09.2018 um 23:40 schrieb Bart Van Assche: >> On 9/18/18 11:10 PM, Stefan Priebe - Profihost AG wrote: >>> after upgrading the aacraid driver / kernel from aacraid 50792 to >>> aacraid 50877. >> >> The aacraid driver version was

[PATCH V14 0/2] Add UFS provisioning support in driver

2018-09-23 Thread Sayali Lokhande
This patch adds Configfs support to provision UFS device at runtime. This feature can be primarily useful in factory or assembly line as some devices may be required to be configured multiple times during initial system development phase. Configuration Descriptors can be written multiple times un

[PATCH v3 0/6] mpt3sas: Hot-Plug Surprise removal support on IOC.

2018-09-23 Thread Suganath Prabu S
Posting below set of patches to support PCIe Hot Plug surprise removal, and few defect fixes. This is NOT the normal PCIe Hot Plug support, whereby the user informs the OS that a hot removal is desired, the OS does an orderly shutdown of the driver on the device, special hot plug circuitry removes

[PATCH v3 2/6] mpt3sas: Separate out mpt3sas_wait_for_ioc_to_operational

2018-09-23 Thread Suganath Prabu S
Introduce mpt3sas_wait_for_ioc_to_operational. This section of code "wait for IOC to be operational" is used in many places across the driver, and hence moved this section of code in to the function "mpt3sas_wait_for_ioc_to_operational". Also added HBA hot unplug checks, and this returns with err

[PATCH v3 1/6] mpt3sas: Introduce mpt3sas_base_pci_device_is_available

2018-09-23 Thread Suganath Prabu S
* Driver uses "pci_device_is_present" to check whether If Hot unplugged: the outstanding IOs with 'DID_NO_CONNECT' before removing the drives attached to the HBA. "DID_NO_CONNECT" status and free the smid, if driver detects that HBA is hot unplugged. * In the hard reset flush out all the outstandi

[PATCH v3 5/6] mpt3sas: Fix driver modifying NVRAM/persistent data.

2018-09-23 Thread Suganath Prabu S
* If EEDPTagMode field in manufacturing page11 is set, unset it. This is needed to fix a hardware bug in SAS3/SAS2 cards, So, skipping EEDPTagMode changes in Manufacturing page11 for SAS35 controllers. * Fix driver modifying NVRAM/persistent data in Manufacturing page11 along with current copy. Dr

[PATCH v3 3/6] mpt3sas: Introdude _scsih_get_shost_and_ioc.

2018-09-23 Thread Suganath Prabu S
The code for getting shost and IOC is redundant so moved that to function "scsih_get_shost_and_ioc". Also checks for NULL are added to IOC and shost. Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 98 ++-- 1 file changed, 82 insertions(

[PATCH v3 6/6] mpt3sas: Bump driver version to 27.100.00.00.

2018-09-23 Thread Suganath Prabu S
Modify driver version to 27.100.00.00 (which is equivalent to PH8 OOB driver) Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h

[PATCH v3 4/6] mpt3sas: Fix Sync cache command failure during driver unload.

2018-09-23 Thread Suganath Prabu S
This is to fix Sync cache and start stop command failures with DID_NO_CONNECT during driver unload. 1) Release drives first from SML, then remove internally in driver. 2) And allow sync cache and Start stop commands to firmware, even when remove_host flag is set v2 Changeset: Replaced this funct