linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Marcel Holtmann <marcel@holtmann.org>,
	Gustavo Padovan <gustavo@padovan.org>,
	 Johan Hedberg <johan.hedberg@gmail.com>,
	linux-bluetooth@vger.kernel.org,
	"loic . poulain @ gmail . com" <loic.poulain@gmail.com>,
	Linus Torvalds <torvalds@linux-foundation.org>
Cc: "arnd.bergmann" <arnd.bergmann@linaro.org>,
	Rob Herring <robh@kernel.org>
Subject: Re: [PATCH v2] Bluetooth: Replace dependency on SERIAL_DEV_BUS by selection
Date: Thu, 28 Dec 2017 22:04:13 +0200	[thread overview]
Message-ID: <1514491453.7000.470.camel@linux.intel.com> (raw)
In-Reply-To: <20171228195503.4283-1-andriy.shevchenko@linux.intel.com>

On Thu, 2017-12-28 at 21:55 +0200, Andy Shevchenko wrote:
> The change restores build behaviour for old configurations when user
> didn't know and thus didn't select SERIAL_DEV_BUS explicitly for given
> HCI modules, such as hci_bcm.
> 

+Cc: Arnd, Rob.

> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> v2: get rid of recursive dependencies
>  drivers/bluetooth/Kconfig | 15 +++++----------
>  1 file changed, 5 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig
> index 60e1c7d6986d..ea3d114d19e5 100644
> --- a/drivers/bluetooth/Kconfig
> +++ b/drivers/bluetooth/Kconfig
> @@ -66,7 +66,6 @@ config BT_HCIBTSDIO
>  
>  config BT_HCIUART
>  	tristate "HCI UART driver"
> -	depends on SERIAL_DEV_BUS || !SERIAL_DEV_BUS
>  	depends on TTY
>  	help
>  	  Bluetooth HCI UART driver.
> @@ -78,11 +77,6 @@ config BT_HCIUART
>  	  Say Y here to compile support for Bluetooth UART devices
> into the
>  	  kernel or say M to compile it as module (hci_uart).
>  
> -config BT_HCIUART_SERDEV
> -	bool
> -	depends on SERIAL_DEV_BUS && BT_HCIUART
> -	default y
> -
>  config BT_HCIUART_H4
>  	bool "UART (H4) protocol support"
>  	depends on BT_HCIUART
> @@ -96,8 +90,8 @@ config BT_HCIUART_H4
>  config BT_HCIUART_NOKIA
>  	tristate "UART Nokia H4+ protocol support"
>  	depends on BT_HCIUART
> -	depends on BT_HCIUART_SERDEV
>  	depends on PM
> +	select SERIAL_DEV_BUS
>  	select BT_HCIUART_H4
>  	select BT_BCM
>  	help
> @@ -134,7 +128,8 @@ config BT_HCIUART_ATH3K
>  
>  config BT_HCIUART_LL
>  	bool "HCILL protocol support"
> -	depends on BT_HCIUART_SERDEV
> +	depends on BT_HCIUART
> +	select SERIAL_DEV_BUS
>  	help
>  	  HCILL (HCI Low Level) is a serial protocol for
> communication
>  	  between Bluetooth device and host. This protocol is
> required for
> @@ -169,8 +164,8 @@ config BT_HCIUART_INTEL
>  config BT_HCIUART_BCM
>  	bool "Broadcom protocol support"
>  	depends on BT_HCIUART
> -	depends on BT_HCIUART_SERDEV
> -	depends on (!ACPI || SERIAL_DEV_CTRL_TTYPORT)
> +	select SERIAL_DEV_CTRL_TTYPORT if !ACPI
> +	select SERIAL_DEV_BUS
>  	select BT_HCIUART_H4
>  	select BT_BCM
>  	help

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

  reply	other threads:[~2017-12-28 20:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-28 19:55 [PATCH v2] Bluetooth: Replace dependency on SERIAL_DEV_BUS by selection Andy Shevchenko
2017-12-28 20:04 ` Andy Shevchenko [this message]
2017-12-28 20:23   ` Andy Shevchenko
2017-12-29  6:09   ` Ian W MORRISON

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=1514491453.7000.470.camel@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=arnd.bergmann@linaro.org \
    --cc=gustavo@padovan.org \
    --cc=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=loic.poulain@gmail.com \
    --cc=marcel@holtmann.org \
    --cc=robh@kernel.org \
    --cc=torvalds@linux-foundation.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).