Lines Matching full:init_b
26 struct gpio_desc *init_b; member
52 * wait_for_init_b - wait for the INIT_B pin to have a given state, or wait
56 * @value: Value INIT_B to wait for (1 = asserted = low)
57 * @alt_udelay: Delay to wait if the INIT_B GPIO is not available
59 * Returns 0 when the INIT_B GPIO reached the given state or -ETIMEDOUT if
60 * too much time passed waiting for that. If no INIT_B GPIO is available
69 if (conf->init_b) { in wait_for_init_b()
71 int ret = gpiod_get_value(conf->init_b); in wait_for_init_b()
77 dev_err(&mgr->dev, "Error reading INIT_B (%d)\n", ret); in wait_for_init_b()
84 dev_err(&mgr->dev, "Timeout waiting for INIT_B to %s\n", in wait_for_init_b()
198 if (conf->init_b) { in xilinx_spi_write_complete()
199 ret = gpiod_get_value(conf->init_b); in xilinx_spi_write_complete()
202 dev_err(&mgr->dev, "Error reading INIT_B (%d)\n", ret); in xilinx_spi_write_complete()
240 conf->init_b = devm_gpiod_get_optional(&spi->dev, "init-b", GPIOD_IN); in xilinx_spi_probe()
241 if (IS_ERR(conf->init_b)) in xilinx_spi_probe()
242 return dev_err_probe(&spi->dev, PTR_ERR(conf->init_b), in xilinx_spi_probe()
243 "Failed to get INIT_B gpio\n"); in xilinx_spi_probe()