[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZjHhwaGkDsy7lYwJ@hovoldconsulting.com>
Date: Wed, 1 May 2024 08:31:29 +0200
From: Johan Hovold <johan@...nel.org>
To: Doug Anderson <dianders@...omium.org>
Cc: Johan Hovold <johan+linaro@...nel.org>,
Marcel Holtmann <marcel@...tmann.org>,
Luiz Augusto von Dentz <luiz.dentz@...il.com>,
Janaki Ramaiah Thota <quic_janathot@...cinc.com>,
linux-bluetooth@...r.kernel.org, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: [PATCH v2 3/3] Bluetooth: qca: generalise device address check
On Tue, Apr 30, 2024 at 02:21:47PM -0700, Doug Anderson wrote:
> On Tue, Apr 30, 2024 at 10:08 AM Johan Hovold <johan+linaro@...nel.org> wrote:
> >
> > The default device address apparently comes from the NVM configuration
> > file and can differ quite a bit between controllers.
> >
> > Store the default address when parsing the configuration file and use it
> > to determine whether the controller has been provisioned with an
> > address.
> >
> > This makes sure that devices without a unique address start as
> > unconfigured unless a valid address has been provided in the devicetree.
> >
> > Fixes: 00567f70051a ("Bluetooth: qca: fix invalid device address check")
> > Cc: stable@...r.kernel.org # 6.5
> > Cc: Doug Anderson <dianders@...omium.org>
> > Cc: Janaki Ramaiah Thota <quic_janathot@...cinc.com>
> > Signed-off-by: Johan Hovold <johan+linaro@...nel.org>
> I can confirm that my sc7180-trogdor-based devices manage to detect
> the default address after this series and thus still look to the
> device-tree for their address. Thus:
>
> Tested-by: Douglas Anderson <dianders@...omium.org>
Thanks for testing, Doug.
> I'll continue to note that I still wish that detecting the default
> address wasn't important for trogdor. I still feel that the fact that
> they have a valid BT address stored in their device tree (populated by
> firmware) should take precedence. ...but I won't insist.
When I can find the time, I'll look into at least dropping the BD_ADDR
quirk in favour of always looking in the devicetree when we do not have
a valid address. That may be a good time to revisit the question whether
the devicetree should always override the controller's address too.
Johan
Powered by blists - more mailing lists