From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel Holtmann Subject: Re: [RFC 2/3] ACPI / scan: Fix enumeration for special UART devices Date: Sat, 9 Sep 2017 20:49:08 +0200 Message-ID: References: <1504786214-1866-1-git-send-email-frederic.danis.oss@gmail.com> <1504786214-1866-3-git-send-email-frederic.danis.oss@gmail.com> <2C6832A9-2BA5-42CD-A398-CD7BA5AE7C8E@holtmann.org> <20170909172406.GA32618@wunner.de> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8BIT Return-path: Received: from coyote.holtmann.net ([212.227.132.17]:53034 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750759AbdIIStK (ORCPT ); Sat, 9 Sep 2017 14:49:10 -0400 In-Reply-To: <20170909172406.GA32618@wunner.de> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Lukas Wunner Cc: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Danis?= , Rob Herring , Sebastian Reichel , Loic Poulain , Bluez mailing list , linux-serial@vger.kernel.org, linux-acpi@vger.kernel.org Hi Lukas, >>>> --- a/include/acpi/acpi_bus.h >>>> +++ b/include/acpi/acpi_bus.h >>>> @@ -211,7 +211,7 @@ struct acpi_device_flags { >>>> u32 of_compatible_ok:1; >>>> u32 coherent_dma:1; >>>> u32 cca_seen:1; >>>> - u32 spi_i2c_slave:1; >>>> + u32 serial_slave:1; >>>> u32 reserved:19; >>>> }; >>> I am not an ACPI expert, but wouldn't we better have a serial_bus_slave >>> here. And the serial_bus_slave can be either UART or I2C? Or have a >>> pretty good commit message explaining why this is serial_slave only. >> >> I will rename it. >> serial_bus_slave can be either SPI, I2C or UART >> (cf. http://elixir.free-electrons.com/linux/latest/source/include/acpi/acrestyp.h#L446). > > Another idea would be to describe the *effect*, rather than the devices > affected, i.e. something like: > > - u32 spi_i2c_slave:1; > + u32 parent_enumerated:1; > > such that it could be extended to slaves on a non-serial bus in the > future. that might work as well. However right now I would be fine with serial_bus_slave here. Since that makes it clear that this is more than just UART devices. It is generic serial bus based devices. Regards Marcel