diff options
Diffstat (limited to 'drivers/ata')
33 files changed, 74 insertions, 55 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index e45f83789809..49f1e6890587 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -321,6 +321,9 @@ static const struct pci_device_id ahci_pci_tbl[] = { | |||
321 | { PCI_VDEVICE(INTEL, 0x8c87), board_ahci }, /* 9 Series RAID */ | 321 | { PCI_VDEVICE(INTEL, 0x8c87), board_ahci }, /* 9 Series RAID */ |
322 | { PCI_VDEVICE(INTEL, 0x8c8e), board_ahci }, /* 9 Series RAID */ | 322 | { PCI_VDEVICE(INTEL, 0x8c8e), board_ahci }, /* 9 Series RAID */ |
323 | { PCI_VDEVICE(INTEL, 0x8c8f), board_ahci }, /* 9 Series RAID */ | 323 | { PCI_VDEVICE(INTEL, 0x8c8f), board_ahci }, /* 9 Series RAID */ |
324 | { PCI_VDEVICE(INTEL, 0x9d03), board_ahci }, /* Sunrise Point-LP AHCI */ | ||
325 | { PCI_VDEVICE(INTEL, 0x9d05), board_ahci }, /* Sunrise Point-LP RAID */ | ||
326 | { PCI_VDEVICE(INTEL, 0x9d07), board_ahci }, /* Sunrise Point-LP RAID */ | ||
324 | { PCI_VDEVICE(INTEL, 0xa103), board_ahci }, /* Sunrise Point-H AHCI */ | 327 | { PCI_VDEVICE(INTEL, 0xa103), board_ahci }, /* Sunrise Point-H AHCI */ |
325 | { PCI_VDEVICE(INTEL, 0xa103), board_ahci }, /* Sunrise Point-H RAID */ | 328 | { PCI_VDEVICE(INTEL, 0xa103), board_ahci }, /* Sunrise Point-H RAID */ |
326 | { PCI_VDEVICE(INTEL, 0xa105), board_ahci }, /* Sunrise Point-H RAID */ | 329 | { PCI_VDEVICE(INTEL, 0xa105), board_ahci }, /* Sunrise Point-H RAID */ |
@@ -492,6 +495,7 @@ static const struct pci_device_id ahci_pci_tbl[] = { | |||
492 | * enabled. https://bugzilla.kernel.org/show_bug.cgi?id=60731 | 495 | * enabled. https://bugzilla.kernel.org/show_bug.cgi?id=60731 |
493 | */ | 496 | */ |
494 | { PCI_VDEVICE(SAMSUNG, 0x1600), board_ahci_nomsi }, | 497 | { PCI_VDEVICE(SAMSUNG, 0x1600), board_ahci_nomsi }, |
498 | { PCI_VDEVICE(SAMSUNG, 0xa800), board_ahci_nomsi }, | ||
495 | 499 | ||
496 | /* Enmotus */ | 500 | /* Enmotus */ |
497 | { PCI_DEVICE(0x1c44, 0x8000), board_ahci }, | 501 | { PCI_DEVICE(0x1c44, 0x8000), board_ahci }, |
diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index ad1e71ec10cf..ce8a7a6d6c7f 100644 --- a/drivers/ata/ahci_da850.c +++ b/drivers/ata/ahci_da850.c | |||
@@ -103,7 +103,6 @@ static struct platform_driver ahci_da850_driver = { | |||
103 | .remove = ata_platform_remove_one, | 103 | .remove = ata_platform_remove_one, |
104 | .driver = { | 104 | .driver = { |
105 | .name = "ahci_da850", | 105 | .name = "ahci_da850", |
106 | .owner = THIS_MODULE, | ||
107 | .pm = &ahci_da850_pm_ops, | 106 | .pm = &ahci_da850_pm_ops, |
108 | }, | 107 | }, |
109 | }; | 108 | }; |
diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c index f3970b4ed889..35d51c59a370 100644 --- a/drivers/ata/ahci_imx.c +++ b/drivers/ata/ahci_imx.c | |||
@@ -679,7 +679,6 @@ static struct platform_driver imx_ahci_driver = { | |||
679 | .remove = ata_platform_remove_one, | 679 | .remove = ata_platform_remove_one, |
680 | .driver = { | 680 | .driver = { |
681 | .name = "ahci-imx", | 681 | .name = "ahci-imx", |
682 | .owner = THIS_MODULE, | ||
683 | .of_match_table = imx_ahci_of_match, | 682 | .of_match_table = imx_ahci_of_match, |
684 | .pm = &ahci_imx_pm_ops, | 683 | .pm = &ahci_imx_pm_ops, |
685 | }, | 684 | }, |
diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index 68672d2692ee..64bb08432b69 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c | |||
@@ -115,7 +115,6 @@ static struct platform_driver ahci_mvebu_driver = { | |||
115 | .remove = ata_platform_remove_one, | 115 | .remove = ata_platform_remove_one, |
116 | .driver = { | 116 | .driver = { |
117 | .name = "ahci-mvebu", | 117 | .name = "ahci-mvebu", |
118 | .owner = THIS_MODULE, | ||
119 | .of_match_table = ahci_mvebu_of_match, | 118 | .of_match_table = ahci_mvebu_of_match, |
120 | }, | 119 | }, |
121 | }; | 120 | }; |
diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 06f1d59fa678..18d539837045 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c | |||
@@ -76,7 +76,6 @@ static struct platform_driver ahci_driver = { | |||
76 | .remove = ata_platform_remove_one, | 76 | .remove = ata_platform_remove_one, |
77 | .driver = { | 77 | .driver = { |
78 | .name = "ahci", | 78 | .name = "ahci", |
79 | .owner = THIS_MODULE, | ||
80 | .of_match_table = ahci_of_match, | 79 | .of_match_table = ahci_of_match, |
81 | .pm = &ahci_pm_ops, | 80 | .pm = &ahci_pm_ops, |
82 | }, | 81 | }, |
diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index 835d6eea84fd..2f9e8317cc16 100644 --- a/drivers/ata/ahci_st.c +++ b/drivers/ata/ahci_st.c | |||
@@ -230,7 +230,6 @@ MODULE_DEVICE_TABLE(of, st_ahci_match); | |||
230 | static struct platform_driver st_ahci_driver = { | 230 | static struct platform_driver st_ahci_driver = { |
231 | .driver = { | 231 | .driver = { |
232 | .name = "st_ahci", | 232 | .name = "st_ahci", |
233 | .owner = THIS_MODULE, | ||
234 | .pm = &st_ahci_pm_ops, | 233 | .pm = &st_ahci_pm_ops, |
235 | .of_match_table = of_match_ptr(st_ahci_match), | 234 | .of_match_table = of_match_ptr(st_ahci_match), |
236 | }, | 235 | }, |
diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index e44d675a30ec..e2e0da539a2f 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c | |||
@@ -27,6 +27,12 @@ | |||
27 | #include <linux/regulator/consumer.h> | 27 | #include <linux/regulator/consumer.h> |
28 | #include "ahci.h" | 28 | #include "ahci.h" |
29 | 29 | ||
30 | /* Insmod parameters */ | ||
31 | static bool enable_pmp; | ||
32 | module_param(enable_pmp, bool, 0); | ||
33 | MODULE_PARM_DESC(enable_pmp, | ||
34 | "Enable support for sata port multipliers, only use if you use a pmp!"); | ||
35 | |||
30 | #define AHCI_BISTAFR 0x00a0 | 36 | #define AHCI_BISTAFR 0x00a0 |
31 | #define AHCI_BISTCR 0x00a4 | 37 | #define AHCI_BISTCR 0x00a4 |
32 | #define AHCI_BISTFCTR 0x00a8 | 38 | #define AHCI_BISTFCTR 0x00a8 |
@@ -184,7 +190,15 @@ static int ahci_sunxi_probe(struct platform_device *pdev) | |||
184 | goto disable_resources; | 190 | goto disable_resources; |
185 | 191 | ||
186 | hpriv->flags = AHCI_HFLAG_32BIT_ONLY | AHCI_HFLAG_NO_MSI | | 192 | hpriv->flags = AHCI_HFLAG_32BIT_ONLY | AHCI_HFLAG_NO_MSI | |
187 | AHCI_HFLAG_NO_PMP | AHCI_HFLAG_YES_NCQ; | 193 | AHCI_HFLAG_YES_NCQ; |
194 | |||
195 | /* | ||
196 | * The sunxi sata controller seems to be unable to successfully do a | ||
197 | * soft reset if no pmp is attached, so disable pmp use unless | ||
198 | * requested, otherwise directly attached disks do not work. | ||
199 | */ | ||
200 | if (!enable_pmp) | ||
201 | hpriv->flags |= AHCI_HFLAG_NO_PMP; | ||
188 | 202 | ||
189 | rc = ahci_platform_init_host(pdev, hpriv, &ahci_sunxi_port_info); | 203 | rc = ahci_platform_init_host(pdev, hpriv, &ahci_sunxi_port_info); |
190 | if (rc) | 204 | if (rc) |
@@ -238,7 +252,6 @@ static struct platform_driver ahci_sunxi_driver = { | |||
238 | .remove = ata_platform_remove_one, | 252 | .remove = ata_platform_remove_one, |
239 | .driver = { | 253 | .driver = { |
240 | .name = "ahci-sunxi", | 254 | .name = "ahci-sunxi", |
241 | .owner = THIS_MODULE, | ||
242 | .of_match_table = ahci_sunxi_of_match, | 255 | .of_match_table = ahci_sunxi_of_match, |
243 | .pm = &ahci_sunxi_pm_ops, | 256 | .pm = &ahci_sunxi_pm_ops, |
244 | }, | 257 | }, |
diff --git a/drivers/ata/ahci_xgene.c b/drivers/ata/ahci_xgene.c index 0f8538f238b6..feeb8f1e2fe8 100644 --- a/drivers/ata/ahci_xgene.c +++ b/drivers/ata/ahci_xgene.c | |||
@@ -544,7 +544,6 @@ static struct platform_driver xgene_ahci_driver = { | |||
544 | .remove = ata_platform_remove_one, | 544 | .remove = ata_platform_remove_one, |
545 | .driver = { | 545 | .driver = { |
546 | .name = "xgene-ahci", | 546 | .name = "xgene-ahci", |
547 | .owner = THIS_MODULE, | ||
548 | .of_match_table = xgene_ahci_of_match, | 547 | .of_match_table = xgene_ahci_of_match, |
549 | }, | 548 | }, |
550 | }; | 549 | }; |
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index c5ba15af87d3..5c84fb5c3372 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -1043,8 +1043,8 @@ const char *sata_spd_string(unsigned int spd) | |||
1043 | * None. | 1043 | * None. |
1044 | * | 1044 | * |
1045 | * RETURNS: | 1045 | * RETURNS: |
1046 | * Device type, %ATA_DEV_ATA, %ATA_DEV_ATAPI, %ATA_DEV_PMP or | 1046 | * Device type, %ATA_DEV_ATA, %ATA_DEV_ATAPI, %ATA_DEV_PMP, |
1047 | * %ATA_DEV_UNKNOWN the event of failure. | 1047 | * %ATA_DEV_ZAC, or %ATA_DEV_UNKNOWN the event of failure. |
1048 | */ | 1048 | */ |
1049 | unsigned int ata_dev_classify(const struct ata_taskfile *tf) | 1049 | unsigned int ata_dev_classify(const struct ata_taskfile *tf) |
1050 | { | 1050 | { |
@@ -1089,6 +1089,11 @@ unsigned int ata_dev_classify(const struct ata_taskfile *tf) | |||
1089 | return ATA_DEV_SEMB; | 1089 | return ATA_DEV_SEMB; |
1090 | } | 1090 | } |
1091 | 1091 | ||
1092 | if ((tf->lbam == 0xcd) && (tf->lbah == 0xab)) { | ||
1093 | DPRINTK("found ZAC device by sig\n"); | ||
1094 | return ATA_DEV_ZAC; | ||
1095 | } | ||
1096 | |||
1092 | DPRINTK("unknown device\n"); | 1097 | DPRINTK("unknown device\n"); |
1093 | return ATA_DEV_UNKNOWN; | 1098 | return ATA_DEV_UNKNOWN; |
1094 | } | 1099 | } |
@@ -1329,7 +1334,7 @@ static int ata_hpa_resize(struct ata_device *dev) | |||
1329 | int rc; | 1334 | int rc; |
1330 | 1335 | ||
1331 | /* do we need to do it? */ | 1336 | /* do we need to do it? */ |
1332 | if (dev->class != ATA_DEV_ATA || | 1337 | if ((dev->class != ATA_DEV_ATA && dev->class != ATA_DEV_ZAC) || |
1333 | !ata_id_has_lba(dev->id) || !ata_id_hpa_enabled(dev->id) || | 1338 | !ata_id_has_lba(dev->id) || !ata_id_hpa_enabled(dev->id) || |
1334 | (dev->horkage & ATA_HORKAGE_BROKEN_HPA)) | 1339 | (dev->horkage & ATA_HORKAGE_BROKEN_HPA)) |
1335 | return 0; | 1340 | return 0; |
@@ -1889,6 +1894,7 @@ retry: | |||
1889 | case ATA_DEV_SEMB: | 1894 | case ATA_DEV_SEMB: |
1890 | class = ATA_DEV_ATA; /* some hard drives report SEMB sig */ | 1895 | class = ATA_DEV_ATA; /* some hard drives report SEMB sig */ |
1891 | case ATA_DEV_ATA: | 1896 | case ATA_DEV_ATA: |
1897 | case ATA_DEV_ZAC: | ||
1892 | tf.command = ATA_CMD_ID_ATA; | 1898 | tf.command = ATA_CMD_ID_ATA; |
1893 | break; | 1899 | break; |
1894 | case ATA_DEV_ATAPI: | 1900 | case ATA_DEV_ATAPI: |
@@ -1980,7 +1986,7 @@ retry: | |||
1980 | rc = -EINVAL; | 1986 | rc = -EINVAL; |
1981 | reason = "device reports invalid type"; | 1987 | reason = "device reports invalid type"; |
1982 | 1988 | ||
1983 | if (class == ATA_DEV_ATA) { | 1989 | if (class == ATA_DEV_ATA || class == ATA_DEV_ZAC) { |
1984 | if (!ata_id_is_ata(id) && !ata_id_is_cfa(id)) | 1990 | if (!ata_id_is_ata(id) && !ata_id_is_cfa(id)) |
1985 | goto err_out; | 1991 | goto err_out; |
1986 | if (ap->host->flags & ATA_HOST_IGNORE_ATA && | 1992 | if (ap->host->flags & ATA_HOST_IGNORE_ATA && |
@@ -2015,7 +2021,8 @@ retry: | |||
2015 | goto retry; | 2021 | goto retry; |
2016 | } | 2022 | } |
2017 | 2023 | ||
2018 | if ((flags & ATA_READID_POSTRESET) && class == ATA_DEV_ATA) { | 2024 | if ((flags & ATA_READID_POSTRESET) && |
2025 | (class == ATA_DEV_ATA || class == ATA_DEV_ZAC)) { | ||
2019 | /* | 2026 | /* |
2020 | * The exact sequence expected by certain pre-ATA4 drives is: | 2027 | * The exact sequence expected by certain pre-ATA4 drives is: |
2021 | * SRST RESET | 2028 | * SRST RESET |
@@ -2280,7 +2287,7 @@ int ata_dev_configure(struct ata_device *dev) | |||
2280 | sizeof(modelbuf)); | 2287 | sizeof(modelbuf)); |
2281 | 2288 | ||
2282 | /* ATA-specific feature tests */ | 2289 | /* ATA-specific feature tests */ |
2283 | if (dev->class == ATA_DEV_ATA) { | 2290 | if (dev->class == ATA_DEV_ATA || dev->class == ATA_DEV_ZAC) { |
2284 | if (ata_id_is_cfa(id)) { | 2291 | if (ata_id_is_cfa(id)) { |
2285 | /* CPRM may make this media unusable */ | 2292 | /* CPRM may make this media unusable */ |
2286 | if (id[ATA_ID_CFA_KEY_MGMT] & 1) | 2293 | if (id[ATA_ID_CFA_KEY_MGMT] & 1) |
@@ -4033,6 +4040,7 @@ int ata_dev_revalidate(struct ata_device *dev, unsigned int new_class, | |||
4033 | if (ata_class_enabled(new_class) && | 4040 | if (ata_class_enabled(new_class) && |
4034 | new_class != ATA_DEV_ATA && | 4041 | new_class != ATA_DEV_ATA && |
4035 | new_class != ATA_DEV_ATAPI && | 4042 | new_class != ATA_DEV_ATAPI && |
4043 | new_class != ATA_DEV_ZAC && | ||
4036 | new_class != ATA_DEV_SEMB) { | 4044 | new_class != ATA_DEV_SEMB) { |
4037 | ata_dev_info(dev, "class mismatch %u != %u\n", | 4045 | ata_dev_info(dev, "class mismatch %u != %u\n", |
4038 | dev->class, new_class); | 4046 | dev->class, new_class); |
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index dad83df555c4..3dbec8954c86 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c | |||
@@ -1809,6 +1809,7 @@ static unsigned int ata_eh_analyze_tf(struct ata_queued_cmd *qc, | |||
1809 | 1809 | ||
1810 | switch (qc->dev->class) { | 1810 | switch (qc->dev->class) { |
1811 | case ATA_DEV_ATA: | 1811 | case ATA_DEV_ATA: |
1812 | case ATA_DEV_ZAC: | ||
1812 | if (err & ATA_ICRC) | 1813 | if (err & ATA_ICRC) |
1813 | qc->err_mask |= AC_ERR_ATA_BUS; | 1814 | qc->err_mask |= AC_ERR_ATA_BUS; |
1814 | if (err & (ATA_UNC | ATA_AMNF)) | 1815 | if (err & (ATA_UNC | ATA_AMNF)) |
@@ -3792,7 +3793,8 @@ int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
3792 | struct ata_eh_context *ehc = &link->eh_context; | 3793 | struct ata_eh_context *ehc = &link->eh_context; |
3793 | unsigned long tmp; | 3794 | unsigned long tmp; |
3794 | 3795 | ||
3795 | if (dev->class != ATA_DEV_ATA) | 3796 | if (dev->class != ATA_DEV_ATA && |
3797 | dev->class != ATA_DEV_ZAC) | ||
3796 | continue; | 3798 | continue; |
3797 | if (!(ehc->i.dev_action[dev->devno] & | 3799 | if (!(ehc->i.dev_action[dev->devno] & |
3798 | ATA_EH_PARK)) | 3800 | ATA_EH_PARK)) |
@@ -3873,7 +3875,8 @@ int ata_eh_recover(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
3873 | 3875 | ||
3874 | /* retry flush if necessary */ | 3876 | /* retry flush if necessary */ |
3875 | ata_for_each_dev(dev, link, ALL) { | 3877 | ata_for_each_dev(dev, link, ALL) { |
3876 | if (dev->class != ATA_DEV_ATA) | 3878 | if (dev->class != ATA_DEV_ATA && |
3879 | dev->class != ATA_DEV_ZAC) | ||
3877 | continue; | 3880 | continue; |
3878 | rc = ata_eh_maybe_retry_flush(dev); | 3881 | rc = ata_eh_maybe_retry_flush(dev); |
3879 | if (rc) | 3882 | if (rc) |
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 0586f66d70fa..e364e86e84d7 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -235,7 +235,8 @@ static ssize_t ata_scsi_park_store(struct device *device, | |||
235 | rc = -ENODEV; | 235 | rc = -ENODEV; |
236 | goto unlock; | 236 | goto unlock; |
237 | } | 237 | } |
238 | if (dev->class != ATA_DEV_ATA) { | 238 | if (dev->class != ATA_DEV_ATA && |
239 | dev->class != ATA_DEV_ZAC) { | ||
239 | rc = -EOPNOTSUPP; | 240 | rc = -EOPNOTSUPP; |
240 | goto unlock; | 241 | goto unlock; |
241 | } | 242 | } |
@@ -1164,7 +1165,7 @@ static int ata_scsi_dev_config(struct scsi_device *sdev, | |||
1164 | 1165 | ||
1165 | depth = min(sdev->host->can_queue, ata_id_queue_depth(dev->id)); | 1166 | depth = min(sdev->host->can_queue, ata_id_queue_depth(dev->id)); |
1166 | depth = min(ATA_MAX_QUEUE - 1, depth); | 1167 | depth = min(ATA_MAX_QUEUE - 1, depth); |
1167 | scsi_adjust_queue_depth(sdev, MSG_SIMPLE_TAG, depth); | 1168 | scsi_change_queue_depth(sdev, depth); |
1168 | } | 1169 | } |
1169 | 1170 | ||
1170 | blk_queue_flush_queueable(q, false); | 1171 | blk_queue_flush_queueable(q, false); |
@@ -1243,21 +1244,17 @@ void ata_scsi_slave_destroy(struct scsi_device *sdev) | |||
1243 | * @ap: ATA port to which the device change the queue depth | 1244 | * @ap: ATA port to which the device change the queue depth |
1244 | * @sdev: SCSI device to configure queue depth for | 1245 | * @sdev: SCSI device to configure queue depth for |
1245 | * @queue_depth: new queue depth | 1246 | * @queue_depth: new queue depth |
1246 | * @reason: calling context | ||
1247 | * | 1247 | * |
1248 | * libsas and libata have different approaches for associating a sdev to | 1248 | * libsas and libata have different approaches for associating a sdev to |
1249 | * its ata_port. | 1249 | * its ata_port. |
1250 | * | 1250 | * |
1251 | */ | 1251 | */ |
1252 | int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev, | 1252 | int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev, |
1253 | int queue_depth, int reason) | 1253 | int queue_depth) |
1254 | { | 1254 | { |
1255 | struct ata_device *dev; | 1255 | struct ata_device *dev; |
1256 | unsigned long flags; | 1256 | unsigned long flags; |
1257 | 1257 | ||
1258 | if (reason != SCSI_QDEPTH_DEFAULT) | ||
1259 | return -EOPNOTSUPP; | ||
1260 | |||
1261 | if (queue_depth < 1 || queue_depth == sdev->queue_depth) | 1258 | if (queue_depth < 1 || queue_depth == sdev->queue_depth) |
1262 | return sdev->queue_depth; | 1259 | return sdev->queue_depth; |
1263 | 1260 | ||
@@ -1282,15 +1279,13 @@ int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev, | |||
1282 | if (sdev->queue_depth == queue_depth) | 1279 | if (sdev->queue_depth == queue_depth) |
1283 | return -EINVAL; | 1280 | return -EINVAL; |
1284 | 1281 | ||
1285 | scsi_adjust_queue_depth(sdev, MSG_SIMPLE_TAG, queue_depth); | 1282 | return scsi_change_queue_depth(sdev, queue_depth); |
1286 | return queue_depth; | ||
1287 | } | 1283 | } |
1288 | 1284 | ||
1289 | /** | 1285 | /** |
1290 | * ata_scsi_change_queue_depth - SCSI callback for queue depth config | 1286 | * ata_scsi_change_queue_depth - SCSI callback for queue depth config |
1291 | * @sdev: SCSI device to configure queue depth for | 1287 | * @sdev: SCSI device to configure queue depth for |
1292 | * @queue_depth: new queue depth | 1288 | * @queue_depth: new queue depth |
1293 | * @reason: calling context | ||
1294 | * | 1289 | * |
1295 | * This is libata standard hostt->change_queue_depth callback. | 1290 | * This is libata standard hostt->change_queue_depth callback. |
1296 | * SCSI will call into this callback when user tries to set queue | 1291 | * SCSI will call into this callback when user tries to set queue |
@@ -1302,12 +1297,11 @@ int __ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev, | |||
1302 | * RETURNS: | 1297 | * RETURNS: |
1303 | * Newly configured queue depth. | 1298 | * Newly configured queue depth. |
1304 | */ | 1299 | */ |
1305 | int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth, | 1300 | int ata_scsi_change_queue_depth(struct scsi_device *sdev, int queue_depth) |
1306 | int reason) | ||
1307 | { | 1301 | { |
1308 | struct ata_port *ap = ata_shost_to_port(sdev->host); | 1302 | struct ata_port *ap = ata_shost_to_port(sdev->host); |
1309 | 1303 | ||
1310 | return __ata_change_queue_depth(ap, sdev, queue_depth, reason); | 1304 | return __ata_change_queue_depth(ap, sdev, queue_depth); |
1311 | } | 1305 | } |
1312 | 1306 | ||
1313 | /** | 1307 | /** |
@@ -1968,6 +1962,7 @@ static void ata_scsi_rbuf_fill(struct ata_scsi_args *args, | |||
1968 | static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) | 1962 | static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) |
1969 | { | 1963 | { |
1970 | const u8 versions[] = { | 1964 | const u8 versions[] = { |
1965 | 0x00, | ||
1971 | 0x60, /* SAM-3 (no version claimed) */ | 1966 | 0x60, /* SAM-3 (no version claimed) */ |
1972 | 1967 | ||
1973 | 0x03, | 1968 | 0x03, |
@@ -1976,6 +1971,20 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) | |||
1976 | 0x02, | 1971 | 0x02, |
1977 | 0x60 /* SPC-3 (no version claimed) */ | 1972 | 0x60 /* SPC-3 (no version claimed) */ |
1978 | }; | 1973 | }; |
1974 | const u8 versions_zbc[] = { | ||
1975 | 0x00, | ||
1976 | 0xA0, /* SAM-5 (no version claimed) */ | ||
1977 | |||
1978 | 0x04, | ||
1979 | 0xC0, /* SBC-3 (no version claimed) */ | ||
1980 | |||
1981 | 0x04, | ||
1982 | 0x60, /* SPC-4 (no version claimed) */ | ||
1983 | |||
1984 | 0x60, | ||
1985 | 0x20, /* ZBC (no version claimed) */ | ||
1986 | }; | ||
1987 | |||
1979 | u8 hdr[] = { | 1988 | u8 hdr[] = { |
1980 | TYPE_DISK, | 1989 | TYPE_DISK, |
1981 | 0, | 1990 | 0, |
@@ -1990,6 +1999,11 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) | |||
1990 | if (ata_id_removeable(args->id)) | 1999 | if (ata_id_removeable(args->id)) |
1991 | hdr[1] |= (1 << 7); | 2000 | hdr[1] |= (1 << 7); |
1992 | 2001 | ||
2002 | if (args->dev->class == ATA_DEV_ZAC) { | ||
2003 | hdr[0] = TYPE_ZBC; | ||
2004 | hdr[2] = 0x6; /* ZBC is defined in SPC-4 */ | ||
2005 | } | ||
2006 | |||
1993 | memcpy(rbuf, hdr, sizeof(hdr)); | 2007 | memcpy(rbuf, hdr, sizeof(hdr)); |
1994 | memcpy(&rbuf[8], "ATA ", 8); | 2008 | memcpy(&rbuf[8], "ATA ", 8); |
1995 | ata_id_string(args->id, &rbuf[16], ATA_ID_PROD, 16); | 2009 | ata_id_string(args->id, &rbuf[16], ATA_ID_PROD, 16); |
@@ -2002,7 +2016,10 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf) | |||
2002 | if (rbuf[32] == 0 || rbuf[32] == ' ') | 2016 | if (rbuf[32] == 0 || rbuf[32] == ' ') |
2003 | memcpy(&rbuf[32], "n/a ", 4); | 2017 | memcpy(&rbuf[32], "n/a ", 4); |
2004 | 2018 | ||
2005 | memcpy(rbuf + 59, versions, sizeof(versions)); | 2019 | if (args->dev->class == ATA_DEV_ZAC) |
2020 | memcpy(rbuf + 58, versions_zbc, sizeof(versions_zbc)); | ||
2021 | else | ||
2022 | memcpy(rbuf + 58, versions, sizeof(versions)); | ||
2006 | 2023 | ||
2007 | return 0; | 2024 | return 0; |
2008 | } | 2025 | } |
@@ -2571,7 +2588,6 @@ static void atapi_request_sense(struct ata_queued_cmd *qc) | |||
2571 | 2588 | ||
2572 | DPRINTK("ATAPI request sense\n"); | 2589 | DPRINTK("ATAPI request sense\n"); |
2573 | 2590 | ||
2574 | /* FIXME: is this needed? */ | ||
2575 | memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); | 2591 | memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); |
2576 | 2592 | ||
2577 | #ifdef CONFIG_ATA_SFF | 2593 | #ifdef CONFIG_ATA_SFF |
@@ -3412,7 +3428,7 @@ static inline int __ata_scsi_queuecmd(struct scsi_cmnd *scmd, | |||
3412 | ata_xlat_func_t xlat_func; | 3428 | ata_xlat_func_t xlat_func; |
3413 | int rc = 0; | 3429 | int rc = 0; |
3414 | 3430 | ||
3415 | if (dev->class == ATA_DEV_ATA) { | 3431 | if (dev->class == ATA_DEV_ATA || dev->class == ATA_DEV_ZAC) { |
3416 | if (unlikely(!scmd->cmd_len || scmd->cmd_len > dev->cdb_len)) | 3432 | if (unlikely(!scmd->cmd_len || scmd->cmd_len > dev->cdb_len)) |
3417 | goto bad_cdb_len; | 3433 | goto bad_cdb_len; |
3418 | 3434 | ||
@@ -3570,7 +3586,7 @@ void ata_scsi_simulate(struct ata_device *dev, struct scsi_cmnd *cmd) | |||
3570 | ata_scsi_rbuf_fill(&args, ata_scsiop_read_cap); | 3586 | ata_scsi_rbuf_fill(&args, ata_scsiop_read_cap); |
3571 | break; | 3587 | break; |
3572 | 3588 | ||
3573 | case SERVICE_ACTION_IN: | 3589 | case SERVICE_ACTION_IN_16: |
3574 | if ((scsicmd[1] & 0x1f) == SAI_READ_CAPACITY_16) | 3590 | if ((scsicmd[1] & 0x1f) == SAI_READ_CAPACITY_16) |
3575 | ata_scsi_rbuf_fill(&args, ata_scsiop_read_cap); | 3591 | ata_scsi_rbuf_fill(&args, ata_scsiop_read_cap); |
3576 | else | 3592 | else |
diff --git a/drivers/ata/libata-transport.c b/drivers/ata/libata-transport.c index e37413228228..3227b7c8a05f 100644 --- a/drivers/ata/libata-transport.c +++ b/drivers/ata/libata-transport.c | |||
@@ -143,6 +143,7 @@ static struct { | |||
143 | { ATA_DEV_PMP_UNSUP, "pmp" }, | 143 | { ATA_DEV_PMP_UNSUP, "pmp" }, |
144 | { ATA_DEV_SEMB, "semb" }, | 144 | { ATA_DEV_SEMB, "semb" }, |
145 | { ATA_DEV_SEMB_UNSUP, "semb" }, | 145 | { ATA_DEV_SEMB_UNSUP, "semb" }, |
146 | { ATA_DEV_ZAC, "zac" }, | ||
146 | { ATA_DEV_NONE, "none" } | 147 | { ATA_DEV_NONE, "none" } |
147 | }; | 148 | }; |
148 | ata_bitfield_name_search(class, ata_class_names) | 149 | ata_bitfield_name_search(class, ata_class_names) |
diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c index 38216b991474..a9b0c820f2eb 100644 --- a/drivers/ata/pata_arasan_cf.c +++ b/drivers/ata/pata_arasan_cf.c | |||
@@ -961,7 +961,6 @@ static struct platform_driver arasan_cf_driver = { | |||
961 | .remove = arasan_cf_remove, | 961 | .remove = arasan_cf_remove, |
962 | .driver = { | 962 | .driver = { |
963 | .name = DRIVER_NAME, | 963 | .name = DRIVER_NAME, |
964 | .owner = THIS_MODULE, | ||
965 | .pm = &arasan_cf_pm_ops, | 964 | .pm = &arasan_cf_pm_ops, |
966 | .of_match_table = of_match_ptr(arasan_cf_id_table), | 965 | .of_match_table = of_match_ptr(arasan_cf_id_table), |
967 | }, | 966 | }, |
diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c index d59d5239405f..9aeb7a6dd4d4 100644 --- a/drivers/ata/pata_at32.c +++ b/drivers/ata/pata_at32.c | |||
@@ -389,7 +389,6 @@ static struct platform_driver pata_at32_driver = { | |||
389 | .remove = __exit_p(pata_at32_remove), | 389 | .remove = __exit_p(pata_at32_remove), |
390 | .driver = { | 390 | .driver = { |
391 | .name = "at32_ide", | 391 | .name = "at32_ide", |
392 | .owner = THIS_MODULE, | ||
393 | }, | 392 | }, |
394 | }; | 393 | }; |
395 | 394 | ||
diff --git a/drivers/ata/pata_at91.c b/drivers/ata/pata_at91.c index 8a66f23af4c4..9e85937d36a9 100644 --- a/drivers/ata/pata_at91.c +++ b/drivers/ata/pata_at91.c | |||
@@ -444,7 +444,6 @@ static struct platform_driver pata_at91_driver = { | |||
444 | .remove = pata_at91_remove, | 444 | .remove = pata_at91_remove, |
445 | .driver = { | 445 | .driver = { |
446 | .name = DRV_NAME, | 446 | .name = DRV_NAME, |
447 | .owner = THIS_MODULE, | ||
448 | }, | 447 | }, |
449 | }; | 448 | }; |
450 | 449 | ||
diff --git a/drivers/ata/pata_bf54x.c b/drivers/ata/pata_bf54x.c index 03f2f2bc83bd..dd7410019d15 100644 --- a/drivers/ata/pata_bf54x.c +++ b/drivers/ata/pata_bf54x.c | |||
@@ -1657,7 +1657,6 @@ static struct platform_driver bfin_atapi_driver = { | |||
1657 | .resume = bfin_atapi_resume, | 1657 | .resume = bfin_atapi_resume, |
1658 | .driver = { | 1658 | .driver = { |
1659 | .name = DRV_NAME, | 1659 | .name = DRV_NAME, |
1660 | .owner = THIS_MODULE, | ||
1661 | }, | 1660 | }, |
1662 | }; | 1661 | }; |
1663 | 1662 | ||
diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c index 4d37c5415fc7..bd6b089c67a3 100644 --- a/drivers/ata/pata_ep93xx.c +++ b/drivers/ata/pata_ep93xx.c | |||
@@ -1021,7 +1021,6 @@ static int ep93xx_pata_remove(struct platform_device *pdev) | |||
1021 | static struct platform_driver ep93xx_pata_platform_driver = { | 1021 | static struct platform_driver ep93xx_pata_platform_driver = { |
1022 | .driver = { | 1022 | .driver = { |
1023 | .name = DRV_NAME, | 1023 | .name = DRV_NAME, |
1024 | .owner = THIS_MODULE, | ||
1025 | }, | 1024 | }, |
1026 | .probe = ep93xx_pata_probe, | 1025 | .probe = ep93xx_pata_probe, |
1027 | .remove = ep93xx_pata_remove, | 1026 | .remove = ep93xx_pata_remove, |
diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c index 989ff5ac69ec..139d20778b29 100644 --- a/drivers/ata/pata_imx.c +++ b/drivers/ata/pata_imx.c | |||
@@ -240,7 +240,6 @@ static struct platform_driver pata_imx_driver = { | |||
240 | .driver = { | 240 | .driver = { |
241 | .name = DRV_NAME, | 241 | .name = DRV_NAME, |
242 | .of_match_table = imx_pata_dt_ids, | 242 | .of_match_table = imx_pata_dt_ids, |
243 | .owner = THIS_MODULE, | ||
244 | .pm = &pata_imx_pm_ops, | 243 | .pm = &pata_imx_pm_ops, |
245 | }, | 244 | }, |
246 | }; | 245 | }; |
diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c index ddf470c2341d..abda44183512 100644 --- a/drivers/ata/pata_ixp4xx_cf.c +++ b/drivers/ata/pata_ixp4xx_cf.c | |||
@@ -193,7 +193,6 @@ static int ixp4xx_pata_probe(struct platform_device *pdev) | |||
193 | static struct platform_driver ixp4xx_pata_platform_driver = { | 193 | static struct platform_driver ixp4xx_pata_platform_driver = { |
194 | .driver = { | 194 | .driver = { |
195 | .name = DRV_NAME, | 195 | .name = DRV_NAME, |
196 | .owner = THIS_MODULE, | ||
197 | }, | 196 | }, |
198 | .probe = ixp4xx_pata_probe, | 197 | .probe = ixp4xx_pata_probe, |
199 | .remove = ata_platform_remove_one, | 198 | .remove = ata_platform_remove_one, |
diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c index ccd1c83a05cc..252ba27fa63b 100644 --- a/drivers/ata/pata_mpc52xx.c +++ b/drivers/ata/pata_mpc52xx.c | |||
@@ -863,7 +863,6 @@ static struct platform_driver mpc52xx_ata_of_platform_driver = { | |||
863 | #endif | 863 | #endif |
864 | .driver = { | 864 | .driver = { |
865 | .name = DRV_NAME, | 865 | .name = DRV_NAME, |
866 | .owner = THIS_MODULE, | ||
867 | .of_match_table = mpc52xx_ata_of_match, | 866 | .of_match_table = mpc52xx_ata_of_match, |
868 | }, | 867 | }, |
869 | }; | 868 | }; |
diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c index 2a97d3a531ec..80a80548ad0a 100644 --- a/drivers/ata/pata_octeon_cf.c +++ b/drivers/ata/pata_octeon_cf.c | |||
@@ -1059,7 +1059,6 @@ static struct platform_driver octeon_cf_driver = { | |||
1059 | .probe = octeon_cf_probe, | 1059 | .probe = octeon_cf_probe, |
1060 | .driver = { | 1060 | .driver = { |
1061 | .name = DRV_NAME, | 1061 | .name = DRV_NAME, |
1062 | .owner = THIS_MODULE, | ||
1063 | .of_match_table = octeon_cf_match, | 1062 | .of_match_table = octeon_cf_match, |
1064 | .shutdown = octeon_cf_shutdown | 1063 | .shutdown = octeon_cf_shutdown |
1065 | }, | 1064 | }, |
diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index 64965398914a..dcc408abe171 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c | |||
@@ -75,7 +75,6 @@ MODULE_DEVICE_TABLE(of, pata_of_platform_match); | |||
75 | static struct platform_driver pata_of_platform_driver = { | 75 | static struct platform_driver pata_of_platform_driver = { |
76 | .driver = { | 76 | .driver = { |
77 | .name = "pata_of_platform", | 77 | .name = "pata_of_platform", |
78 | .owner = THIS_MODULE, | ||
79 | .of_match_table = pata_of_platform_match, | 78 | .of_match_table = pata_of_platform_match, |
80 | }, | 79 | }, |
81 | .probe = pata_of_platform_probe, | 80 | .probe = pata_of_platform_probe, |
diff --git a/drivers/ata/pata_palmld.c b/drivers/ata/pata_palmld.c index df2bb7504fc8..8c0d7d736b7a 100644 --- a/drivers/ata/pata_palmld.c +++ b/drivers/ata/pata_palmld.c | |||
@@ -124,7 +124,6 @@ static int palmld_pata_remove(struct platform_device *dev) | |||
124 | static struct platform_driver palmld_pata_platform_driver = { | 124 | static struct platform_driver palmld_pata_platform_driver = { |
125 | .driver = { | 125 | .driver = { |
126 | .name = DRV_NAME, | 126 | .name = DRV_NAME, |
127 | .owner = THIS_MODULE, | ||
128 | }, | 127 | }, |
129 | .probe = palmld_pata_probe, | 128 | .probe = palmld_pata_probe, |
130 | .remove = palmld_pata_remove, | 129 | .remove = palmld_pata_remove, |
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c index f8cff3e247c5..1eedfe46d7c8 100644 --- a/drivers/ata/pata_platform.c +++ b/drivers/ata/pata_platform.c | |||
@@ -224,7 +224,6 @@ static struct platform_driver pata_platform_driver = { | |||
224 | .remove = ata_platform_remove_one, | 224 | .remove = ata_platform_remove_one, |
225 | .driver = { | 225 | .driver = { |
226 | .name = DRV_NAME, | 226 | .name = DRV_NAME, |
227 | .owner = THIS_MODULE, | ||
228 | }, | 227 | }, |
229 | }; | 228 | }; |
230 | 229 | ||
diff --git a/drivers/ata/pata_pxa.c b/drivers/ata/pata_pxa.c index 73259bfda1e3..c36b3e6531d8 100644 --- a/drivers/ata/pata_pxa.c +++ b/drivers/ata/pata_pxa.c | |||
@@ -385,7 +385,6 @@ static struct platform_driver pxa_ata_driver = { | |||
385 | .remove = pxa_ata_remove, | 385 | .remove = pxa_ata_remove, |
386 | .driver = { | 386 | .driver = { |
387 | .name = DRV_NAME, | 387 | .name = DRV_NAME, |
388 | .owner = THIS_MODULE, | ||
389 | }, | 388 | }, |
390 | }; | 389 | }; |
391 | 390 | ||
diff --git a/drivers/ata/pata_rb532_cf.c b/drivers/ata/pata_rb532_cf.c index 3c5eb8fa6bd1..6d08446b877c 100644 --- a/drivers/ata/pata_rb532_cf.c +++ b/drivers/ata/pata_rb532_cf.c | |||
@@ -193,7 +193,6 @@ static struct platform_driver rb532_pata_platform_driver = { | |||
193 | .remove = rb532_pata_driver_remove, | 193 | .remove = rb532_pata_driver_remove, |
194 | .driver = { | 194 | .driver = { |
195 | .name = DRV_NAME, | 195 | .name = DRV_NAME, |
196 | .owner = THIS_MODULE, | ||
197 | }, | 196 | }, |
198 | }; | 197 | }; |
199 | 198 | ||
diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c index 1a24a5dc3940..fa44eb2872db 100644 --- a/drivers/ata/pata_samsung_cf.c +++ b/drivers/ata/pata_samsung_cf.c | |||
@@ -656,7 +656,6 @@ static struct platform_driver pata_s3c_driver = { | |||
656 | .id_table = pata_s3c_driver_ids, | 656 | .id_table = pata_s3c_driver_ids, |
657 | .driver = { | 657 | .driver = { |
658 | .name = DRV_NAME, | 658 | .name = DRV_NAME, |
659 | .owner = THIS_MODULE, | ||
660 | #ifdef CONFIG_PM_SLEEP | 659 | #ifdef CONFIG_PM_SLEEP |
661 | .pm = &pata_s3c_pm_ops, | 660 | .pm = &pata_s3c_pm_ops, |
662 | #endif | 661 | #endif |
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index 0bb2cabd2197..c7ddef89e7b0 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c | |||
@@ -1807,7 +1807,6 @@ MODULE_DEVICE_TABLE(of, sata_dwc_match); | |||
1807 | static struct platform_driver sata_dwc_driver = { | 1807 | static struct platform_driver sata_dwc_driver = { |
1808 | .driver = { | 1808 | .driver = { |
1809 | .name = DRV_NAME, | 1809 | .name = DRV_NAME, |
1810 | .owner = THIS_MODULE, | ||
1811 | .of_match_table = sata_dwc_match, | 1810 | .of_match_table = sata_dwc_match, |
1812 | }, | 1811 | }, |
1813 | .probe = sata_dwc_probe, | 1812 | .probe = sata_dwc_probe, |
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index 07bc7e4dbd04..f9054cd36a72 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c | |||
@@ -1488,7 +1488,7 @@ static int sata_fsl_probe(struct platform_device *ofdev) | |||
1488 | host_priv->csr_base = csr_base; | 1488 | host_priv->csr_base = csr_base; |
1489 | 1489 | ||
1490 | irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); | 1490 | irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); |
1491 | if (irq < 0) { | 1491 | if (!irq) { |
1492 | dev_err(&ofdev->dev, "invalid irq from platform\n"); | 1492 | dev_err(&ofdev->dev, "invalid irq from platform\n"); |
1493 | goto error_exit_with_cleanup; | 1493 | goto error_exit_with_cleanup; |
1494 | } | 1494 | } |
@@ -1624,7 +1624,6 @@ MODULE_DEVICE_TABLE(of, fsl_sata_match); | |||
1624 | static struct platform_driver fsl_sata_driver = { | 1624 | static struct platform_driver fsl_sata_driver = { |
1625 | .driver = { | 1625 | .driver = { |
1626 | .name = "fsl-sata", | 1626 | .name = "fsl-sata", |
1627 | .owner = THIS_MODULE, | ||
1628 | .of_match_table = fsl_sata_match, | 1627 | .of_match_table = fsl_sata_match, |
1629 | }, | 1628 | }, |
1630 | .probe = sata_fsl_probe, | 1629 | .probe = sata_fsl_probe, |
diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index ce2b99a1ed70..24e311fe2c1c 100644 --- a/drivers/ata/sata_highbank.c +++ b/drivers/ata/sata_highbank.c | |||
@@ -634,7 +634,6 @@ static struct platform_driver ahci_highbank_driver = { | |||
634 | .remove = ata_platform_remove_one, | 634 | .remove = ata_platform_remove_one, |
635 | .driver = { | 635 | .driver = { |
636 | .name = "highbank-ahci", | 636 | .name = "highbank-ahci", |
637 | .owner = THIS_MODULE, | ||
638 | .of_match_table = ahci_of_match, | 637 | .of_match_table = ahci_of_match, |
639 | .pm = &ahci_highbank_pm_ops, | 638 | .pm = &ahci_highbank_pm_ops, |
640 | }, | 639 | }, |
diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 391cfda1e83f..f9a0e34eb111 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c | |||
@@ -4280,7 +4280,6 @@ static struct platform_driver mv_platform_driver = { | |||
4280 | .resume = mv_platform_resume, | 4280 | .resume = mv_platform_resume, |
4281 | .driver = { | 4281 | .driver = { |
4282 | .name = DRV_NAME, | 4282 | .name = DRV_NAME, |
4283 | .owner = THIS_MODULE, | ||
4284 | .of_match_table = of_match_ptr(mv_sata_dt_ids), | 4283 | .of_match_table = of_match_ptr(mv_sata_dt_ids), |
4285 | }, | 4284 | }, |
4286 | }; | 4285 | }; |
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c index cdf99fac139a..1db6f5ce5e89 100644 --- a/drivers/ata/sata_nv.c +++ b/drivers/ata/sata_nv.c | |||
@@ -1951,7 +1951,7 @@ static int nv_swncq_slave_config(struct scsi_device *sdev) | |||
1951 | ata_id_c_string(dev->id, model_num, ATA_ID_PROD, sizeof(model_num)); | 1951 | ata_id_c_string(dev->id, model_num, ATA_ID_PROD, sizeof(model_num)); |
1952 | 1952 | ||
1953 | if (strncmp(model_num, "Maxtor", 6) == 0) { | 1953 | if (strncmp(model_num, "Maxtor", 6) == 0) { |
1954 | ata_scsi_change_queue_depth(sdev, 1, SCSI_QDEPTH_DEFAULT); | 1954 | ata_scsi_change_queue_depth(sdev, 1); |
1955 | ata_dev_notice(dev, "Disabling SWNCQ mode (depth %x)\n", | 1955 | ata_dev_notice(dev, "Disabling SWNCQ mode (depth %x)\n", |
1956 | sdev->queue_depth); | 1956 | sdev->queue_depth); |
1957 | } | 1957 | } |
diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index ea1fbc1d4c5f..cb0d2e644af5 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c | |||
@@ -1004,7 +1004,6 @@ static struct platform_driver sata_rcar_driver = { | |||
1004 | .id_table = sata_rcar_id_table, | 1004 | .id_table = sata_rcar_id_table, |
1005 | .driver = { | 1005 | .driver = { |
1006 | .name = DRV_NAME, | 1006 | .name = DRV_NAME, |
1007 | .owner = THIS_MODULE, | ||
1008 | .of_match_table = sata_rcar_match, | 1007 | .of_match_table = sata_rcar_match, |
1009 | #ifdef CONFIG_PM_SLEEP | 1008 | #ifdef CONFIG_PM_SLEEP |
1010 | .pm = &sata_rcar_pm_ops, | 1009 | .pm = &sata_rcar_pm_ops, |