Lines Matching refs:spi
999 static int ifx_spi_spi_probe(struct spi_device *spi) in ifx_spi_spi_probe() argument
1007 dev_dbg(&spi->dev, "ignoring subsequent detection"); in ifx_spi_spi_probe()
1011 pl_data = dev_get_platdata(&spi->dev); in ifx_spi_spi_probe()
1013 dev_err(&spi->dev, "missing platform data!"); in ifx_spi_spi_probe()
1020 dev_err(&spi->dev, "spi device allocation failed"); in ifx_spi_spi_probe()
1024 ifx_dev->spi_dev = spi; in ifx_spi_spi_probe()
1036 spi->max_speed_hz = ifx_dev->max_hz; in ifx_spi_spi_probe()
1037 spi->mode = IFX_SPI_MODE | (SPI_LOOP & spi->mode); in ifx_spi_spi_probe()
1038 spi->bits_per_word = spi_bpw; in ifx_spi_spi_probe()
1039 ret = spi_setup(spi); in ifx_spi_spi_probe()
1041 dev_err(&spi->dev, "SPI setup wasn't successful %d", ret); in ifx_spi_spi_probe()
1046 if (spi->bits_per_word == 32) in ifx_spi_spi_probe()
1048 else if (spi->bits_per_word == 16) in ifx_spi_spi_probe()
1063 dev_err(&spi->dev, "DMA-TX buffer allocation failed"); in ifx_spi_spi_probe()
1072 dev_err(&spi->dev, "DMA-RX buffer allocation failed"); in ifx_spi_spi_probe()
1080 spi_set_drvdata(spi, ifx_dev); in ifx_spi_spi_probe()
1089 dev_err(&spi->dev, "create default tty port failed"); in ifx_spi_spi_probe()
1099 dev_info(&spi->dev, "gpios %d, %d, %d, %d, %d", in ifx_spi_spi_probe()
1106 dev_err(&spi->dev, "Unable to allocate GPIO%d (RESET)", in ifx_spi_spi_probe()
1113 dev_err(&spi->dev, "Unable to configure GPIO%d (RESET)", in ifx_spi_spi_probe()
1123 dev_err(&spi->dev, "Unable to configure GPIO%d (ON)", in ifx_spi_spi_probe()
1131 dev_err(&spi->dev, "Unable to allocate GPIO%d (MRDY)", in ifx_spi_spi_probe()
1138 dev_err(&spi->dev, "Unable to configure GPIO%d (MRDY)", in ifx_spi_spi_probe()
1146 dev_err(&spi->dev, "Unable to allocate GPIO%d (SRDY)", in ifx_spi_spi_probe()
1154 dev_err(&spi->dev, "Unable to configure GPIO%d (SRDY)", in ifx_spi_spi_probe()
1162 dev_err(&spi->dev, "Unable to allocate GPIO%d (RESET_OUT)", in ifx_spi_spi_probe()
1169 dev_err(&spi->dev, "Unable to configure GPIO%d (RESET_OUT)", in ifx_spi_spi_probe()
1180 dev_err(&spi->dev, "Unable to get irq %x\n", in ifx_spi_spi_probe()
1191 dev_err(&spi->dev, "Unable to get irq %x", in ifx_spi_spi_probe()
1197 pm_runtime_set_active(&spi->dev); in ifx_spi_spi_probe()
1198 pm_runtime_enable(&spi->dev); in ifx_spi_spi_probe()
1239 static int ifx_spi_spi_remove(struct spi_device *spi) in ifx_spi_spi_remove() argument
1241 struct ifx_spi_device *ifx_dev = spi_get_drvdata(spi); in ifx_spi_spi_remove()
1268 static void ifx_spi_spi_shutdown(struct spi_device *spi) in ifx_spi_spi_shutdown() argument
1270 struct ifx_spi_device *ifx_dev = spi_get_drvdata(spi); in ifx_spi_spi_shutdown()
1336 struct spi_device *spi = to_spi_device(dev); in ifx_spi_pm_runtime_idle() local
1337 struct ifx_spi_device *ifx_dev = spi_get_drvdata(spi); in ifx_spi_pm_runtime_idle()
1358 MODULE_DEVICE_TABLE(spi, ifx_id_table);