[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0101016e7d2ca862-0ec3d2c5-c309-4d97-9221-f09480b17c02-000000@us-west-2.amazonses.com>
Date: Mon, 18 Nov 2019 06:21:49 +0000
From: bgodavar@...eaurora.org
To: Stephen Boyd <swboyd@...omium.org>
Cc: johan.hedberg@...il.com, marcel@...tmann.org, mka@...omium.org,
linux-kernel@...r.kernel.org, linux-bluetooth@...r.kernel.org,
hemantg@...eaurora.org, linux-arm-msm@...r.kernel.org,
tientzu@...omium.org, seanpaul@...omium.org
Subject: Re: [PATCH v1] Bluetooth: hci_qca: Enable clocks required for BT SOC
Hi Stephen,
On 2019-11-14 22:49, Stephen Boyd wrote:
> Quoting Balakrishna Godavarthi (2019-11-14 00:14:30)
>> @@ -1423,6 +1427,20 @@ static int qca_power_off(struct hci_dev *hdev)
>> return 0;
>> }
>>
>> +static int qca_power_on(struct qca_serdev *qcadev)
>> +{
>> + int err;
>> +
>> + if (qcadev->susclk) {
>
> clk_prepare_enable() shouldn't return anything besides 0 when passed a
> NULL pointer. Please drop this if condition in addition to the one on
> the clk_disable_unprepare().
>
>> + err = clk_prepare_enable(qcadev->susclk);
>> + if (err)
>> + return err;
>> + }
[Bala]: will update.
Regards
Balakrishna
Powered by blists - more mailing lists