[U-Boot] [PATCH] hashtable: fix environment variable corruption

2019-01-30 Thread Roman Kapl
-by: Roman Kapl --- Note: The hash-table will still degenerate into a linear search in the case above, maybe re-hashing should be done with an appropriate trigger. lib/hashtable.c | 13 -- test/env/Makefile| 1 + test/env/hashtable.c | 125

[U-Boot] [PATCH] cmd: date: Do not overwrite arguments

2019-02-08 Thread Roman Kapl
Arguments are const and belong to the caller. Calling date in a hush loop will yield different results from the second invocation. Signed-off-by: Roman Kapl --- cmd/date.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/date.c b/cmd/date.c index 1115b6c8d6

[U-Boot] [PATCH] tpm: wait for valid status

2019-05-16 Thread Roman Kapl
The TPM specification says that the EXPECT_DATA bit is not valid until the VALID bit is set. Wait for that bit to be set. Fixes problems with Ifineon SPI TPM. Signed-off-by: Roman Kapl --- drivers/tpm/tpm2_tis_spi.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3] ata: ahci allow 64-bit DMA for SATA

2019-10-14 Thread Roman Kapl
Allow 64-bit DMA on AHCI. If not supported by the host controller, at least print a message and fail. Signed-off-by: Roman Kapl --- v1 -> v2: v1 was a mistake v2 -> v3: suppress warning on 32-bit phys addr platforms by using the upper/lower 32 bits macros drivers/ata/ahci.

[U-Boot] [PATCH] ata: ahci allow 64-bit DMA for SATA

2019-08-28 Thread Roman Kapl
Allow 64-bit DMA on AHCI. If not supported by the host controller, at least print a message and fail. Signed-off-by: Roman Kapl --- drivers/ata/ahci.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 9a08575053

[U-Boot] [PATCH v2] ata: ahci allow 64-bit DMA for SATA

2019-08-28 Thread Roman Kapl
Allow 64-bit DMA on AHCI. If not supported by the host controller, at least print a message and fail. Signed-off-by: Roman Kapl --- Please disregard the previous patch, I've send a wrong version that does not even compile. drivers/ata/ahci.c | 14 +++--- 1 file changed, 11 inser