public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Grant <grantma@anathoth.gen.nz>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] Re: [PATCH] - for BT HID fixes + beginning of ctrl handling
Date: Mon, 06 Dec 2004 19:38:05 +1300	[thread overview]
Message-ID: <1102315086.6245.1.camel@localhost> (raw)
In-Reply-To: <1101987344.15615.109.camel@pegasus>

[-- Attachment #1: Type: text/plain, Size: 2913 bytes --]

Hi Marcel,

Busy weekend.  Remotely upgrading a Debian box, and upgrading its
hardware, having to take it one step at a time. I have started editing
the code to put in the style changes you recommended. Should be able to
get something to you tomorrow.

On Thu, 2004-12-02 at 12:35 +0100, Marcel Holtmann wrote:
> Hi Matthew,
> 
> as a side note: Finally decide if you are going to discuss this in
> private with me or on the mailing list. Don't switch back and forth.
> 

Probably bets to discuss this matter on bluez-devel.

> > At times the hidp_send_message gets called from within the context of
> > the running kernel thread when responding to received messages with
> > error handshakes, and you want to keep processing if possible until the
> > original hidp_schedule() after the transmission of messages.  The aim is
> > to keep the execution flow as you planned it originally.
> > 
> > Do you think a separate function is needed, without the schedule call at
> > the end?
> 
> Actually a schedule should not harm in any way. If you think we really
> need it then I would prefer the same as a looked() versus __unlocked()
> functions.

Like you I want to keep things simple here, but I want to also avoid the
effects of giving up the processor to readily.  Also I want to avoid the
complications of more locks.  The reply messages are being sent inside
the global? Bluetooth HID lock.  We have to be careful about the context
that this is all happening within.  If you are that concerned about the
third function schedule parameter, I will create 2 separate control
message sending functions as they are only 3-4 lines long.

> > Thinking about how best to look after all the code and patching.
> > Putting all the BT code into a version control system here is looking to
> > be quite sensible to make the patching easier to handle.  If we were not
> > patching core.c for the report mode support, this would be a lot easier
> > and cleaner.
> 
> I don't see any need for it at the moment. Once we get your HIDP core
> stuff ready, I will try to merge it back mainline as soon as possible.
> Every change after that should be minimal.
> 

This first patch is only phase 1 in a 3 stage process.  Next 2 steps
will be just as big and invasive.  After this probably half of the BT
HID may be changed around quite significantly.  Please accept Debug code
code changes I make, as I need these to get debug code to compile for my
own use.  The version control system is so that I can more easily keep
track of what I am doing.

As I write this, I am making changes you suggested to my code so that we
can get it merged.  I still have a lot of this work on the machine in
Bangladesh to deal with for the next couple of nights till I can put it
on hold for a week or two before their final upgrade from woody to
sarge.

Best Regards,

Matthew Grant

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-12-06  6:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-01 19:49 [PATCH] - for BT HID fixes + beginning of ctrl handling Matthew Grant
2004-12-01 20:33 ` [Bluez-devel] " Marcel Holtmann
     [not found]   ` <1101982200.6274.24.camel@localhost>
     [not found]     ` <1101987344.15615.109.camel@pegasus>
2004-12-06  6:38       ` Matthew Grant [this message]
2004-12-06  6:49         ` Marcel Holtmann

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=1102315086.6245.1.camel@localhost \
    --to=grantma@anathoth.gen.nz \
    --cc=bluez-devel@lists.sourceforge.net \
    /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