linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Frédéric Danis" <frederic.danis.oss@gmail.com>
To: Ian W MORRISON <ianwmorrison@gmail.com>
Cc: Marcel Holtmann <marcel@holtmann.org>,
	Rob Herring <robh@kernel.org>, Sebastian Reichel <sre@kernel.org>,
	Loic Poulain <loic.poulain@gmail.com>,
	Johan Hovold <johan@kernel.org>, Lukas Wunner <lukas@wunner.de>,
	Hans de Goede <hdegoede@redhat.com>,
	"bluez mailin list (linux-bluetooth@vger.kernel.org)"
	<linux-bluetooth@vger.kernel.org>,
	linux-serial@vger.kernel.org, linux-acpi@vger.kernel.org,
	Greg Kroah-Hartman <greg@kroah.com>
Subject: Re: [PATCH 0/2] ACPI serdev support
Date: Fri, 6 Oct 2017 19:36:27 +0200	[thread overview]
Message-ID: <8645dbfb-ca09-340d-e610-6899a9b7dd8a@gmail.com> (raw)
In-Reply-To: <CAFXWsS9uhvB=5r83GC=aA=uujDvxfjnOvEUUviymNEM31fka5Q@mail.gmail.com>

Hi Ian,

Le 06/10/2017 à 16:47, Ian W MORRISON a écrit :
> <snip>
>> It seems normal to me that BCM2EA4 is no more enumerated at ACPI level as
>> this is moved to serdev.
>> When removing 'if (ares->data.common_serial_bus.type !=
>> ACPI_RESOURCE_SERIAL_TYPE_UART)' you stop the serdev module finding the
>> Serial UART information. In this case it will not register the device and it
>> will fall back to previous behavior needing to use btattach to setup
>> Bluetooth.
>>
>> Can you share:
>> - btattach you are currently using,
>> - dmesg with with dynamic debug enabled for serdev and hci_uart modules
>> during boot (with Hans's patches, your MINIX Z83-4 patches and mine
>> patches).
>>
>> Regards,
>>
>> Fred
> Hi Fred,
>
> I've attached four (text) files:
>
> 1. btattach.txt - Details of the 'bluez' package that contains the
> 'btattach' I'm using.
> 2. dmesg.txt - 'dmesg' with with dynamic debug enabled for serdev and
> hci_uart modules. This doesn't seem to show much so have I provided
> what you wanted?
> 3. gitlog.txt - First few commits from the git log showing the kernel
> patches used to build the kernel (sent just for clarity).
> 4. working.txt - An extract from 'dmesg' when BCM2EA4 is enumerated
> from a kernel patched with the 'if' statement refered to above.
>
> Regards,
> Ian

Which tty is used for btattach?
Is this tty existing in /dev?

I took a look at dmesg.txt and I did not find any trace related to serdev.
On the T100, where ttyS4 is used for Bluetooth, I can see the following 
traces:
   [   11.732347] serial serial0: allocated controller 
0xffff880036229000 id 0
   [   11.732470] serial serial0-0: device serial0-0 registered
   [   11.732475] serial serial0: serdev0 registered: dev:ffff880036229000
   [   11.732478] serial serial0: tty port ttyS4 registered

If serdev registration failed you should at least get something like:
     serdev0 no devices registered: of:<> acpi:<>

So, just to be sure, is SERIAL_DEV_BUS and SERIAL_DEV_CTRL_TTYPORT 
enabled in your kernel?

Regards,

Fred


  parent reply	other threads:[~2017-10-06 17:36 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-04  8:51 [PATCH 0/2] ACPI serdev support Frédéric Danis
2017-10-04  8:51 ` [PATCH 2/2] ACPI / scan: Fix enumeration for special UART devices Frédéric Danis
2017-10-07 11:36   ` Sebastian Reichel
     [not found]   ` <1507107090-15992-3-git-send-email-frederic.danis.oss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-10-07 15:19     ` Johan Hovold
2017-10-07 22:53       ` Sebastian Reichel
2017-10-08  8:51         ` Marcel Holtmann
2017-10-09  8:59           ` Sebastian Reichel
2017-10-09  7:35         ` Johan Hovold
2017-10-09  8:55           ` Sebastian Reichel
2017-10-09  9:08             ` Johan Hovold
2017-10-09 18:09               ` Marcel Holtmann
     [not found]                 ` <E19C0643-85AA-4E80-BCDC-0C01EC0F88C2-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2017-10-10  7:08                   ` Johan Hovold
2017-10-05 15:21 ` [PATCH 0/2] ACPI serdev support Marcel Holtmann
2017-10-06  7:33   ` Ian W MORRISON
     [not found]     ` <25008d7b-db06-49ad-033f-63c0b72d9c34-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-10-06  8:16       ` Frédéric Danis
     [not found]         ` <CAFXWsS9uhvB=5r83GC=aA=uujDvxfjnOvEUUviymNEM31fka5Q@mail.gmail.com>
2017-10-06 17:36           ` Frédéric Danis [this message]
2017-10-07 15:14             ` Johan Hovold
     [not found] ` <1507107090-15992-1-git-send-email-frederic.danis.oss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-10-04  8:51   ` [PATCH 1/2] serdev: Add ACPI support Frédéric Danis
2017-10-06 12:33     ` Rob Herring
     [not found]       ` <CAL_JsqKDzR9-ptE=SbL0LuQvTKDNT-GZ8buOvffJDyWz6fHfSA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-06 18:32         ` Marcel Holtmann
2017-10-07  0:03           ` Rafael J. Wysocki
     [not found]             ` <CAJZ5v0gLhnisMn9o00ndnB6fjHt5V7KCy_57UScF=ZfZVF=dxA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-07  0:31               ` Marcel Holtmann
     [not found]                 ` <E5446B94-9914-44B5-A734-050F7457746D-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2017-10-07  6:42                   ` Greg Kroah-Hartman
     [not found]     ` <1507107090-15992-2-git-send-email-frederic.danis.oss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-10-07  6:42       ` Greg KH
2017-10-07 11:35       ` Sebastian Reichel
2017-10-07 15:12     ` Johan Hovold
2017-10-10  8:10       ` Marcel Holtmann
2017-10-10  8:15         ` Johan Hovold
2017-10-10  8:22           ` Marcel Holtmann
2017-10-10 16:36             ` Johan Hovold
2017-10-10 23:13               ` Ian W MORRISON
2017-10-10  0:27   ` [PATCH 0/2] ACPI serdev support Rafael J. Wysocki

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=8645dbfb-ca09-340d-e610-6899a9b7dd8a@gmail.com \
    --to=frederic.danis.oss@gmail.com \
    --cc=greg@kroah.com \
    --cc=hdegoede@redhat.com \
    --cc=ianwmorrison@gmail.com \
    --cc=johan@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=loic.poulain@gmail.com \
    --cc=lukas@wunner.de \
    --cc=marcel@holtmann.org \
    --cc=robh@kernel.org \
    --cc=sre@kernel.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).