mirror of
https://github.com/torvalds/linux.git
synced 2024-09-27 10:23:00 +00:00
[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: Albert Lee <albertcc@tw.ibm.com> ====== Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
parent
a4f1661008
commit
000080c349
|
@ -3520,11 +3520,12 @@ static void ata_pio_error(struct ata_port *ap)
|
||||||
{
|
{
|
||||||
struct ata_queued_cmd *qc;
|
struct ata_queued_cmd *qc;
|
||||||
|
|
||||||
printk(KERN_WARNING "ata%u: PIO error\n", ap->id);
|
|
||||||
|
|
||||||
qc = ata_qc_from_tag(ap, ap->active_tag);
|
qc = ata_qc_from_tag(ap, ap->active_tag);
|
||||||
assert(qc != NULL);
|
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
|
/* make sure qc->err_mask is available to
|
||||||
* know what's wrong and recover
|
* know what's wrong and recover
|
||||||
*/
|
*/
|
||||||
|
@ -4404,8 +4405,9 @@ fsm_start:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HSM_ST_ERR:
|
case HSM_ST_ERR:
|
||||||
printk(KERN_ERR "ata%u: command error, drv_stat 0x%x host_stat 0x%x\n",
|
if (qc->tf.command != ATA_CMD_PACKET)
|
||||||
ap->id, status, host_stat);
|
printk(KERN_ERR "ata%u: command error, drv_stat 0x%x host_stat 0x%x\n",
|
||||||
|
ap->id, status, host_stat);
|
||||||
|
|
||||||
/* make sure qc->err_mask is available to
|
/* make sure qc->err_mask is available to
|
||||||
* know what's wrong and recover
|
* know what's wrong and recover
|
||||||
|
|
Loading…
Reference in New Issue
Block a user