diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-07 21:29:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-07 21:29:18 -0400 |
commit | 9a50aaefc1b896e734bf7faf3d085f71a360ce97 (patch) | |
tree | 82fd9003d6c1d1a7dcf107f46d77b92f11d3f697 /drivers/scsi/fnic | |
parent | 1e345ac6869cd2f2d5d4b780fc5d5332dd1e8905 (diff) | |
parent | 19ac97ff701ae3c0eda09dd88f590806f1c4eb2d (diff) |
Merge tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI updates from James Bottomley:
"This patch set consists of the usual driver updates (megaraid_sas,
arcmsr, be2iscsi, lpfc, mpt2sas, mpt3sas, qla2xxx, ufs) plus several
assorted fixes and miscellaneous updates (including the
pci_msix_enable_range() changes that have been pending for a while)"
* tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (202 commits)
scsi: add a CONFIG_SCSI_MQ_DEFAULT option
ufs: definitions for phy interface
ufs: tune bkops while power managment events
ufs: Add support for clock scaling using devfreq framework
ufs: Add freq-table-hz property for UFS device
ufs: Add support for clock gating
ufs: refactor configuring power mode
ufs: add UFS power management support
ufs: introduce well known logical unit in ufs
ufs: manually add well known logical units
ufs: Active Power Mode - configuring bActiveICCLevel
ufs: improve init sequence
ufs: refactor query descriptor API support
ufs: add voting support for host controller power
ufs: Add clock initialization support
ufs: Add regulator enable support
ufs: Allow vendor specific initialization
scsi: don't add scsi_device if its already visible
scsi: fix the type for well known LUs
scsi: fix comment in struct Scsi_Host definition
...
Diffstat (limited to 'drivers/scsi/fnic')
-rw-r--r-- | drivers/scsi/fnic/fnic.h | 2 | ||||
-rw-r--r-- | drivers/scsi/fnic/fnic_fcs.c | 5 | ||||
-rw-r--r-- | drivers/scsi/fnic/fnic_trace.c | 5 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/fnic/fnic.h b/drivers/scsi/fnic/fnic.h index 1d3521e13d77..bf8d34c26f13 100644 --- a/drivers/scsi/fnic/fnic.h +++ b/drivers/scsi/fnic/fnic.h | |||
@@ -39,7 +39,7 @@ | |||
39 | 39 | ||
40 | #define DRV_NAME "fnic" | 40 | #define DRV_NAME "fnic" |
41 | #define DRV_DESCRIPTION "Cisco FCoE HBA Driver" | 41 | #define DRV_DESCRIPTION "Cisco FCoE HBA Driver" |
42 | #define DRV_VERSION "1.6.0.10" | 42 | #define DRV_VERSION "1.6.0.11" |
43 | #define PFX DRV_NAME ": " | 43 | #define PFX DRV_NAME ": " |
44 | #define DFX DRV_NAME "%d: " | 44 | #define DFX DRV_NAME "%d: " |
45 | 45 | ||
diff --git a/drivers/scsi/fnic/fnic_fcs.c b/drivers/scsi/fnic/fnic_fcs.c index 1b948f633fc5..f3984b48f8e9 100644 --- a/drivers/scsi/fnic/fnic_fcs.c +++ b/drivers/scsi/fnic/fnic_fcs.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include "cq_enet_desc.h" | 35 | #include "cq_enet_desc.h" |
36 | #include "cq_exch_desc.h" | 36 | #include "cq_exch_desc.h" |
37 | 37 | ||
38 | static u8 fcoe_all_fcfs[ETH_ALEN]; | 38 | static u8 fcoe_all_fcfs[ETH_ALEN] = FIP_ALL_FCF_MACS; |
39 | struct workqueue_struct *fnic_fip_queue; | 39 | struct workqueue_struct *fnic_fip_queue; |
40 | struct workqueue_struct *fnic_event_queue; | 40 | struct workqueue_struct *fnic_event_queue; |
41 | 41 | ||
@@ -101,13 +101,14 @@ void fnic_handle_link(struct work_struct *work) | |||
101 | FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, | 101 | FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, |
102 | "link up\n"); | 102 | "link up\n"); |
103 | fcoe_ctlr_link_up(&fnic->ctlr); | 103 | fcoe_ctlr_link_up(&fnic->ctlr); |
104 | } else | 104 | } else { |
105 | /* UP -> UP */ | 105 | /* UP -> UP */ |
106 | spin_unlock_irqrestore(&fnic->fnic_lock, flags); | 106 | spin_unlock_irqrestore(&fnic->fnic_lock, flags); |
107 | fnic_fc_trace_set_data( | 107 | fnic_fc_trace_set_data( |
108 | fnic->lport->host->host_no, FNIC_FC_LE, | 108 | fnic->lport->host->host_no, FNIC_FC_LE, |
109 | "Link Status: UP_UP", | 109 | "Link Status: UP_UP", |
110 | strlen("Link Status: UP_UP")); | 110 | strlen("Link Status: UP_UP")); |
111 | } | ||
111 | } | 112 | } |
112 | } else if (fnic->link_status) { | 113 | } else if (fnic->link_status) { |
113 | /* DOWN -> UP */ | 114 | /* DOWN -> UP */ |
diff --git a/drivers/scsi/fnic/fnic_trace.c b/drivers/scsi/fnic/fnic_trace.c index 8b1b38751b49..acf1f95cb5c5 100644 --- a/drivers/scsi/fnic/fnic_trace.c +++ b/drivers/scsi/fnic/fnic_trace.c | |||
@@ -743,7 +743,7 @@ void copy_and_format_trace_data(struct fc_trace_hdr *tdata, | |||
743 | 743 | ||
744 | fmt = "%02d:%02d:%04ld %02d:%02d:%02d.%09lu ns%8x %c%8x\t"; | 744 | fmt = "%02d:%02d:%04ld %02d:%02d:%02d.%09lu ns%8x %c%8x\t"; |
745 | len += snprintf(fnic_dbgfs_prt->buffer + len, | 745 | len += snprintf(fnic_dbgfs_prt->buffer + len, |
746 | (fnic_fc_trace_max_pages * PAGE_SIZE * 3) - len, | 746 | max_size - len, |
747 | fmt, | 747 | fmt, |
748 | tm.tm_mon + 1, tm.tm_mday, tm.tm_year + 1900, | 748 | tm.tm_mon + 1, tm.tm_mday, tm.tm_year + 1900, |
749 | tm.tm_hour, tm.tm_min, tm.tm_sec, | 749 | tm.tm_hour, tm.tm_min, tm.tm_sec, |
@@ -767,8 +767,7 @@ void copy_and_format_trace_data(struct fc_trace_hdr *tdata, | |||
767 | j == ethhdr_len + fcoehdr_len + fchdr_len || | 767 | j == ethhdr_len + fcoehdr_len + fchdr_len || |
768 | (i > 3 && j%fchdr_len == 0)) { | 768 | (i > 3 && j%fchdr_len == 0)) { |
769 | len += snprintf(fnic_dbgfs_prt->buffer | 769 | len += snprintf(fnic_dbgfs_prt->buffer |
770 | + len, (fnic_fc_trace_max_pages | 770 | + len, max_size - len, |
771 | * PAGE_SIZE * 3) - len, | ||
772 | "\n\t\t\t\t\t\t\t\t"); | 771 | "\n\t\t\t\t\t\t\t\t"); |
773 | i++; | 772 | i++; |
774 | } | 773 | } |