-
Notifications
You must be signed in to change notification settings - Fork 50
Remove fallback to default device open #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
|
Can you also clean-up the following:
|
| return name; | ||
| } | ||
|
|
||
| static const char *get_default_device_name(int domain_id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, I checked and this function cannot be removed. The reason is that some old platform use non-secure devices for daemons(if non-secure-domain property is added in DT).
You can just rename the function as get_non_secure_device_name and modify the default: case here.
| static int fastrpc_wait_for_device(int domain) | ||
| { | ||
| int inotify_fd = -1, watch_fd = -1, err = 0; | ||
| const char *sec_dev_name = NULL, *def_dev_name = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check for non-secure device also to maintain backward compatibility
5f86fc5 to
867b001
Compare
In case of default domain ID, the device open request falls back to DEFAUL_DEVICE which will be defined in the libs to which the application is linked. Remove this legacy fallback logic to avoid any confusion and unexpected observations. Signed-off-by: Ling Xu <[email protected]>
|
This pull request has been marked as stale due to 60 days of inactivity. |
In case of default domain ID, the device open request falls back to DEFAUL_DEVICE which will be defined in the libs to which the application is linked. Remove this legacy fallback logic to avoid any confusion and unexpected observations.