1SPI_REGISTER_MASTER(9)  Serial Peripheral Interface (S  SPI_REGISTER_MASTER(9)
2
3
4

NAME

6       spi_register_master - register SPI master controller
7

SYNOPSIS

9       int spi_register_master(struct spi_master * master);
10

ARGUMENTS

12       master
13           initialized master, originally from spi_alloc_master
14

CONTEXT

16       can sleep
17

DESCRIPTION

19       SPI master controllers connect to their drivers using some non-SPI bus,
20       such as the platform bus. The final stage of probe in that code
21       includes calling spi_register_master to hook up to this SPI bus glue.
22
23       SPI controllers use board specific (often SOC specific) bus numbers,
24       and board-specific addressing for SPI devices combines those numbers
25       with chip select numbers. Since SPI does not directly support dynamic
26       device identification, boards need configuration tables telling which
27       chip is at which address.
28
29       This must be called from context that can sleep. It returns zero on
30       success, else a negative error code (dropping the master's refcount).
31       After a successful return, the caller is responsible for calling
32       spi_unregister_master.
33
35Kernel Hackers Manual 3.10         June 2019            SPI_REGISTER_MASTER(9)
Impressum