Lines Matching +full:reset +full:- +full:mask

1 // SPDX-License-Identifier: GPL-2.0-only
73 .mask = (_mask), \
115 buf[POLARITY_HI_INDEX][idx] &= ~irq_data->mask; in pm8008_set_type_config()
116 buf[POLARITY_LO_INDEX][idx] |= irq_data->mask; in pm8008_set_type_config()
121 buf[POLARITY_HI_INDEX][idx] |= irq_data->mask; in pm8008_set_type_config()
122 buf[POLARITY_LO_INDEX][idx] &= ~irq_data->mask; in pm8008_set_type_config()
126 buf[POLARITY_HI_INDEX][idx] |= irq_data->mask; in pm8008_set_type_config()
127 buf[POLARITY_LO_INDEX][idx] |= irq_data->mask; in pm8008_set_type_config()
131 return -EINVAL; in pm8008_set_type_config()
135 buf[SET_TYPE_INDEX][idx] |= irq_data->mask; in pm8008_set_type_config()
137 buf[SET_TYPE_INDEX][idx] &= ~irq_data->mask; in pm8008_set_type_config()
181 MFD_CELL_NAME("pm8008-regulator"),
182 MFD_CELL_RES("qpnp-temp-alarm", pm8008_temp_res),
183 MFD_CELL_NAME("pm8008-gpio"),
196 struct device *dev = &client->dev; in pm8008_probe()
200 struct gpio_desc *reset; in pm8008_probe() local
204 dummy = devm_i2c_new_dummy_device(dev, client->adapter, client->addr + 1); in pm8008_probe()
224 reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); in pm8008_probe()
225 if (IS_ERR(reset)) in pm8008_probe()
226 return PTR_ERR(reset); in pm8008_probe()
229 * The PMIC does not appear to require a post-reset delay, but wait in pm8008_probe()
234 name = devm_kasprintf(dev, GFP_KERNEL, "%pOF-internal", dev->of_node); in pm8008_probe()
236 return -ENOMEM; in pm8008_probe()
242 return -ENOMEM; in pm8008_probe()
248 ret = devm_regmap_add_irq_chip_fwnode(dev, fwnode, regmap, client->irq, in pm8008_probe()