From: Marcel Holtmann <marcel@holtmann.org>
To: Hugo Grostabussiat <bonstra@bonstra.fr.eu.org>
Cc: Johan Hedberg <johan.hedberg@gmail.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Maxime Ripard <mripard@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
devicetree <devicetree@vger.kernel.org>,
linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v3 2/3] Bluetooth: hci_h5: Add DT support for rtl8723bs
Date: Mon, 9 Dec 2019 00:42:44 +0100 [thread overview]
Message-ID: <F6C9DDF3-AB63-45C3-8EA6-CFEDE15366C6@holtmann.org> (raw)
In-Reply-To: <20191130194719.112335-3-bonstra@bonstra.fr.eu.org>
Hi Hugo,
> The hci_h5 already supports Realtek controllers discovered via ACPI. This
> commit adds support for discovering via device tree for ACPI-less
> platforms.
>
> Signed-off-by: Hugo Grostabussiat <bonstra@bonstra.fr.eu.org>
> ---
> drivers/bluetooth/Kconfig | 2 +-
> drivers/bluetooth/btrtl.c | 75 +++++++++++++++++++++-----------------
> drivers/bluetooth/btrtl.h | 3 +-
> drivers/bluetooth/hci_h5.c | 65 ++++++++++++++++++++++++++-------
> 4 files changed, 95 insertions(+), 50 deletions(-)
>
> diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig
> index aae665a3a254..48c9a004b033 100644
> --- a/drivers/bluetooth/Kconfig
> +++ b/drivers/bluetooth/Kconfig
> @@ -211,7 +211,7 @@ config BT_HCIUART_RTL
> depends on BT_HCIUART
> depends on BT_HCIUART_SERDEV
> depends on GPIOLIB
> - depends on ACPI
> + depends on (ACPI || OF)
> select BT_HCIUART_3WIRE
> select BT_RTL
> help
> diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c
> index 4f75a9b61d09..01b0eb4b57d7 100644
> --- a/drivers/bluetooth/btrtl.c
> +++ b/drivers/bluetooth/btrtl.c
> @@ -17,6 +17,8 @@
>
> #define VERSION "0.1"
>
> +#define FW_DIR "rtl_bt"
> +
> #define RTL_EPATCH_SIGNATURE "Realtech"
> #define RTL_ROM_LMP_3499 0x3499
> #define RTL_ROM_LMP_8723A 0x1200
> @@ -45,7 +47,7 @@ struct id_table {
> bool config_needed;
> bool has_rom_version;
> char *fw_name;
> - char *cfg_name;
> + char *cfg_basename;
> };
you need to split this into individual patches. I am not in favor of doing a refactor and then adding DT support in the same patch.
Regards
Marcel
next prev parent reply other threads:[~2019-12-08 23:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-30 19:47 [PATCH v3 0/3] Add Bluetooth support to Teres A64 I Hugo Grostabussiat
2019-11-30 19:47 ` [PATCH v3 1/3] dt-bindings: net: bluetooth: add DT bindings for Realtek controllers Hugo Grostabussiat
2019-11-30 19:47 ` [PATCH v3 2/3] Bluetooth: hci_h5: Add DT support for rtl8723bs Hugo Grostabussiat
2019-12-08 23:42 ` Marcel Holtmann [this message]
2019-11-30 19:47 ` [PATCH v3 3/3] arm64: dts: allwinner: a64: Enable Bluetooth on Teres-I Hugo Grostabussiat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F6C9DDF3-AB63-45C3-8EA6-CFEDE15366C6@holtmann.org \
--to=marcel@holtmann.org \
--cc=bonstra@bonstra.fr.eu.org \
--cc=devicetree@vger.kernel.org \
--cc=johan.hedberg@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mripard@kernel.org \
--cc=robh+dt@kernel.org \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).