Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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()

+8 -7
+2 -2
drivers/ata/libata-core.c
··· 4938 4938 if (qc->result_tf.status & ATA_SENSE && 4939 4939 ((ata_is_ncq(qc->tf.protocol) && 4940 4940 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)))) { 4943 4943 /* 4944 4944 * Tell SCSI EH to not overwrite scmd->result even if 4945 4945 * this command is finished with result SAM_STAT_GOOD.
+2 -1
drivers/ata/pata_arasan_cf.c
··· 529 529 /* dma_request_channel may sleep, so calling from process context */ 530 530 acdev->dma_chan = dma_request_chan(acdev->host->dev, "data"); 531 531 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"); 533 534 acdev->dma_chan = NULL; 534 535 goto chan_request_fail; 535 536 }
+1 -1
drivers/ata/pata_ns87415.c
··· 260 260 * LOCKING: 261 261 * Inherited from caller. 262 262 */ 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) 264 264 { 265 265 struct ata_ioports *ioaddr = &ap->ioaddr; 266 266
+3 -3
drivers/ata/pata_octeon_cf.c
··· 815 815 irq_handler_t irq_handler = NULL; 816 816 void __iomem *base; 817 817 struct octeon_cf_port *cf_port; 818 - int rv = -ENOMEM; 819 818 u32 bus_width; 819 + int rv; 820 820 821 821 node = pdev->dev.of_node; 822 822 if (node == NULL) ··· 893 893 cs0 = devm_ioremap(&pdev->dev, res_cs0->start, 894 894 resource_size(res_cs0)); 895 895 if (!cs0) 896 - return rv; 896 + return -ENOMEM; 897 897 898 898 /* allocate host */ 899 899 host = ata_host_alloc(&pdev->dev, 1); 900 900 if (!host) 901 - return rv; 901 + return -ENOMEM; 902 902 903 903 ap = host->ports[0]; 904 904 ap->private_data = cf_port;