tsif: tsif1 initialization bug fix
When using CONFIG_MSM_USE_TSIF1 to enable the second tsif instance, the device initialization failed because of a errant device ID. The check has been updated to accept the correct device ID range (0..1) Signed-off-by: Joel Nider <jnider@codeaurora.org>
This commit is contained in:
committed by
Bryan Huntsman
parent
d783499ad3
commit
5578bdb65d
@@ -104,6 +104,13 @@ enum tsif_state {
|
||||
tsif_state_error = 3,
|
||||
};
|
||||
|
||||
/**
|
||||
* tsif_get_active - return active tsif hardware instance
|
||||
*
|
||||
* Return TSIF instance to use (selected by CONFIG_MSM_USE_TSIF1)
|
||||
*/
|
||||
int tsif_get_active(void);
|
||||
|
||||
/**
|
||||
* tsif_attach - Attach to the device.
|
||||
* @id: TSIF device ID, used to identify TSIF instance.
|
||||
|
||||
Reference in New Issue
Block a user