From: Jonathan Marek <hidden> Date: 2021-03-04 19:51:16
If these fields are not set in dts, the driver will use these variables
uninitialized to set the fields. Not only will it set garbage values for
these fields, but it can overflow into other fields and break those.
In the current sm8250 dts, the dmic01 entries do not have a pullup setting,
and might not work without this change.
Fixes: 6e261d1090d6 ("pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver")
Signed-off-by: Jonathan Marek <redacted>
---
drivers/pinctrl/qcom/pinctrl-lpass-lpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Thu 04 Mar 13:48 CST 2021, Jonathan Marek wrote:
If these fields are not set in dts, the driver will use these variables
uninitialized to set the fields. Not only will it set garbage values for
these fields, but it can overflow into other fields and break those.
In the current sm8250 dts, the dmic01 entries do not have a pullup setting,
and might not work without this change.
Perhaps you didn't see it, but Dan reported this a few days back. So
unless you object I would suggest that we include:
Reported-by: kernel test robot <redacted>
Reported-by: Dan Carpenter <redacted>
Reviewed-by: Bjorn Andersson <redacted>
Regards,
Bjorn
From: Jonathan Marek <hidden> Date: 2021-03-05 00:23:21
On 3/4/21 7:05 PM, Bjorn Andersson wrote:
On Thu 04 Mar 13:48 CST 2021, Jonathan Marek wrote:
quoted
If these fields are not set in dts, the driver will use these variables
uninitialized to set the fields. Not only will it set garbage values for
these fields, but it can overflow into other fields and break those.
In the current sm8250 dts, the dmic01 entries do not have a pullup setting,
and might not work without this change.
Perhaps you didn't see it, but Dan reported this a few days back. So
unless you object I would suggest that we include:
I did not see it. But feel free to add tags.
Reported-by: kernel test robot <redacted>
Reported-by: Dan Carpenter <redacted>
Reviewed-by: Bjorn Andersson <redacted>
Regards,
Bjorn
Thanks Jonathan for fixing this!
On 04/03/2021 19:48, Jonathan Marek wrote:
If these fields are not set in dts, the driver will use these variables
uninitialized to set the fields. Not only will it set garbage values for
these fields, but it can overflow into other fields and break those.
In the current sm8250 dts, the dmic01 entries do not have a pullup setting,
and might not work without this change.
Fixes: 6e261d1090d6 ("pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver")
Signed-off-by: Jonathan Marek <redacted>
---
On Thu, Mar 4, 2021 at 8:49 PM Jonathan Marek [off-list ref] wrote:
If these fields are not set in dts, the driver will use these variables
uninitialized to set the fields. Not only will it set garbage values for
these fields, but it can overflow into other fields and break those.
In the current sm8250 dts, the dmic01 entries do not have a pullup setting,
and might not work without this change.
Fixes: 6e261d1090d6 ("pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver")
Signed-off-by: Jonathan Marek <redacted>