[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5dcd8c98.1c69fb81.4690b.49fe@mx.google.com>
Date: Thu, 14 Nov 2019 09:19:19 -0800
From: Stephen Boyd <swboyd@...omium.org>
To: Balakrishna Godavarthi <bgodavar@...eaurora.org>,
johan.hedberg@...il.com, marcel@...tmann.org
Cc: mka@...omium.org, linux-kernel@...r.kernel.org,
linux-bluetooth@...r.kernel.org, hemantg@...eaurora.org,
linux-arm-msm@...r.kernel.org, bgodavar@...eaurora.org,
tientzu@...omium.org, seanpaul@...omium.org
Subject: Re: [PATCH v1] Bluetooth: hci_qca: Enable clocks required for BT SOC
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;
> + }
Powered by blists - more mailing lists