Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upReport errors returned by _qspi_configure_format #11603
Conversation
This comment has been minimized.
This comment has been minimized.
@kyle-cypress, thank you for your changes. |
This comment has been minimized.
This comment has been minimized.
I like the fixes, but I don't like to extend more error codes into the system. To me the The driver can produce more info by doing |
LGTM , just a question about error numbering Edit: rethinking my review after the above comment, missed it prior reviewing |
QSPIF_BD_ERROR_INVALID_ERASE_PARAMS = -4005, /* Erase command not on sector aligned addresses or exceeds device size */ | ||
QSPIF_BD_ERROR_DEVICE_NOT_UNIQE = -4006, /* Only one instance per csel is allowed */ | ||
QSPIF_BD_ERROR_DEVICE_MAX_EXCEED = -4007 /* Max active QSPIF devices exceeded */ | ||
QSPIF_BD_ERROR_CONF_FORMAT_FAILED = -4005, /* Configure format failed */ |
This comment has been minimized.
This comment has been minimized.
0xc0170
Oct 1, 2019
Member
QSPIF_BD_ERROR_CONF_FORMAT_FAILED
shall this be 4008? Or this follows _FAILED
thus placed irght after the latest failure status and the rest is shifted.
This comment has been minimized.
This comment has been minimized.
kyle-cypress
Oct 1, 2019
Author
This is made moot by 5b3b147 which removes the new error code entirely.
This comment has been minimized.
This comment has been minimized.
@SeppoTakalo Acceptable patch would be to revert adding new error code and use |
This comment has been minimized.
This comment has been minimized.
Yes. When no new error codes are added, it does not change the API and is acceptable as a "fix" into the next patch release. |
This comment has been minimized.
This comment has been minimized.
Agreed |
LGTM |
@@ -302,17 +306,23 @@ int QSPIFBlockDevice::read(void *buffer, bd_addr_t addr, bd_size_t size) | |||
_mutex.lock(); |
This comment has been minimized.
This comment has been minimized.
VeijoPesonen
Oct 10, 2019
•
Contributor
Remember to release this. Could you also check all the places where the code decides to jump to Scratch that, other places seem to be fine.goto exit_point
-label as the the same issue seems to be found also from other functions inside this file.
This comment has been minimized.
This comment has been minimized.
kyle-cypress
Oct 14, 2019
Author
Updated to follow the goto exit_point
pattern used everywhere else.
This comment has been minimized.
This comment has been minimized.
CI started |
This comment has been minimized.
This comment has been minimized.
mbed-ci
commented
Oct 11, 2019
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
This comment has been minimized.
This comment has been minimized.
@kyle-cypress looks like this needs a rebase |
5b3b147
to
9730ee2
This comment has been minimized.
This comment has been minimized.
Rebased |
9730ee2
to
3f20b80
Please see my previous comment. |
Update to follow the same `goto exit_point` pattern that is used by the rest of the functions to avoid leaving the mutex locked when errors are detected and require the function to abort.
This comment has been minimized.
This comment has been minimized.
I missed the non-struck-out text at the beginning before. Should be fixed now. |
Looks good to me |
This comment has been minimized.
This comment has been minimized.
Hi |
This comment has been minimized.
This comment has been minimized.
CI restarted |
This comment has been minimized.
This comment has been minimized.
mbed-ci
commented
Oct 17, 2019
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
This comment has been minimized.
This comment has been minimized.
There's internal CI license issue, we are investigating. |
This comment has been minimized.
This comment has been minimized.
CI restarted |
This comment has been minimized.
This comment has been minimized.
mbed-ci
commented
Oct 18, 2019
Test run: FAILEDSummary: 7 of 11 test jobs failed Failed test jobs:
|
This comment has been minimized.
This comment has been minimized.
CI restarted |
This comment has been minimized.
This comment has been minimized.
mbed-ci
commented
Oct 18, 2019
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
kyle-cypress commentedSep 30, 2019
Description
The function returns a qspi_status_t but most usages in QSPIFBlockDevice assume that it always succeeds.
Pull request type
Reviewers
Release Notes