mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 10:32:35 +00:00
7a70d9a1cf
The zynqmp-sha driver is always loaded and register its algorithm even on
platform which do not have the proper hardware.
This lead to a stacktrace due to zynqmp-sha3-384 failing its crypto
self tests.
So check if hardware is present via the firmware API call get_version.
While at it, simplify the platform_driver by using module_platform_driver()
Furthermore the driver should depend on ZYNQMP_FIRMWARE since it cannot
work without it.
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
zynqmp-aes-gcm.c | ||
zynqmp-sha.c |