mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "drivers: qcom: rpmh-rsc: check for control TCS availablilty"
This commit is contained in:
commit
e55853d876
1 changed files with 3 additions and 1 deletions
|
|
@ -642,9 +642,11 @@ int rpmh_rsc_write_pdc_data(struct rsc_drv *drv, const struct tcs_request *msg)
|
|||
{
|
||||
int i;
|
||||
void __iomem *addr = drv->base + RSC_PDC_DRV_DATA;
|
||||
struct tcs_group *tcs = get_tcs_of_type(drv, CONTROL_TCS);
|
||||
struct tcs_cmd *cmd;
|
||||
|
||||
if (!msg || !msg->cmds || msg->num_cmds != RSC_PDC_DATA_SIZE)
|
||||
if (!msg || !msg->cmds || msg->num_cmds != RSC_PDC_DATA_SIZE ||
|
||||
!tcs->num_tcs)
|
||||
return -EINVAL;
|
||||
|
||||
for (i = 0; i < msg->num_cmds; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue