devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Correct fallback compatible for rtl8821cs bluetooth
@ 2023-05-08 16:08 Chris Morgan
  2023-05-08 16:08 ` [PATCH 1/2] dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding Chris Morgan
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Chris Morgan @ 2023-05-08 16:08 UTC (permalink / raw)
  To: devicetree
  Cc: linux-rockchip, netdev, anarsoul, alistair, heiko, conor+dt,
	krzysztof.kozlowski+dt, robh+dt, pabeni, kuba, edumazet, davem,
	Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

The realtek 8821cs bluetooth module is functionally very similar to the
8822cs and 8723bs modules, however unlike the 8822 module it seems to
struggle when power management features are enabled. By switching the
fallback string from realtek,rtl8822cs-bt to realtek,rtl8723bs-bt we
can instruct the driver to not enable advanced power management
features that cause the issues.

Chris Morgan (2):
  dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding
  arm64: dts: rockchip: Fix compatible for Bluetooth

 Documentation/devicetree/bindings/net/realtek-bluetooth.yaml | 2 +-
 arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/2] dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding
  2023-05-08 16:08 [PATCH 0/2] Correct fallback compatible for rtl8821cs bluetooth Chris Morgan
@ 2023-05-08 16:08 ` Chris Morgan
  2023-05-08 16:34   ` Krzysztof Kozlowski
                     ` (2 more replies)
  2023-05-08 16:08 ` [PATCH 2/2] arm64: dts: rockchip: Fix compatible for Bluetooth Chris Morgan
  2023-06-08  8:48 ` (subset) [PATCH 0/2] Correct fallback compatible for rtl8821cs bluetooth Heiko Stuebner
  2 siblings, 3 replies; 7+ messages in thread
From: Chris Morgan @ 2023-05-08 16:08 UTC (permalink / raw)
  To: devicetree
  Cc: linux-rockchip, netdev, anarsoul, alistair, heiko, conor+dt,
	krzysztof.kozlowski+dt, robh+dt, pabeni, kuba, edumazet, davem,
	Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

Update the fallback string for the RTL8821CS from realtek,rtl8822cs-bt
to realtek,rtl8723bs-bt. The difference between these two strings is
that the 8822cs enables power saving features that the 8723bs does not,
and in testing the 8821cs seems to have issues with these power saving
modes enabled.

Fixes: 95ee3a93239e ("dt-bindings: net: realtek-bluetooth: Add RTL8821CS")
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 Documentation/devicetree/bindings/net/realtek-bluetooth.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
index 8cc2b9924680..506ea9b17668 100644
--- a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
@@ -27,7 +27,7 @@ properties:
       - items:
           - enum:
               - realtek,rtl8821cs-bt
-          - const: realtek,rtl8822cs-bt
+          - const: realtek,rtl8723bs-bt
 
   device-wake-gpios:
     maxItems: 1
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] arm64: dts: rockchip: Fix compatible for Bluetooth
  2023-05-08 16:08 [PATCH 0/2] Correct fallback compatible for rtl8821cs bluetooth Chris Morgan
  2023-05-08 16:08 ` [PATCH 1/2] dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding Chris Morgan
@ 2023-05-08 16:08 ` Chris Morgan
  2023-06-08  8:48 ` (subset) [PATCH 0/2] Correct fallback compatible for rtl8821cs bluetooth Heiko Stuebner
  2 siblings, 0 replies; 7+ messages in thread
From: Chris Morgan @ 2023-05-08 16:08 UTC (permalink / raw)
  To: devicetree
  Cc: linux-rockchip, netdev, anarsoul, alistair, heiko, conor+dt,
	krzysztof.kozlowski+dt, robh+dt, pabeni, kuba, edumazet, davem,
	Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

The realtek Bluetooth module uses the same driver as the
realtek,rtl8822cs-bt and the realtek,rtl8723bs-bt, however by selecting
the 8723bs advanced power saving features are disabled that appear
to interfere with normal operation of the bluetooth module. This
change switches the compatible string to disable power saving. Without
this patch evtest of a paired bluetooth controller fails, with this
patch the controller operates as expected.

Fixes: b6986b7920bb ("arm64: dts: rockchip: Update compatible for bluetooth")
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
 arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi b/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi
index 8fadd8afb190..ad43fa199ca5 100644
--- a/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3566-anbernic-rgxx3.dtsi
@@ -716,7 +716,7 @@ &uart1 {
 	status = "okay";
 
 	bluetooth {
-		compatible = "realtek,rtl8821cs-bt", "realtek,rtl8822cs-bt";
+		compatible = "realtek,rtl8821cs-bt", "realtek,rtl8723bs-bt";
 		device-wake-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
 		enable-gpios = <&gpio4 3 GPIO_ACTIVE_HIGH>;
 		host-wake-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding
  2023-05-08 16:08 ` [PATCH 1/2] dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding Chris Morgan
