[#5879] GPIO controlled slave request may fail when bfin_spi_setup() gets executed twice
Submitted By: Michael Hennerich
Open Date
2010-02-03 10:40:13 Close Date
2010-02-22 10:29:20
Priority:
Medium Assignee:
Michael Hennerich
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Category:
N/A Board:
N/A
Processor:
ALL Silicon Revision:
any
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
any Toolchain version or rev.:
any
App binary format:
N/A
Summary: GPIO controlled slave request may fail when bfin_spi_setup() gets executed twice
Details:
GPIO controlled slave request may fail when bfin_spi_setup() gets executed twice.
Some drivers such as the ADS7846 calls spi_setup() from its probe function.
spi->bits_per_word = 8;
spi->mode = SPI_MODE_0;
err = spi_setup(spi);
This will cause gpiolib:gpio_request() to return -EBUSY.
Follow-ups
--- Michael Hennerich 2010-02-03 10:47:19
Only gpio_request() on the first setup.
Fixed on trunk
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found