Source
163
163
struct gpio_chip *gc = irq_desc_get_handler_data(desc);
164
164
struct zx_gpio *chip = gpiochip_get_data(gc);
165
165
struct irq_chip *irqchip = irq_desc_get_chip(desc);
166
166
167
167
chained_irq_enter(irqchip, desc);
168
168
169
169
pending = readw_relaxed(chip->base + ZX_GPIO_MIS);
170
170
writew_relaxed(pending, chip->base + ZX_GPIO_IC);
171
171
if (pending) {
172
172
for_each_set_bit(offset, &pending, ZX_GPIO_NR)
173
-
generic_handle_irq(irq_find_mapping(gc->irqdomain,
173
+
generic_handle_irq(irq_find_mapping(gc->irq.domain,
174
174
offset));
175
175
}
176
176
177
177
chained_irq_exit(irqchip, desc);
178
178
}
179
179
180
180
static void zx_irq_mask(struct irq_data *d)
181
181
{
182
182
struct gpio_chip *gc = irq_data_get_irq_chip_data(d);
183
183
struct zx_gpio *chip = gpiochip_get_data(gc);