tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-descriptors-spi head: 0ea1828d74e37216988a9e46cfd3db602607eba8 commit: 0ea1828d74e37216988a9e46cfd3db602607eba8 [4/4] stab at fixing cs gpios config: i386-randconfig-x076-201835 (attached as .config) compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 reproduce: git checkout 0ea1828d74e37216988a9e46cfd3db602607eba8 # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): drivers/spi/spi-dw.c: In function 'dw_spi_setup': >> drivers/spi/spi-dw.c:431:25: error: 'struct spi_device' has no member named 'cs_gpio'; did you mean 'cs_gpiod'? if (gpio_is_valid(spi->cs_gpio)) { ^~~~~~~ cs_gpiod drivers/spi/spi-dw.c:432:36: error: 'struct spi_device' has no member named 'cs_gpio'; did you mean 'cs_gpiod'? ret = gpio_direction_output(spi->cs_gpio, ^~~~~~~ cs_gpiod vim +431 drivers/spi/spi-dw.c e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 397 e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 398 /* This may be called twice for each spi dev */ e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 399 static int dw_spi_setup(struct spi_device *spi) e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 400 { e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 401 struct dw_spi_chip *chip_info = NULL; e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 402 struct chip_data *chip; d9c73bb8 drivers/spi/spi-dw.c Baruch Siach 2014-01-31 403 int ret; e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 404 e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 405 /* Only alloc on first setup */ e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 406 chip = spi_get_ctldata(spi); e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 407 if (!chip) { a97c883a drivers/spi/spi-dw.c Axel Lin 2014-08-31 408 chip = kzalloc(sizeof(struct chip_data), GFP_KERNEL); e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 409 if (!chip) e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 410 return -ENOMEM; 43f627ac drivers/spi/spi-dw.c Baruch Siach 2013-12-30 411 spi_set_ctldata(spi, chip); e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 412 } e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 413 e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 414 /* e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 415 * Protocol drivers may change the chip settings, so... e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 416 * if chip_info exists, use it e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 417 */ e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 418 chip_info = spi->controller_data; e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 419 e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 420 /* chip_info doesn't always exist */ e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 421 if (chip_info) { e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 422 if (chip_info->cs_control) e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 423 chip->cs_control = chip_info->cs_control; e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 424 e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 425 chip->poll_mode = chip_info->poll_mode; e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 426 chip->type = chip_info->type; e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 427 } e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 428 6096828e drivers/spi/spi-dw.c Jisheng Zhang 2015-12-23 429 chip->tmode = SPI_TMOD_TR; c3ce15bf drivers/spi/spi-dw.c Andy Shevchenko 2014-09-18 430 d9c73bb8 drivers/spi/spi-dw.c Baruch Siach 2014-01-31 @431 if (gpio_is_valid(spi->cs_gpio)) { d9c73bb8 drivers/spi/spi-dw.c Baruch Siach 2014-01-31 432 ret = gpio_direction_output(spi->cs_gpio, d9c73bb8 drivers/spi/spi-dw.c Baruch Siach 2014-01-31 433 !(spi->mode & SPI_CS_HIGH)); d9c73bb8 drivers/spi/spi-dw.c Baruch Siach 2014-01-31 434 if (ret) d9c73bb8 drivers/spi/spi-dw.c Baruch Siach 2014-01-31 435 return ret; d9c73bb8 drivers/spi/spi-dw.c Baruch Siach 2014-01-31 436 } d9c73bb8 drivers/spi/spi-dw.c Baruch Siach 2014-01-31 437 e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 438 return 0; e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 439 } e24c7452 drivers/spi/dw_spi.c Feng Tang 2009-12-14 440 :::::: The code at line 431 was first introduced by commit :::::: d9c73bb8a3a5e4b76d2ad55da00d9ea776475c81 spi: dw: add support for gpio controlled chip select :::::: TO: Baruch Siach <baruch@xxxxxxxxxx> :::::: CC: Mark Brown <broonie@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip