Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion drivers/scsi/leapioraid/leapioraid_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
#include <linux/poll.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include "leapioraid_func.h"

#ifdef __KERNEL__
#include <linux/miscdevice.h>
Expand Down
15 changes: 8 additions & 7 deletions drivers/scsi/leapioraid/leapioraid_func.c
Original file line number Diff line number Diff line change
Expand Up @@ -4746,14 +4746,11 @@ leapioraid_base_send_ioc_init(struct LEAPIORAID_ADAPTER *ioc)
current_time = ktime_get_real();
mpi_request.TimeStamp = cpu_to_le64(ktime_to_ms(current_time));
if (ioc->logging_level & LEAPIORAID_DEBUG_INIT) {
__le32 *mfp;
int i;

mfp = (__le32 *) &mpi_request;
pr_info("%s \toffset:data\n", ioc->name);
for (i = 0; i < sizeof(struct LeapioraidIOCInitReq_t) / 4; i++)
pr_info("%s \t[0x%02x]:%08x\n",
ioc->name, i * 4, le32_to_cpu(mfp[i]));
leapioraid_debug_dump_mf(&mpi_request,
sizeof(struct LeapioraidIOCInitReq_t) / 4);

}
r = leapioraid_base_handshake_req_reply_wait(ioc,
sizeof
Expand Down Expand Up @@ -7022,7 +7019,11 @@ leapioraid_config_get_volume_handle(struct LEAPIORAID_ADAPTER *ioc,
r = -1;
ioc_status = le16_to_cpu(mpi_reply.IOCStatus) &
LEAPIORAID_IOCSTATUS_MASK;
if (ioc_status != LEAPIORAID_IOCSTATUS_SUCCESS)
if (ioc_status == LEAPIORAID_IOCSTATUS_CONFIG_INVALID_PAGE) {
*volume_handle = 0;
r = 0;
goto out;
} else if (ioc_status != LEAPIORAID_IOCSTATUS_SUCCESS)
goto out;
for (i = 0; i < config_page->NumElements; i++) {
element_type =
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/leapioraid/leapioraid_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
#define LEAPIORAID_KDUMP_SCSI_IO_DEPTH (64)
#define LEAPIORAID_RAID_MAX_SECTORS (128)

#define LEAPIORAID_NAME_LENGTH (32)
#define LEAPIORAID_NAME_LENGTH (48)
#define LEAPIORAID_DRIVER_NAME_LENGTH (24)
#define LEAPIORAID_STRING_LENGTH (64)

Expand Down
Loading