Return-Path: Subject: Re: [PATCH] serdev: Update drivers/tty/serdev/Kconfig for ACPI support To: Marcel Holtmann , Johan Hovold , "Gustavo F. Padovan" , Johan Hedberg , "bluez mailin list (linux-bluetooth@vger.kernel.org)" , Hans de Goede , =?UTF-8?Q?Fr=c3=a9d=c3=a9ric_Danis?= , Rob Herring , Sebastian Reichel , Loic Poulain , Lukas Wunner , linux-serial@vger.kernel.org, linux-acpi@vger.kernel.org, Greg Kroah-Hartman , "Rafael J. Wysocki" References: <20171007152414.GK2618@localhost> <8D8274B0-4EF6-41A0-8B76-95023F6DD26C@holtmann.org> From: Ian W MORRISON Message-ID: Date: Sun, 8 Oct 2017 14:20:33 +1100 MIME-Version: 1.0 In-Reply-To: <8D8274B0-4EF6-41A0-8B76-95023F6DD26C@holtmann.org> Content-Type: text/plain; charset=utf-8 List-ID: On 10/8/17 6:57 AM, Marcel Holtmann wrote: > Hi Johan, > >>> The current Kconfig for serdev is not compatible when adding ACPI support as it does not work when built as a module as it requires config SERIAL_DEV_CTRL_TTYPORT to be set. This patch makes serdev compiled into the kernel if selected so that config SERIAL_DEV_CTRL_TTYPORT can be correctly set if requiring ACPI support. >> I understand why you want this (to prevent hci_bcm from breaking), but we >> should generally not have new entries default to y. >> >> It may be better to have BT_HCIUART_BCM depend on (or select?) >> SERIAL_DEV_CTRL_TTYPORT instead. > > if we move SERIAL_DEV_BUS to bool, then I would just have it be selected by BT_HCIUART_BCM. Frankly the SERIAL_DEV_BUS option is pretty hard to find in the kernel config. And if we depend on TTY, but then select SERIAL_DEV_BUS, I think that is a good compromise. > > Regards > > Marcel > Hi, Many thanks for everyone's comments on my earlier patch to Kconfigs for ACPI serdev support. I've submitted a revised patch set which addresses the points raised by making BT_HCIUART_BCM dependent on SERIAL_DEV_CTRL_TTYPORT which in turn is dependent on SERIAL_DEV_BUS and ensures that if SERIAL_DEV_BUS is selected is the code is build it. Please can you review and let me know if any further changes are required? Regards, Ian