Skip to content

Commit 84cbd72

Browse files
committed
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull first round of SCSI updates from James Bottomley: "The patch set is mostly driver updates (usf, zfcp, lpfc, mpt2sas, megaraid_sas, bfa, ipr) and a few bug fixes. Also of note is that the Buslogic driver has been rewritten to a better coding style and 64 bit support added. We also removed the libsas limitation on 16 bytes for the command size (currently no drivers make use of this)" * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (101 commits) [SCSI] megaraid: minor cut and paste error fixed. [SCSI] ufshcd-pltfrm: remove unnecessary dma_set_coherent_mask() call [SCSI] ufs: fix register address in UIC error interrupt handling [SCSI] ufshcd-pltfrm: add missing empty slot in ufs_of_match[] [SCSI] ufs: use devres functions for ufshcd [SCSI] ufs: Fix the response UPIU length setting [SCSI] ufs: rework link start-up process [SCSI] ufs: remove version check before IS reg clear [SCSI] ufs: amend interrupt configuration [SCSI] ufs: wrap the i/o access operations [SCSI] storvsc: Update the storage protocol to win8 level [SCSI] storvsc: Increase the value of scsi timeout for storvsc devices [SCSI] MAINTAINERS: Add myself as the maintainer for BusLogic SCSI driver [SCSI] BusLogic: Port driver to 64-bit. [SCSI] BusLogic: Fix style issues [SCSI] libiscsi: Added new boot entries in the session sysfs [SCSI] aacraid: Fix for arrays are going offline in the system. System hangs [SCSI] ipr: IOA Status Code(IOASC) update [SCSI] sd: Update WRITE SAME heuristics [SCSI] fnic: potential dead lock in fnic_is_abts_pending() ...
2 parents 80cc38b + a3fda7d commit 84cbd72

112 files changed

Lines changed: 7529 additions & 5155 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
* Universal Flash Storage (UFS) Host Controller
2+
3+
UFSHC nodes are defined to describe on-chip UFS host controllers.
4+
Each UFS controller instance should have its own node.
5+
6+
Required properties:
7+
- compatible : compatible list, contains "jedec,ufs-1.1"
8+
- interrupts : <interrupt mapping for UFS host controller IRQ>
9+
- reg : <registers mapping>
10+
11+
Example:
12+
ufshc@0xfc598000 {
13+
compatible = "jedec,ufs-1.1";
14+
reg = <0xfc598000 0x800>;
15+
interrupts = <0 28 0>;
16+
};

‎Documentation/scsi/ChangeLog.megaraid_sas‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
Release Date : Wed. May 15, 2013 17:00:00 PST 2013 -
2+
(emaild-id:megaraidlinux@lsi.com)
3+
Adam Radford
4+
Kashyap Desai
5+
Sumit Saxena
6+
Current Version : 06.600.18.00-rc1
7+
Old Version : 06.506.00.00-rc1
8+
1. Return DID_ERROR for scsi io, when controller is in critical h/w error.
9+
2. Fix the interrupt mask for Gen2 controller.
10+
3. Update balance count in driver to be in sync of firmware.
11+
4. Free event detail memory without device ID check.
12+
5. Set IO request timeout value provided by OS timeout for Tape devices.
13+
6. Add support for MegaRAID Fury (device ID-0x005f) 12Gb/s controllers.
14+
7. Add support to display Customer branding details in syslog.
15+
8. Set IoFlags to enable Fast Path for JBODs for Invader/Fury(12 Gb/s)
16+
controllers.
17+
9. Add support for Extended MSI-x vectors for Invader and Fury(12Gb/s
18+
HBA).
19+
10.Add support for Uneven Span PRL11.
20+
11.Add support to differentiate between iMR and MR Firmware.
21+
12.Version and Changelog update.
22+
-------------------------------------------------------------------------------
123
Release Date : Sat. Feb 9, 2013 17:00:00 PST 2013 -
224
(emaild-id:megaraidlinux@lsi.com)
325
Adam Radford

‎MAINTAINERS‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,6 +1876,13 @@ S: Odd fixes
18761876
F: Documentation/video4linux/bttv/
18771877
F: drivers/media/pci/bt8xx/bttv*
18781878

1879+
BUSLOGIC SCSI DRIVER
1880+
M: Khalid Aziz <khalid@gonehiking.org>
1881+
L: linux-scsi@vger.kernel.org
1882+
S: Maintained
1883+
F: drivers/scsi/BusLogic.*
1884+
F: drivers/scsi/FlashPoint.*
1885+
18791886
C-MEDIA CMI8788 DRIVER
18801887
M: Clemens Ladisch <clemens@ladisch.de>
18811888
L: alsa-devel@alsa-project.org (moderated for non-subscribers)

‎drivers/s390/scsi/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Makefile for the S/390 specific device drivers
33
#
44

5-
zfcp-objs := zfcp_aux.o zfcp_ccw.o zfcp_cfdc.o zfcp_dbf.o zfcp_erp.o \
5+
zfcp-objs := zfcp_aux.o zfcp_ccw.o zfcp_dbf.o zfcp_erp.o \
66
zfcp_fc.o zfcp_fsf.o zfcp_qdio.o zfcp_scsi.o zfcp_sysfs.o \
77
zfcp_unit.o
88

‎drivers/s390/scsi/zfcp_aux.c‎

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Module interface and handling of zfcp data structures.
55
*
6-
* Copyright IBM Corp. 2002, 2010
6+
* Copyright IBM Corp. 2002, 2013
77
*/
88

