aacraid: AIF support for SES device add/remove
Signed-off-by: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Murthy Bhat <Murthy.Bhat@pmcs.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
此提交包含在:
@@ -1044,6 +1044,8 @@ static void aac_handle_aif(struct aac_dev * dev, struct fib * fibptr)
|
||||
switch (le32_to_cpu(((__le32 *)aifcmd->data)[3])) {
|
||||
case EM_DRIVE_INSERTION:
|
||||
case EM_DRIVE_REMOVAL:
|
||||
case EM_SES_DRIVE_INSERTION:
|
||||
case EM_SES_DRIVE_REMOVAL:
|
||||
container = le32_to_cpu(
|
||||
((__le32 *)aifcmd->data)[2]);
|
||||
if ((container >> 28)) {
|
||||
@@ -1069,8 +1071,10 @@ static void aac_handle_aif(struct aac_dev * dev, struct fib * fibptr)
|
||||
}
|
||||
channel = aac_phys_to_logical(channel);
|
||||
device_config_needed =
|
||||
(((__le32 *)aifcmd->data)[3]
|
||||
== cpu_to_le32(EM_DRIVE_INSERTION)) ?
|
||||
((((__le32 *)aifcmd->data)[3]
|
||||
== cpu_to_le32(EM_DRIVE_INSERTION)) ||
|
||||
(((__le32 *)aifcmd->data)[3]
|
||||
== cpu_to_le32(EM_SES_DRIVE_INSERTION))) ?
|
||||
ADD : DELETE;
|
||||
break;
|
||||
}
|
||||
|
新增問題並參考
封鎖使用者