Re: [patch] input: Add PCI PS/2 controller support [5/13]

From: Oliver Neukum (oliver@neukum.org)
Date: Sat Jun 14 2003 - 15:51:51 EST


> +static int pcips2_write(struct serio *io, unsigned char val)
> +{
> + struct pcips2_data *ps2if = io->driver;
> + unsigned int stat;
> +
> + do {
> + stat = inb(ps2if->base + PS2_STATUS);
> + cpu_relax();
> + } while (!(stat & PS2_STAT_TXEMPTY));

What will happen if somebody unplugs the base station while this
is running?

        Regards
                Oliver

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:40 EST