public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCHv1 1/4] Bluetooth: Use standard HCI cmd timeout for RESET
Date: Fri, 08 Jun 2012 18:01:33 +0900	[thread overview]
Message-ID: <1339146093.1817.143.camel@aeonflux> (raw)
In-Reply-To: <20120608090023.GD2730@aemeltch-MOBL1>

Hi Andrei,

> > > > Remove magic and use standard HCI cmd timeout
> > > > 
> > > > Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> > > > ---
> > > >  net/bluetooth/hci_core.c |    2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > Acked-by: Marcel Holtmann <marcel@holtmann.org>
> > > 
> > > > diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
> > > > index a2e15436c..e5a9a09 100644
> > > > --- a/net/bluetooth/hci_core.c
> > > > +++ b/net/bluetooth/hci_core.c
> > > > @@ -783,7 +783,7 @@ static int hci_dev_do_close(struct hci_dev *hdev)
> > > >  	    test_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks)) {
> > > >  		set_bit(HCI_INIT, &hdev->flags);
> > > >  		__hci_request(hdev, hci_reset_req, 0,
> > > > -			      msecs_to_jiffies(250));
> > > > +			      msecs_to_jiffies(HCI_CMD_TIMEOUT));
> > > >  		clear_bit(HCI_INIT, &hdev->flags);
> > > >  	}
> > > 
> > > And while you are at it, can we please move over to put the
> > > msecs_to_jiffies into the #define itself. 
> > 
> > Do you mean convert those defines below?
> > 
> > /* HCI timeouts */
> > #define HCI_DISCONN_TIMEOUT	(2000)	/* 2 seconds */
> > #define HCI_PAIRING_TIMEOUT	(60000)	/* 60 seconds */
> > #define HCI_INIT_TIMEOUT	(10000)	/* 10 seconds */
> > #define HCI_CMD_TIMEOUT		(1000)	/* 1 seconds */
> > #define HCI_ACL_TX_TIMEOUT	(45000)	/* 45 seconds */
> 
> I think I will convert them in the following patch.

yes, an additional patch is find. That is why I acked this one ;)

Regards

Marcel



  reply	other threads:[~2012-06-08  9:01 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-08  8:12 [PATCHv1 1/4] Bluetooth: Use standard HCI cmd timeout for RESET Andrei Emeltchenko
2012-06-08  8:12 ` [PATCHv1 2/4] Bluetooth: Add opcode to error message Andrei Emeltchenko
2012-06-08  8:12 ` [PATCHv1 3/4] Bluetooth: Add debug print specifier Andrei Emeltchenko
2012-06-08  8:34   ` Marcel Holtmann
2012-06-08  8:12 ` [PATCHv1 4/4] Bluetooth: Fix not setting HCI_RESET flag for AMP Andrei Emeltchenko
2012-06-08  8:31 ` [PATCHv1 1/4] Bluetooth: Use standard HCI cmd timeout for RESET Marcel Holtmann
2012-06-08  8:53   ` Andrei Emeltchenko
2012-06-08  9:00     ` Andrei Emeltchenko
2012-06-08  9:01       ` Marcel Holtmann [this message]
2012-06-08  9:00     ` Marcel Holtmann
2012-06-08  9:11 ` Szymon Janc
2012-06-08 11:03 ` [PATCHv2 1/5] " Andrei Emeltchenko
2012-06-08 11:03   ` [PATCHv2 2/5] Bluetooth: Update HCI timeouts constants to use msecs_to_jiffies Andrei Emeltchenko
2012-06-08 11:03   ` [PATCHv2 3/5] Bluetooth: Add opcode to error message Andrei Emeltchenko
2012-06-08 11:17     ` Szymon Janc
2012-06-11  8:06       ` Andrei Emeltchenko
2012-06-08 11:03   ` [PATCHv2 4/5] Bluetooth: Correct debug print specifier for u16 objects Andrei Emeltchenko
2012-06-08 11:03   ` [PATCHv2 5/5] Bluetooth: Fix not setting HCI_RESET flag for AMP Andrei Emeltchenko
2012-06-11  8:13 ` [PATCHv3 1/5] Bluetooth: Use standard HCI cmd timeout for RESET Andrei Emeltchenko
2012-06-11  8:13   ` [PATCHv3 2/5] Bluetooth: Update HCI timeouts constants to use msecs_to_jiffies Andrei Emeltchenko
2012-06-11  8:13   ` [PATCHv3 3/5] Bluetooth: Add opcode to error message Andrei Emeltchenko
2012-06-11  8:13   ` [PATCHv3 4/5] Bluetooth: Correct debug print specifier for u16 objects Andrei Emeltchenko
2012-06-11  8:13   ` [PATCHv3 5/5] Bluetooth: Fix not setting HCI_RESET flag for AMP Andrei Emeltchenko
2012-06-12  3:15     ` Gustavo Padovan

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=1339146093.1817.143.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=Andrei.Emeltchenko.news@gmail.com \
    --cc=linux-bluetooth@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