Return-Path: MIME-Version: 1.0 In-Reply-To: <20180313164444.19881-4-thierry.escande@linaro.org> References: <20180313164444.19881-1-thierry.escande@linaro.org> <20180313164444.19881-4-thierry.escande@linaro.org> From: Andy Shevchenko Date: Tue, 13 Mar 2018 18:50:39 +0200 Message-ID: Subject: Re: [PATCH v2 3/3] Bluetooth: hci_qca: Add serdev support To: Thierry Escande Cc: Rob Herring , Andy Gross , Marcel Holtmann , Johan Hedberg , David Brown , Mark Rutland , Bjorn Andersson , Srinivas Kandagatla , linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" List-ID: On Tue, Mar 13, 2018 at 6:44 PM, Thierry Escande wrote: > Add support for Qualcomm serial slave devices. Probe the serial device, > retrieve its maximum speed and register a new hci uart device. > +#include What exactly this is used for? > + qcadev->bt_en = devm_gpiod_get(&serdev->dev, "bt-disable-n", > + GPIOD_OUT_LOW); > + if (IS_ERR(qcadev->bt_en)) { > + dev_err(&serdev->dev, "failed to acquire bt-disable-n gpio\n"); > + return PTR_ERR(qcadev->bt_en); > + } > + gpiod_set_value(qcadev->bt_en, 0); Redundant. > + clk_set_rate(qcadev->divclk4, DIVCLK4_RATE_32KHZ); > + clk_prepare_enable(qcadev->divclk4); This may fail. > + return hci_uart_register_device(&qcadev->serdev_hu, &qca_proto); > +} > + clk_disable(qcadev->divclk4); > + clk_unprepare(qcadev->divclk4); One call. > +} > +static const struct of_device_id qca_bluetooth_of_match[] = { > + { .compatible = "qcom,qca6174-bt" }, > + { }, No comma. > +}; -- With Best Regards, Andy Shevchenko