Lines Matching +full:i2c +full:- +full:polling
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * i2c-pca-isa.c driver for PCA9564 on ISA boards
18 #include <linux/i2c.h>
19 #include <linux/i2c-algo-pca.h>
24 #define DRIVER "i2c-pca-isa"
28 static int irq = -1;
64 if (irq > -1) { in pca_isa_waitforcompletion()
69 /* Do polling */ in pca_isa_waitforcompletion()
114 if (irq <= -1) in pca_isa_match()
115 dev_warn(dev, "Using polling mode (specify irq)\n"); in pca_isa_match()
135 if (!request_region(base, IO_SIZE, "i2c-pca-isa")) { in pca_isa_probe()
140 if (irq > -1) { in pca_isa_probe()
141 if (request_irq(irq, pca_handler, 0, "i2c-pca-isa", &pca_isa_ops) < 0) { in pca_isa_probe()
149 dev_err(dev, "Failed to add i2c bus\n"); in pca_isa_probe()
156 if (irq > -1) in pca_isa_probe()
161 return -ENODEV; in pca_isa_probe()
168 if (irq > -1) { in pca_isa_remove()
197 "\t\tFor PCA9665:\tStandard: 60300 - 100099\n"
198 "\t\t\t\tFast: 100100 - 400099\n"
199 "\t\t\t\tFast+: 400100 - 10000099\n"