Do like bus_space(9) does. This fixes the build on platforms where
bus_addr_t and bus_size_t are different (like i386 PAE).
Fixes: c2e9c5bbf022 tpm: Refactor TIS and add a SPI attachment
Differential D45287 Authored by rlibby on May 21 2024, 5:04 PM.
Details Summary Do like bus_space(9) does. This fixes the build on platforms where Fixes: c2e9c5bbf022 tpm: Refactor TIS and add a SPI attachment Test Plan I don't know how to test this beyond make tinderbox. @jhibbits please feel free to take this patch over if desired.
Diff Detail
Event TimelineHerald added a subscriber: imp. · View Herald TranscriptMay 21 2024, 5:04 PM2024-05-21 17:04:02 (UTC+0) Harbormaster completed remote builds in B57820: Diff 138848.May 21 2024, 5:04 PM2024-05-21 17:04:03 (UTC+0) rlibby edited the test plan for this revision. (Show Details)May 21 2024, 5:05 PM2024-05-21 17:05:26 (UTC+0) Comment Actions The only time this makes a difference is if the sizes of bus_addr_t and bus_size_t are different, and I don't have any test hardware where that's the case and I can test TPM. (Only hardware I have where that's the case is ppc Book-E, but that doesn't have a TPM). This revision is now accepted and ready to land.May 21 2024, 5:34 PM2024-05-21 17:34:51 (UTC+0) Comment Actions
Right. Not that I think this is risky, but would you like to do any testing of tpm at all before pushing to main? Otherwise I'll go ahead and push it without testing beyond make. Comment Actions
No need for me to test. There's no risk for any platform Juniper uses, or my RPi I tested the original change with. Thanks for taking this! Closed by commit rGbea2bf458d2c: tpm_if.m: declare bus addresses as bus_size_t not bus_addr_t (authored by rlibby). · Explain WhyMay 22 2024, 2:56 PM2024-05-22 14:56:18 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 138848 sys/dev/tpm/tpm_bus.c
sys/dev/tpm/tpm_if.m
|
Indents are wrong.