/* disable the device; this must be called with the device spinlock held */ static void it8709_disable(struct ite_dev *dev) { ite_dbg("%s called", __func__); /* clear out all interrupt enable flags */ it8709_wr(dev, it8709_rr(dev, IT85_C0IER) & ~(IT85_IEC | IT85_RFOIE | IT85_RDAIE | IT85_TLDLIE), IT85_C0IER); /* disable the receiver */ it8709_disable_rx(dev); /* erase the FIFO */ it8709_wr(dev, IT85_FIFOCLR | it8709_rr(dev, IT85_C0MSTCR), IT85_C0MSTCR); }
static void it8709_disable(struct ite_dev *dev) { ite_dbg("%s called", __func__); it8709_wr(dev, it8709_rr(dev, IT85_C0IER) & ~(IT85_IEC | IT85_RFOIE | IT85_RDAIE | IT85_TLDLIE), IT85_C0IER); it8709_disable_rx(dev); it8709_wr(dev, IT85_FIFOCLR | it8709_rr(dev, IT85_C0MSTCR), IT85_C0MSTCR); }