netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	hidave.darkstar@gmail.com, linux-bluetooth@vger.kernel.org,
	netdev@vger.kernel.org
Subject: Re: [patch] document hci_usb as broken
Date: Sat, 19 Apr 2008 19:57:40 +0200	[thread overview]
Message-ID: <20080419175739.GA13774@elf.ucw.cz> (raw)
In-Reply-To: <D3ACF6D0-E21F-4680-9CB1-1FE762C532AE@holtmann.org>

Hi!

>> index 075598e..20d9279 100644
>> --- a/drivers/bluetooth/Kconfig
>> +++ b/drivers/bluetooth/Kconfig
>> @@ -3,13 +3,16 @@ menu "Bluetooth device drivers"
>> 	depends on BT
>>
>> config BT_HCIUSB
>> -	tristate "HCI USB driver"
>> +	tristate "HCI USB driver (dangerous, use alternate driver below)"
>> 	depends on USB
>> 	help
>> 	  Bluetooth HCI USB driver.
>> 	  This driver is required if you want to use Bluetooth devices with
>> 	  USB interface.
>>
>> +	  Unfortunately, locking in this driver is fatally broken; it will
>> +	  corrupt memory on surprise disconnect and during resume.
>> +
>> 	  Say Y here to compile support for Bluetooth USB devices into the
>> 	  kernel or say M to compile it as module (hci_usb).
>
> this would be fine with me. Acked-by: Marcel Holtmann <marcel@holtmann.org>
>
>> diff --git a/drivers/bluetooth/hci_usb.c b/drivers/bluetooth/hci_usb.c
>> index 192522e..6cc96b4 100644
>> --- a/drivers/bluetooth/hci_usb.c
>> +++ b/drivers/bluetooth/hci_usb.c
>> @@ -1,8 +1,22 @@
>> -/*
>> +/*
>> +
>> +    This driver has fatally broken locking.
>> +
>> +    DO NOT USE.
>> +
>> +    See btusb.c for cleaner / shorter / actually working driver.
>
> NAK to this hunk. Not needed. The Kconfig help is enough.

Developers trying to debug hci_usb problems will nor see the help
text, since they probably have it enabled in their .config already and
will not be asked again...

								Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

      reply	other threads:[~2008-04-19 17:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-18 20:46 [patch 3/3] hci_usb.h: fix hard-to-trigger race akpm
2008-04-18 21:10 ` Marcel Holtmann
     [not found]   ` <55DEC459-2D49-4366-88CC-21E9CA6783DC-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org>
2008-04-18 21:21     ` Andrew Morton
     [not found]       ` <20080418142153.4e0eb83b.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2008-04-18 22:41         ` David Miller
2008-04-19  1:25       ` Marcel Holtmann
2008-04-19 16:49         ` [patch] document hci_usb as broken Pavel Machek
2008-04-19 17:40           ` Marcel Holtmann
2008-04-19 17:57             ` Pavel Machek [this message]

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=20080419175739.GA13774@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=akpm@linux-foundation.org \
    --cc=hidave.darkstar@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=netdev@vger.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).