2008-08-12 22:26:52     Touch screen initialization error: "probe of spi0.2 failed with error -22"

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-08-12 22:26:52     Touch screen initialization error: "probe of spi0.2 failed with error -22"

Bo Zhuang (CANADA)

Message: 60357   

 

Hi guys,

 

When I tried to include the touch screen driver in the linux kernel for our custom board, there is an error in the boot log. The detail is shown below. The touch screen controller we are trying to use is ads7846.

 

.....

scsi0 : pata-bf54x

ata1: PATA max UDMA/100 cmd 0x00000000 ctl 0xffc03800 bmdma 0x00000000 irq 68

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@4

bfin-spi bfin-spi.1: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc02300, dma channel@5

input: gpio-keys as /class/input/input0

ads7846: probe of spi0.2 failed with error -22

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller Driver, Version 1.8, regs_base@ffc02200

rtc-bfin rtc-bfin: setting the system clock to 2058-04-24 13:59:00 (2786882340)

.....

 

What is error -22? Is the error coming from the driver of the spi flash or from the driver of the touch screen?

 

Thanks,

 

Bo

QuoteReplyEditDelete

 

 

2008-08-12 22:42:53     Re: Touch screen initialization error: "probe of spi0.2 failed with error -22"

Mike Frysinger (UNITED STATES)

Message: 60358   

 

the error is coming from the touchscreen driver ... that's what the message said:

ads7846: probe of spi0.2 failed with error -22

 

as for what 22 is, review the errno list in inlucde:

grep 22 include/*/*errno*

Attachments

    Outcomes