@ 2023-05-08 16:34   ` Krzysztof Kozlowski
  2023-05-13 16:45   ` Heiko Stuebner
  2023-06-07 19:03   ` Rob Herring
  2 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-08 16:34 UTC (permalink / raw)
  To: Chris Morgan, devicetree
  Cc: linux-rockchip, netdev, anarsoul, alistair, heiko, conor+dt,
	krzysztof.kozlowski+dt, robh+dt, pabeni, kuba, edumazet, davem,
	Chris Morgan

On 08/05/2023 18:08, Chris Morgan wrote:
> From: Chris Morgan <macromorgan@hotmail.com>
> 
> Update the fallback string for the RTL8821CS from realtek,rtl8822cs-bt
> to realtek,rtl8723bs-bt. The difference between these two strings is
> that the 8822cs enables power saving features that the 8723bs does not,
> and in testing the 8821cs seems to have issues with these power saving
> modes enabled.
> 
> Fixes: 95ee3a93239e ("dt-bindings: net: realtek-bluetooth: Add RTL8821CS")
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding
  2023-05-08 16:08 ` [PATCH 1/2] dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding Chris Morgan
  2023-05-08 16:34   ` Krzysztof Kozlowski
@ 2023-05-13 16:45   ` Heiko Stuebner
  2023-06-07 19:03   ` Rob Herring
  2 siblings, 0 replies; 7+ messages in thread
From: Heiko Stuebner @ 2023-05-13 16:45 UTC (permalink / raw)
  To: devicetree, Chris Morgan
  Cc: linux-rockchip, netdev, anarsoul, alistair, conor+dt,
	krzysztof.kozlowski+dt, robh+dt, pabeni, kuba, edumazet, davem,
	Chris Morgan

Am Montag, 8. Mai 2023, 18:08:10 CEST schrieb Chris Morgan:
> From: Chris Morgan <macromorgan@hotmail.com>
> 
> Update the fallback string for the RTL8821CS from realtek,rtl8822cs-bt
> to realtek,rtl8723bs-bt. The difference between these two strings is
> that the 8822cs enables power saving features that the 8723bs does not,
> and in testing the 8821cs seems to have issues with these power saving
> modes enabled.
> 
> Fixes: 95ee3a93239e ("dt-bindings: net: realtek-bluetooth: Add RTL8821CS")
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>

Acked-by: Heiko Stuebner <heiko@sntech.de>




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding
  2023-05-08 16:08 ` [PATCH 1/2] dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding Chris Morgan
  2023-05-08 16:34   ` Krzysztof Kozlowski
  2023-05-13 16:45   ` Heiko Stuebner
@ 2023-06-07 19:03   ` Rob Herring
  2 siblings, 0 replies; 7+ messages in thread
From: Rob Herring @ 2023-06-07 19:03 UTC (permalink / raw)
  To: Chris Morgan
  Cc: anarsoul, netdev, edumazet, linux-rockchip, conor+dt, alistair,
	krzysztof.kozlowski+dt, pabeni, davem, kuba, heiko, devicetree,
	Chris Morgan, robh+dt


On Mon, 08 May 2023 11:08:10 -0500, Chris Morgan wrote:
> From: Chris Morgan <macromorgan@hotmail.com>
> 
> Update the fallback string for the RTL8821CS from realtek,rtl8822cs-bt
> to realtek,rtl8723bs-bt. The difference between these two strings is
> that the 8822cs enables power saving features that the 8723bs does not,
> and in testing the 8821cs seems to have issues with these power saving
> modes enabled.
> 
> Fixes: 95ee3a93239e ("dt-bindings: net: realtek-bluetooth: Add RTL8821CS")
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
> ---
>  Documentation/devicetree/bindings/net/realtek-bluetooth.yaml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied, thanks!


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: (subset) [PATCH 0/2] Correct fallback compatible for rtl8821cs bluetooth
  2023-05-08 16:08 [PATCH 0/2] Correct fallback compatible for rtl8821cs bluetooth Chris Morgan
  2023-05-08 16:08 ` [PATCH 1/2] dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding Chris Morgan
  2023-05-08 16:08 ` [PATCH 2/2] arm64: dts: rockchip: Fix compatible for Bluetooth Chris Morgan
@ 2023-06-08  8:48 ` Heiko Stuebner
  2 siblings, 0 replies; 7+ messages in thread
From: Heiko Stuebner @ 2023-06-08  8:48 UTC (permalink / raw)
  To: devicetree, Chris Morgan
  Cc: Heiko Stuebner, davem, netdev, Chris Morgan, anarsoul, kuba,
	conor+dt, krzysztof.kozlowski+dt, pabeni, edumazet, robh+dt,
	alistair, linux-rockchip

On Mon, 8 May 2023 11:08:09 -0500, Chris Morgan wrote:
> From: Chris Morgan <macromorgan@hotmail.com>
> 
> The realtek 8821cs bluetooth module is functionally very similar to the
> 8822cs and 8723bs modules, however unlike the 8822 module it seems to
> struggle when power management features are enabled. By switching the
> fallback string from realtek,rtl8822cs-bt to realtek,rtl8723bs-bt we
> can instruct the driver to not enable advanced power management
> features that cause the issues.
> 
> [...]

Applied, thanks!

[2/2] arm64: dts: rockchip: Fix compatible for Bluetooth
      commit: a325956fa7048906e26a4535ac2e87e111788fe8

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-06-08  8:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-08 16:08 [PATCH 0/2] Correct fallback compatible for rtl8821cs bluetooth Chris Morgan
2023-05-08 16:08 ` [PATCH 1/2] dt-bindings: net: realtek-bluetooth: Fix RTL8821CS binding Chris Morgan
2023-05-08 16:34   ` Krzysztof Kozlowski
2023-05-13 16:45   ` Heiko Stuebner
2023-06-07 19:03   ` Rob Herring
2023-05-08 16:08 ` [PATCH 2/2] arm64: dts: rockchip: Fix compatible for Bluetooth Chris Morgan
2023-06-08  8:48 ` (subset) [PATCH 0/2] Correct fallback compatible for rtl8821cs bluetooth Heiko Stuebner

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).