99
/*
@@ -23,6 +23,7 @@
2323
* Christof Schmitt
2424
* Martin Petermann
2525
* Sven Schuetz
26+
* Steffen Maier
2627
*/
2728

2829
#define KMSG_COMPONENT "zfcp"
@@ -140,13 +141,6 @@ static int __init zfcp_module_init(void)
140141
scsi_transport_reserve_device(zfcp_scsi_transport_template,
141142
sizeof(struct zfcp_scsi_dev));
142143

143-
144-
retval = misc_register(&zfcp_cfdc_misc);
145-
if (retval) {
146-
pr_err("Registering the misc device zfcp_cfdc failed\n");
147-
goto out_misc;
148-
}
149-
150144
retval = ccw_driver_register(&zfcp_ccw_driver);
151145
if (retval) {
152146
pr_err("The zfcp device driver could not register with "
@@ -159,8 +153,6 @@ static int __init zfcp_module_init(void)
159153
return 0;
160154

161155
out_ccw_register:
162-
misc_deregister(&zfcp_cfdc_misc);
163-
out_misc:
164156
fc_release_transport(zfcp_scsi_transport_template);
165157
out_transport:
166158
kmem_cache_destroy(zfcp_fc_req_cache);
@@ -175,7 +167,6 @@ module_init(zfcp_module_init);
175167
static void __exit zfcp_module_exit(void)
176168
{
177169
ccw_driver_unregister(&zfcp_ccw_driver);
178-
misc_deregister(&zfcp_cfdc_misc);
179170
fc_release_transport(zfcp_scsi_transport_template);
180171
kmem_cache_destroy(zfcp_fc_req_cache);
181172
kmem_cache_destroy(zfcp_fsf_qtcb_cache);
@@ -415,6 +406,8 @@ struct zfcp_adapter *zfcp_adapter_enqueue(struct ccw_device *ccw_device)
415406
adapter->dma_parms.max_segment_size = ZFCP_QDIO_SBALE_LEN;
416407
adapter->ccw_device->dev.dma_parms = &adapter->dma_parms;
417408

409+
adapter->stat_read_buf_num = FSF_STATUS_READS_RECOM;
410+
418411
if (!zfcp_scsi_adapter_register(adapter))
419412
return adapter;
420413

@@ -464,20 +457,6 @@ void zfcp_adapter_release(struct kref *ref)
464457
put_device(&cdev->dev);
465458
}
466459

467-
/**
468-
* zfcp_device_unregister - remove port, unit from system
469-
* @dev: reference to device which is to be removed
470-
* @grp: related reference to attribute group
471-
*
472-
* Helper function to unregister port, unit from system
473-
*/
474-
void zfcp_device_unregister(struct device *dev,
475-
const struct attribute_group *grp)
476-
{
477-
sysfs_remove_group(&dev->kobj, grp);
478-
device_unregister(dev);
479-
}
480-
481460
static void zfcp_port_release(struct device *dev)
482461
{
483462
struct zfcp_port *port = container_of(dev, struct zfcp_port, dev);
@@ -530,6 +509,7 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,
530509
port->wwpn = wwpn;
531510
port->rport_task = RPORT_NONE;
532511
port->dev.parent = &adapter->ccw_device->dev;
512+
port->dev.groups = zfcp_port_attr_groups;
533513
port->dev.release = zfcp_port_release;
534514

535515
if (dev_set_name(&port->dev, "0x%016llx", (unsigned long long)wwpn)) {
@@ -543,10 +523,6 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,
543523
goto err_out;
544524
}
545525

546-
if (sysfs_create_group(&port->dev.kobj,
547-
&zfcp_sysfs_port_attrs))
548-
goto err_out_put;
549-
550526
write_lock_irq(&adapter->port_list_lock);
551527
list_add_tail(&port->list, &adapter->port_list);
552528
write_unlock_irq(&adapter->port_list_lock);
@@ -555,8 +531,6 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,
555531

556532
return port;
557533

558-
err_out_put:
559-
device_unregister(&port->dev);
560534
err_out:
561535
zfcp_ccw_adapter_put(adapter);
562536
return ERR_PTR(retval);

‎drivers/s390/scsi/zfcp_ccw.c‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,6 @@ static struct ccw_device_id zfcp_ccw_device_id[] = {
7171
};
7272
MODULE_DEVICE_TABLE(ccw, zfcp_ccw_device_id);
7373

74-
/**
75-
* zfcp_ccw_priv_sch - check if subchannel is privileged
76-
* @adapter: Adapter/Subchannel to check
77-
*/
78-
int zfcp_ccw_priv_sch(struct zfcp_adapter *adapter)
79-
{
80-
return adapter->ccw_device->id.dev_model == ZFCP_MODEL_PRIV;
81-
}
82-
8374
/**
8475
* zfcp_ccw_probe - probe function of zfcp driver
8576
* @cdev: pointer to belonging ccw device
@@ -129,10 +120,10 @@ static void zfcp_ccw_remove(struct ccw_device *cdev)
129120
zfcp_ccw_adapter_put(adapter); /* put from zfcp_ccw_adapter_by_cdev */
130121

131122
list_for_each_entry_safe(unit, u, &unit_remove_lh, list)
132-
zfcp_device_unregister(&unit->dev, &zfcp_sysfs_unit_attrs);
123+
device_unregister(&unit->dev);
133124

134125
list_for_each_entry_safe(port, p, &port_remove_lh, list)
135-
zfcp_device_unregister(&port->dev, &zfcp_sysfs_port_attrs);
126+
device_unregister(&port->dev);
136127

137128
zfcp_adapter_unregister(adapter);
138129
}

0 commit comments

Comments
 (0)