[spi:for-4.17 3/3] drivers//spi/spi-cadence.c:320:27: error: 'CDNS_SPI_ISR_OFFSET' undeclared; did you mean 'CDNS_SPI_IXR_DEFAULT'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-4.17
head:   f960eae0fcd0bf7c01e8d5a2637959778b1828b4
commit: f960eae0fcd0bf7c01e8d5a2637959778b1828b4 [3/3] spi: cadence: Add usleep_range() for cdns_spi_fill_tx_fifo()
config: x86_64-randconfig-x010-201815 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout f960eae0fcd0bf7c01e8d5a2637959778b1828b4
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers//spi/spi-cadence.c: In function 'cdns_spi_fill_tx_fifo':
>> drivers//spi/spi-cadence.c:320:27: error: 'CDNS_SPI_ISR_OFFSET' undeclared (first use in this function); did you mean 'CDNS_SPI_IXR_DEFAULT'?
      if (cdns_spi_read(xspi, CDNS_SPI_ISR_OFFSET) &
                              ^~~~~~~~~~~~~~~~~~~
                              CDNS_SPI_IXR_DEFAULT
   drivers//spi/spi-cadence.c:320:27: note: each undeclared identifier is reported only once for each function it appears in
>> drivers//spi/spi-cadence.c:321:7: error: 'CDNS_SPI_IXR_TXFULL_MASK' undeclared (first use in this function); did you mean 'CDNS_SPI_IXR_TXFULL'?
          CDNS_SPI_IXR_TXFULL_MASK)
          ^~~~~~~~~~~~~~~~~~~~~~~~
          CDNS_SPI_IXR_TXFULL

vim +320 drivers//spi/spi-cadence.c

   305	
   306	/**
   307	 * cdns_spi_fill_tx_fifo - Fills the TX FIFO with as many bytes as possible
   308	 * @xspi:	Pointer to the cdns_spi structure
   309	 */
   310	static void cdns_spi_fill_tx_fifo(struct cdns_spi *xspi)
   311	{
   312		unsigned long trans_cnt = 0;
   313	
   314		while ((trans_cnt < CDNS_SPI_FIFO_DEPTH) &&
   315		       (xspi->tx_bytes > 0)) {
   316	
   317			/* When xspi in busy condition, bytes may send failed,
   318			 * then spi control did't work thoroughly, add one byte delay
   319			 */
 > 320			if (cdns_spi_read(xspi, CDNS_SPI_ISR_OFFSET) &
 > 321			    CDNS_SPI_IXR_TXFULL_MASK)
   322				usleep_range(10, 20);
   323	
   324			if (xspi->txbuf)
   325				cdns_spi_write(xspi, CDNS_SPI_TXD, *xspi->txbuf++);
   326			else
   327				cdns_spi_write(xspi, CDNS_SPI_TXD, 0);
   328	
   329			xspi->tx_bytes--;
   330			trans_cnt++;
   331		}
   332	}
   333	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux