All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>,
	Marcel Holtmann <marcel@holtmann.org>
Cc: "Gustavo F. Padovan" <gustavo@padovan.org>,
	Johan Hedberg <johan.hedberg@gmail.com>,
	linux-bluetooth@vger.kernel.org, linux-serial@vger.kernel.org,
	linux-acpi@vger.kernel.org, Lukas Wunner <lukas@wunner.de>
Subject: Re: [PATCH 1/2] Bluetooth: hci_bcm: Remove platform_device support
Date: Mon, 22 Jan 2018 11:42:07 +0200	[thread overview]
Message-ID: <1516614127.7000.1152.camel@linux.intel.com> (raw)
In-Reply-To: <769dd32b-425e-3002-50b5-0d3c707706d4@redhat.com>

On Mon, 2018-01-22 at 09:23 +0100, Hans de Goede wrote:
> Hi,
> 
> On 22-01-18 03:24, Marcel Holtmann wrote:
> > Hi Hans,
> > 
> > > Now that ACPI and DT devices are both enumerated as serdevs, we
> > > can
> > > remove platform_device support and the bcm_device_list lookup
> > > hack.
> > > 
> > > This also removes any races between suspend/resume and hci-uart
> > > binding,
> > > also making the suspend/resume code a lot simpler.
> > > 
> > > This commit leaves manually binding to an uart using btattach
> > > supported
> > > (without irq/gpio and thus suspend/resume support, as before).
> > > 
> > > Cc: Lukas Wunner <lukas@wunner.de>
> > > Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> > > ---
> > > drivers/bluetooth/hci_bcm.c | 260 +++++---------------------------
> > > ------------
> > > 1 file changed, 28 insertions(+), 232 deletions(-)
> > 
> > so I was under the assumption platforms like Intel Edison still only
> > do platform data. See commit
> > 212d71833315c65644efc46223db61dee7b3c68e. Has that changed?

Yes and no.

So, we need that support to satisfy users with classical Edison
firmware.

> Ugh, I was not aware of that and the whole code to match the tty with
> the platform_device on btattach is such a mess and I was actually
> quite
> happy to be able to delete this.

Good idea.

> Andy, I see that you added support for bcm bluetooth over a tty using
> platform_data instead of ACPI enumeration. Can you change the code
> instantiating the device to instead instantiate a serdev, so that we
> kill the platform device support in hci_bcm.c and so that users don't
> need to do a btattach, but instead the kernel will do the attach
> itself
> and things will just work ?

I'm sorry, I can't do this soon, other more priority tasks in a pocket.

The instantiation of the driver is happened in arch/x86/platform/intel-
mid/device_libs/platform_bt.c

I would help with review of any patches till I would able to look at it
myself.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

  reply	other threads:[~2018-01-22  9:42 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-21 21:46 [PATCH 1/2] Bluetooth: hci_bcm: Remove platform_device support Hans de Goede
2018-01-21 21:46 ` [PATCH 2/2] Bluetooth: hci_bcm: Close serdev on failure to set power on bcm_open() Hans de Goede
2018-01-22  2:20   ` Marcel Holtmann
2018-01-22  2:24 ` [PATCH 1/2] Bluetooth: hci_bcm: Remove platform_device support Marcel Holtmann
2018-01-22  8:23   ` Hans de Goede
2018-01-22  9:42     ` Andy Shevchenko [this message]
     [not found]       ` <1516614127.7000.1152.camel-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2018-01-22 11:27         ` Hans de Goede
2018-01-22 11:27           ` Hans de Goede
2018-01-22 11:33           ` Andy Shevchenko
2018-01-22 11:49             ` Hans de Goede
     [not found]               ` <0cae9024-887a-45f7-7710-1684f9c0e54e-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-01-22 12:01                 ` Marcel Holtmann
2018-01-22 12:01                   ` Marcel Holtmann
2018-01-22 12:15                   ` Andy Shevchenko
2018-01-23 23:49                     ` Ferry Toth
2018-01-22 19:57                 ` Marcel Holtmann
2018-01-22 19:57                   ` Marcel Holtmann
2018-01-22 20:56                   ` Hans de Goede

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=1516614127.7000.1152.camel@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=gustavo@padovan.org \
    --cc=hdegoede@redhat.com \
    --cc=johan.hedberg@gmail.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=lukas@wunner.de \
    --cc=marcel@holtmann.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 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.