Eric Curtin
9d7600df51
Use scope-based memory management for malloc, free, open, close, etc.
...
If we are using C++, we might as well use scope-based memory management
for these things, cleaner and less error prone. Also removed
unnecessary gotos.
2 years ago
Caleb Connolly
50ef0328af
minor cleanups, improve error handling
...
gracefully handle UFS_BSG not being enabled in the kernel, rather than
putting the device into a semi-bricked state (oops).
2 years ago
Caleb Connolly
4c49647382
cleanup, stub out tests
...
not sure how best to write tests, probably a larger test framework on
a board farm to test on real devices will be more sensible.
3 years ago
Caleb Connolly
55612452e0
its ALIIIIIIVE
...
not yet properly tested, but it seems to mostly work just fine. Slot
switching and marking boot as successful at least just work!
3 years ago