Re: [PATCH][ATA] Add ide-disk led-trigger to ATA subsystem

From: Alan Cox
Date: Sun Jan 18 2009 - 13:30:08 EST


On Sun, 18 Jan 2009 10:50:30 -0500
Jeff Garzik <jeff@xxxxxxxxxx> wrote:

> Pavel Machek wrote:
> > On Sat 2009-01-10 16:08:27, Carsten Schlote wrote:
> >> void ata_sff_exec_command(struct ata_port *ap, const struct
> >> ata_taskfile *tf)
> >> {
> >> + ledtrig_ide_activity();
> >> +
> >> DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command);
> >>
> >> iowrite8(tf->command, ap->ioaddr.command_addr);
> >>
> >
> > Is there a more generic place so that we won't have to modify all the
> > libata drivers?
>
>
> One would think you could do this at the block layer...

ata_sff_exec_command is also on a timing critical path so the wrong place
to be touching other stuff. It's mid command issue.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/