Skip to content

Commit ffabf7c

Browse files
committed
Merge tag 'ata-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata
Pull ata fixes from Damien Le Moal: - Fix error message output in the pata_arasan_cf driver (Minjie) - Fix invalid error return in the pata_octeon_cf driver initialization (Yingliang) - Fix a compilation warning due to a missing static function declaration in the pata_ns87415 driver (Arnd) - Fix the condition evaluating when to fetch sense data for successful completions, which should be done only when command duration limits are being used (Niklas) * tag 'ata-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata: ata: libata-core: fix when to fetch sense data for successful commands ata: pata_ns87415: mark ns87560_tf_read static ata: pata_octeon_cf: fix error return code in octeon_cf_probe() ata: pata_arasan_cf: Use dev_err_probe() instead dev_err() in data_xfer()
2 parents 122e794 + 3ac873c commit ffabf7c

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

drivers/ata/libata-core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4938,8 +4938,8 @@ void ata_qc_complete(struct ata_queued_cmd *qc)
49384938
if (qc->result_tf.status & ATA_SENSE &&
49394939
((ata_is_ncq(qc->tf.protocol) &&
49404940
dev->flags & ATA_DFLAG_CDL_ENABLED) ||
4941-
(!(ata_is_ncq(qc->tf.protocol) &&
4942-
ata_id_sense_reporting_enabled(dev->id))))) {
4941+
(!ata_is_ncq(qc->tf.protocol) &&
4942+
ata_id_sense_reporting_enabled(dev->id)))) {
49434943
/*
49444944
* Tell SCSI EH to not overwrite scmd->result even if
49454945
* this command is finished with result SAM_STAT_GOOD.

drivers/ata/pata_arasan_cf.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@ static void data_xfer(struct work_struct *work)
529529
/* dma_request_channel may sleep, so calling from process context */
530530
acdev->dma_chan = dma_request_chan(acdev->host->dev, "data");
531531
if (IS_ERR(acdev->dma_chan)) {
532-
dev_err(acdev->host->dev, "Unable to get dma_chan\n");
532+
dev_err_probe(acdev->host->dev, PTR_ERR(acdev->dma_chan),
533+
"Unable to get dma_chan\n");
533534
acdev->dma_chan = NULL;
534535
goto chan_request_fail;
535536
}

drivers/ata/pata_ns87415.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static u8 ns87560_check_status(struct ata_port *ap)
260260
* LOCKING:
261261
* Inherited from caller.
262262
*/
263-
void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
263+
static void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
264264
{
265265
struct ata_ioports *ioaddr = &ap->ioaddr;
266266

drivers/ata/pata_octeon_cf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,8 @@ static int octeon_cf_probe(struct platform_device *pdev)
815815
irq_handler_t irq_handler = NULL;
816816
void __iomem *base;
817817
struct octeon_cf_port *cf_port;
818-
int rv = -ENOMEM;
819818
u32 bus_width;
819+
int rv;
820820

821821
node = pdev->dev.of_node;
822822
if (node == NULL)
@@ -893,12 +893,12 @@ static int octeon_cf_probe(struct platform_device *pdev)
893893
cs0 = devm_ioremap(&pdev->dev, res_cs0->start,
894894
resource_size(res_cs0));
895895
if (!cs0)
896-
return rv;
896+
return -ENOMEM;
897897

898898
/* allocate host */
899899
host = ata_host_alloc(&pdev->dev, 1);
900900
if (!host)
901-
return rv;
901+
return -ENOMEM;
902902

903903
ap = host->ports[0];
904904
ap->private_data = cf_port;

0 commit comments

Comments
 (0)