-
Notifications
You must be signed in to change notification settings - Fork 5.2k
spi: Migrate bcm2708 to generic queueing #978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The bcm2708 spi driver still uses an own queueing what is considered deprecated. The generic spi code therefore prints a warning "master is unqueued, this is deprecated" This patch migrates the driver to using the generic queueing. Signed-off-by: Heiner Kallweit <[email protected]>
Ping @msperl |
I recommend using spi-bcm2835 instead - it comes with the foundation kernel already and there exists an overlay to use that driver instead of the spi-bcm2708. On top of that spi-bcm2835 contains a lot of other optimizations and features that are not found in spi-bcm2708 (less interrupts, 3 wire mode, more distinct clock frequencies,...) There is a patch to that driver that already uses DMA for longer spi-transfers (3ecd37e, 7e52be0 and 29ad1a7) - which has been merged into spi/for-next and that means that as soon as the merge window for 4.2 opens (and it has been accepted by Linux) we can create a request to merge that into the foundation kernels as well. Finally the patch only implements the transfer_one_message interface and not the transfer_one interface which is the new interface that people should be use to code drivers (and which will also get depreciated eventually). |
OK. Meanwhile I switched to bcm-2835 by activating the overlay. |
If you look at the original ticket for the overlay then the idea was for a gradual move. The question is when we want to make this change... |
If you say that switching to spi-bcm2835 is unlikely to break things for existing spi users and is a better driver, then I've no objections. |
I'm not really an SPI user so I'm going to have to take it on trust that the new driver is good, but providing we have an overlay to revert to the old driver should people have problems then I think we should make the switch. |
Shall I create an overlay for spi-bcm2708 and change the default in the device-tree to spi-bcm2835? |
created #987 to activate spi-bcm2835 by default. |
@hkallweit Now that #987 has been merged for a while and in a few firmware updates, are you happy to close this? |
Yes, can be closed. |
The bcm2708 spi driver still uses an own queueing what is considered
deprecated. The generic spi code therefore prints a warning
"master is unqueued, this is deprecated"
This patch migrates the driver to using the generic queueing.
Signed-off-by: Heiner Kallweit [email protected]