lib: sbi: fwft: Fix return error values according to the spec
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 0 repliesNew
- v13 patches 0 repliesSuperseded
Changes in v2 from the cover letter
- Use BIT_ULL instead of BIT to avoid shift overflow.
- Include another patch to optimize flags clearing.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | include: sbi: Add SBI_ERR_DENIED_LOCKEDinclude/ include/ | +3 | 1 reply | |
| 2/4 | lib: sbi: fwft: Return SBI_ERR_DENIED_LOCKED when setting a locked featurelib/ | +1 | 1 reply | |
| 3/4 | lib: sbi: fwft: Fix error return value for feature > 32 bitsinclude/ lib/ | +9 | 2 replies | |
| 3/4 | lib: sbi: fwft: Fix error return value for feature > 32 bits | +0 | 1 reply | |
| 3/4 | lib: sbi: fwft: Fix error return value for feature > 32 bits | +0 | 0 replies | |
| 3/4 | lib: sbi: fwft: Fix error return value for feature > 32 bits | +0 | 0 replies | |
| 4/4 | lib: sbi: Clear lock only for local eventslib/ | +16 | 1 reply |
Reviews trailers per patch
3 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Anup Patel | Andrew Jones |
|---|---|---|
| 1/4 | R-b | |
| 2/4 | R-b | |
| 3/4 | ||
| 3/4 | ||
| 3/4 | ||
| 3/4 | ||
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/4] lib: sbi: fwft: Fix return error values according to the spec
The fwft spec mandates that an invalid feature ID return SBI_ERR_INVALID_PARAM and that setting a locked value should return SBI_ERR_DENIED_LOCKED. Add support for both cases.
---
v2:
- Use BIT_ULL instead of BIT to avoid shift overflow.
- Include another patch to optimize flags clearing.
Cl?ment L?ger (4):
include: sbi: Add SBI_ERR_DENIED_LOCKED
lib: sbi: fwft: Return SBI_ERR_DENIED_LOCKED when setting a locked
feature
lib: sbi: fwft: Fix error return value for feature > 32 bits
lib: sbi: Clear lock only for local events
include/sbi/sbi_ecall_interface.h | 3 ++- include/sbi/sbi_error.h | 1 + include/sbi/sbi_fwft.h | 4 ++-- lib/sbi/sbi_fwft.c | 38 +++++++++++++++++++------------ 4 files changed, 29 insertions(+), 17 deletions(-)
Signature · 1 line
2.47.1