Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 000080c3 authored by Albert Lee's avatar Albert Lee Committed by Jeff Garzik
Browse files

[PATCH] libata-dev: filter out noisy ATAPI error messages



Changes:
 - Filter out ATAPI packet command error messages in ata_pio_error()
 - Filter out ATAPI packet command error messages in ata_host_intr()

Signed-off-by: default avatarAlbert Lee <albertcc@tw.ibm.com>

======
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent a4f16610
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -3520,11 +3520,12 @@ static void ata_pio_error(struct ata_port *ap)
{
	struct ata_queued_cmd *qc;

	printk(KERN_WARNING "ata%u: PIO error\n", ap->id);

	qc = ata_qc_from_tag(ap, ap->active_tag);
	assert(qc != NULL);

	if (qc->tf.command != ATA_CMD_PACKET)
		printk(KERN_WARNING "ata%u: PIO error\n", ap->id);

	/* make sure qc->err_mask is available to 
	 * know what's wrong and recover
	 */
@@ -4404,6 +4405,7 @@ inline unsigned int ata_host_intr (struct ata_port *ap,
		break;

	case HSM_ST_ERR:
		if (qc->tf.command != ATA_CMD_PACKET)
			printk(KERN_ERR "ata%u: command error, drv_stat 0x%x host_stat 0x%x\n",
			       ap->id, status, host_stat);