All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Cc: Ian Molton <ian@mnementh.co.uk>,
	"open list:BLUETOOTH DRIVERS" <linux-bluetooth@vger.kernel.org>,
	Loic Poulain <loic.poulain@gmail.com>,
	Rob Herring <robh@kernel.org>
Subject: Re: PATCH: RFC: Broadcom serdev driver
Date: Sun, 9 Jul 2017 10:07:17 +0200	[thread overview]
Message-ID: <12AF72B3-C621-4E01-AB9B-10BF5E5913FE@holtmann.org> (raw)
In-Reply-To: <20170708214623.fhzrzhcedo2hhov4@earth>

Hi Sebastian,

>>>> -----------------------------------------------------------------------
>>>> 
>>>> 	This patch adds a driver for broadcom BT devices that are
>>>> attached as serdev devices.
>>>> 
>>>> A device tree entry such as the following is used with this driver:
>>>> 
>>>>       bcm34340a1: bluetooth {
>>>>               compatible = "brcm,b43430a1";
>>>>               reset-gpios = <&gpio5 4 GPIO_ACTIVE_LOW>;
>>>> 		bluetooth-wakeup-gpios = <&gpio3 27 GPIO_ACTIVE_HIGH>;
>>>> 
>>>> 		init-speed = <115200>;
>>>>               oper-speed = <400000>;
>>>>       };
>>> 
>>> I would prefer a separate patch for this that includes this also as samples in the Documentation/bindings directory.
>> 
>> No problem - this i just an RFC, so I wasnt sure if you'd like the binding.
>> 
>>>> obj-$(CONFIG_BT_HCIUART_NOKIA)	+= hci_nokia.o
>>>> +obj-$(CONFIG_BT_HCIUART_BCMBT)	+= hci_bcm_serdev.o
>>> 
>>> I was actually not wanting to have a separate driver. Like hci_ll.c this needs to be in hci_bcm.c.
>> 
>> I appreciate that, but there are a couple of reasons why I didn't;
>> 
>> * The original driver operates quite differently with regards to
>> matching the platform data up with a uart - since it has no knowledge of
>> the mapping from ttydev to serial device, it maintains a list that it
>> matches against during upen - its quite a lot more complex as a result.
>> 
>> Being a serdev driver, this one doe not need that code.
>> 
>> * I have no way to test the ACPI or wakeup/irq features of the original
>> driver, so I could not implement it and be sure it would work.
>> 
>> My hope was that we could include this driver, and move a couple of
>> common functions it shares with the older driver into btbcm.c
>> 
>> Over time, people could add the functionality and we could remove the
>> old driver - all without upsetting existing users of the old driver.
> 
> The broadcom driver should probably become serdev only at some
> point, since it always requires platform support due to the GPIOs
> The current solution is a big hack. But tackling that requires ACPI
> support for serdev, so I guess that it must be done by somebody
> else.

actually I think that all of them need to be serdev only drivers. We just need to figure out on how to create the serdev devices for the ones that are not backed by DT.

Regards

Marcel


  reply	other threads:[~2017-07-09  8:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-04 22:38 PATCH: RFC: Broadcom serdev driver Ian Molton
2017-07-08  7:58 ` Marcel Holtmann
2017-07-08  9:15   ` Ian Molton
2017-07-08 21:46     ` Sebastian Reichel
2017-07-09  8:07       ` Marcel Holtmann [this message]
2017-07-10 21:27         ` Ian Molton
2017-07-08  9:46   ` Ian Molton
2017-07-08 10:25     ` Marcel Holtmann
2017-07-08 13:27       ` Ian Molton

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=12AF72B3-C621-4E01-AB9B-10BF5E5913FE@holtmann.org \
    --to=marcel@holtmann.org \
    --cc=ian@mnementh.co.uk \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=loic.poulain@gmail.com \
    --cc=robh@kernel.org \
    --cc=sebastian.reichel@collabora.co.uk \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.