This patchset adds support for new HOST_DEVICE_LIST DCMD in driver. This DCMD provides a combined list of target IDs of devices which are exposed to host. Driver will check for FW support for this new DCMD and based on the support will either send the new DCMD or will fall back to earlier GET_PD_LIST/GET_LD_LIST_QUERY DCMDs. Changes in V2: - Fixed smatch warnings in Patch 2 as reported by Dan Carpenter - Fixed few checkpatch warnings about unaligned paranthesis in Patches 1 and 3. - Removed one left over debug print in Patch 3 Changes in V3: - Fixed kerneldoc formatting for the new functions added. Shivasharan S (3): megaraid_sas: Rework code to get PD and LD list megaraid_sas: Rework device add code in AEN path megaraid_sas: Add support for DEVICE_LIST DCMD in driver drivers/scsi/megaraid/megaraid_sas.h | 49 +++- drivers/scsi/megaraid/megaraid_sas_base.c | 403 ++++++++++++++++++++++------ drivers/scsi/megaraid/megaraid_sas_fusion.c | 1 + drivers/scsi/megaraid/megaraid_sas_fusion.h | 1 + 4 files changed, 370 insertions(+), 84 deletions(-) -- 2.16.1