Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in prussd.py that causes kernel oops while sending message th…
…rough rpmsg channel A kernel oops (NULL pointer dereference) was thrown when the pruss_api driver hadn't already been probed because there was no check that the rpmsg device file in /dev was being created before sending messages to the PRU. Sometimes the oops wasn't thrown but there was a loss of some initial data sent to PRU before the rpmsg device file gets initialized. Now, the code waits before sending messages to PRU until the appropriate device file is created to ensure no loss of data. No kernel oops is thrown now. The device file creation is timed out after 3 seconds otherwise the function might get stuck in an infinite loop if rpmsg isn't being used and function gets called.
- Loading branch information