All of lore.kernel.org
 help / color / mirror / Atom feed
* Aspeed SPI driver upstreaming
@ 2020-01-06 23:27 Patrick Williams
  2020-01-07  8:34 ` Cédric Le Goater
  0 siblings, 1 reply; 8+ messages in thread
From: Patrick Williams @ 2020-01-06 23:27 UTC (permalink / raw)
  To: openbmc; +Cc: taoren, clg, joel

[-- Attachment #1: Type: text/plain, Size: 1546 bytes --]

Cedric, Joel,

There is currently the aspeed-smc driver[1], which is upstreamed, but only
supports spi-nor devices.  There also a more generic spi-aspeed
driver[2], which might only exist in Facebook kernel trees, that
supports all spi devices but it doesn't do the calibration work.

I made some changes to the spi-aspeed driver recently in order to get it
to somewhat support TPM 2.0 devices (*).  The spi-aspeed driver also
already supported generic spi-nor MTD devices, but just at a slower
speed than aspeed-smc due to missing the calibration routines.

Tao mentioned to me that there was a discussion at one of the F2F events
in 2019 about combining those two drivers and getting them upstreamed,
but that the hang-up was getting upstream mtd and spi subsystems to
agree on how to handle calibration routines in the spi subsystem?  I
can't seem to find anything about this on the LKML.  Do either of you
know where that discussion went and what the current state / plans of
upstreamming a generic Aspeed SPI driver are?

[1] https://github.com/openbmc/linux/blob/dev-5.3/drivers/mtd/spi-nor/aspeed-smc.c
[2] https://github.com/facebook/openbmc-linux/blob/dev-5.0/drivers/spi/spi-aspeed.c

(*) The Aspeed SPI master is half-duplex and the TPM SPI spec effectively
    requires full duplex hardware.  I did some workarounds to get it to work
    with one particular part and need to work with the vendor and upstream
    to figure out the best way to reliably handle half-duplex SPI masters.
-- 
Patrick Williams

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-05-24  6:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06 23:27 Aspeed SPI driver upstreaming Patrick Williams
2020-01-07  8:34 ` Cédric Le Goater
2020-01-09 16:43   ` Patrick Williams
2020-01-13  8:02     ` Cédric Le Goater
2022-05-16 18:18     ` Brad Bishop
2022-05-20 21:10       ` Patrick Williams
2022-05-24  0:10         ` Brad Bishop
2022-05-24  6:16           ` Cédric Le Goater

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.