Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
cf20662d
Commit
cf20662d
authored
Feb 11, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branches 'spi/fix/doc', 'spi/fix/nuc900' and 'spi/fix/rspi' into spi-linus
parents
797d0dec
e9305331
f7db1588
e290c343
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
5 deletions
+25
-5
Documentation/spi/spi-summary
Documentation/spi/spi-summary
+16
-1
drivers/spi/Kconfig
drivers/spi/Kconfig
+2
-2
drivers/spi/spi-nuc900.c
drivers/spi/spi-nuc900.c
+2
-0
include/linux/spi/spi.h
include/linux/spi/spi.h
+5
-2
No files found.
Documentation/spi/spi-summary
View file @
cf20662d
...
@@ -543,7 +543,22 @@ SPI MASTER METHODS
...
@@ -543,7 +543,22 @@ SPI MASTER METHODS
queuing transfers that arrive in the meantime. When the driver is
queuing transfers that arrive in the meantime. When the driver is
finished with this message, it must call
finished with this message, it must call
spi_finalize_current_message() so the subsystem can issue the next
spi_finalize_current_message() so the subsystem can issue the next
transfer. This may sleep.
message. This may sleep.
master->transfer_one(struct spi_master *master, struct spi_device *spi,
struct spi_transfer *transfer)
The subsystem calls the driver to transfer a single transfer while
queuing transfers that arrive in the meantime. When the driver is
finished with this transfer, it must call
spi_finalize_current_transfer() so the subsystem can issue the next
transfer. This may sleep. Note: transfer_one and transfer_one_message
are mutually exclusive; when both are set, the generic subsystem does
not call your transfer_one callback.
Return values:
negative errno: error
0: transfer is finished
1: transfer is still in progress
DEPRECATED METHODS
DEPRECATED METHODS
...
...
drivers/spi/Kconfig
View file @
cf20662d
...
@@ -376,10 +376,10 @@ config SPI_PXA2XX_PCI
...
@@ -376,10 +376,10 @@ config SPI_PXA2XX_PCI
def_tristate SPI_PXA2XX && PCI
def_tristate SPI_PXA2XX && PCI
config SPI_RSPI
config SPI_RSPI
tristate "Renesas RSPI controller"
tristate "Renesas RSPI
/QSPI
controller"
depends on (SUPERH && SH_DMAE_BASE) || ARCH_SHMOBILE
depends on (SUPERH && SH_DMAE_BASE) || ARCH_SHMOBILE
help
help
SPI driver for Renesas RSPI blocks.
SPI driver for Renesas RSPI
and QSPI
blocks.
config SPI_S3C24XX
config SPI_S3C24XX
tristate "Samsung S3C24XX series SPI"
tristate "Samsung S3C24XX series SPI"
...
...
drivers/spi/spi-nuc900.c
View file @
cf20662d
...
@@ -361,6 +361,8 @@ static int nuc900_spi_probe(struct platform_device *pdev)
...
@@ -361,6 +361,8 @@ static int nuc900_spi_probe(struct platform_device *pdev)
init_completion
(
&
hw
->
done
);
init_completion
(
&
hw
->
done
);
master
->
mode_bits
=
SPI_CPOL
|
SPI_CPHA
|
SPI_CS_HIGH
;
master
->
mode_bits
=
SPI_CPOL
|
SPI_CPHA
|
SPI_CS_HIGH
;
if
(
hw
->
pdata
->
lsb
)
master
->
mode_bits
|=
SPI_LSB_FIRST
;
master
->
num_chipselect
=
hw
->
pdata
->
num_cs
;
master
->
num_chipselect
=
hw
->
pdata
->
num_cs
;
master
->
bus_num
=
hw
->
pdata
->
bus_num
;
master
->
bus_num
=
hw
->
pdata
->
bus_num
;
hw
->
bitbang
.
master
=
hw
->
master
;
hw
->
bitbang
.
master
=
hw
->
master
;
...
...
include/linux/spi/spi.h
View file @
cf20662d
...
@@ -273,7 +273,7 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
...
@@ -273,7 +273,7 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
* message while queuing transfers that arrive in the meantime. When the
* message while queuing transfers that arrive in the meantime. When the
* driver is finished with this message, it must call
* driver is finished with this message, it must call
* spi_finalize_current_message() so the subsystem can issue the next
* spi_finalize_current_message() so the subsystem can issue the next
*
transfer
*
message
* @unprepare_transfer_hardware: there are currently no more messages on the
* @unprepare_transfer_hardware: there are currently no more messages on the
* queue so the subsystem notifies the driver that it may relax the
* queue so the subsystem notifies the driver that it may relax the
* hardware by issuing this call
* hardware by issuing this call
...
@@ -287,7 +287,10 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
...
@@ -287,7 +287,10 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
* - return 1 if the transfer is still in progress. When
* - return 1 if the transfer is still in progress. When
* the driver is finished with this transfer it must
* the driver is finished with this transfer it must
* call spi_finalize_current_transfer() so the subsystem
* call spi_finalize_current_transfer() so the subsystem
* can issue the next transfer
* can issue the next transfer. Note: transfer_one and
* transfer_one_message are mutually exclusive; when both
* are set, the generic subsystem does not call your
* transfer_one callback.
* @unprepare_message: undo any work done by prepare_message().
* @unprepare_message: undo any work done by prepare_message().
* @cs_gpios: Array of GPIOs to use as chip select lines; one per CS
* @cs_gpios: Array of GPIOs to use as chip select lines; one per CS
* number. Any individual value may be -ENOENT for CS lines that
* number. Any individual value may be -ENOENT for CS lines that
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment