/* disable the device; this must be called with the device spinlock held */ static void it8708_disable(struct ite_dev *dev) { ite_dbg("%s called", __func__); /* clear out all interrupt enable flags */ outb(inb(dev->cir_addr + IT8708_C0IER) & ~(IT85_IEC | IT85_RFOIE | IT85_RDAIE | IT85_TLDLIE), dev->cir_addr + IT8708_C0IER); /* disable the receiver */ it8708_disable_rx(dev); /* erase the FIFO */ outb(IT85_FIFOCLR | inb(dev->cir_addr + IT8708_C0MSTCR), dev->cir_addr + IT8708_C0MSTCR); }
static void it8708_disable(struct ite_dev *dev) { ite_dbg("%s called", __func__); outb(inb(dev->cir_addr + IT8708_C0IER) & ~(IT85_IEC | IT85_RFOIE | IT85_RDAIE | IT85_TLDLIE), dev->cir_addr + IT8708_C0IER); it8708_disable_rx(dev); outb(IT85_FIFOCLR | inb(dev->cir_addr + IT8708_C0MSTCR), dev->cir_addr + IT8708_C0MSTCR); }