All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Grant <grantma@anathoth.gen.nz>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Re: PROBLEM: Apple powerbook, Apple BT keyboard, keyboard does not reconnect on reboot
Date: Sun, 14 Nov 2004 07:52:42 +1300	[thread overview]
Message-ID: <1100371962.6564.4.camel@localhost> (raw)
In-Reply-To: <1100350419.7349.43.camel@pegasus>

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

Hi Marcel,

Actually, maybe could a new release should be done for this?  It fixes a
lot of boot script problems on big-endian systems with things not being
shutdown properly for hidd.  I have observed that not having BT
connections cleanly closed off upsets my Apple keyboards.

Cheers,

Matthew Grant

On Sun, 2004-11-14 at 01:53, Marcel Holtmann wrote:
> Hi Matthew,
> 
> > Real reason for it is this, user-space thinks cnum field is 16 bit, kernel 
> > thinks it is 32 bit.  Bug only shows up in big-endian architectures as result
> > count is returned in top byte of what is received from the kernel, whereas on
> > i386 it is in the lowest where by fluke it works...
> > 
> > Mismatch in the kernel and user-space  header files:
> > 
> > in the kernel, net/bluetooth/hid/hdip.h: 
> > 
> > struct hidp_connlist_req {
> >         __u32  cnum;
> >         struct hidp_conninfo __user *ci;
> > };
> > 
> > in libbluetoth, include/bluetooth/hidp.h:
> > 
> > struct hidp_connlist_req {
> >         uint16_t cnum;
> >         struct hidp_conninfo *ci;
> > };
> > 
> > Which way should we go here?  We need to fix kernel or user-space, and I need your 
> > 'official' touch before I post a patch in the Debian bug report I am going to submit.
> > The fix I prefer affects the user-space bluetooth include files.
> 
> thanks for finding this mismatch. We change the userspace, because the
> kernel interface should stay stable. Actually I looked also at BNEP and
> CMTP and found that we have the same problem in CMTP. So I must have
> done this wrong in the early days of CMTP and then copied over to HIDP.
> A patch for this is in the CVS now.
> 
> Regards
> 
> Marcel
> 
-- 
===============================================================================
Matthew Grant        /\  ^/\^   grantma@anathoth.gen.nz      /~~~~\
A Linux Network Guy /~~\^/~~\_/~~~~~\_______/~~~~~~~~~~\____/******\
===GPG KeyID: 2EE20270  FingerPrint: 8C2535E1A11DF3EA5EA19125BA4E790E2EE20270==


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

  reply	other threads:[~2004-11-13 18:52 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-24 21:45 PROBLEM: Apple powerbook, Apple BT keyboard, keyboard does not reconnect on reboot Matthew Grant
2004-10-24 22:07 ` [Bluez-users] " Matthew Grant
2004-10-25  3:56   ` Marcel Holtmann
2004-10-25  3:55 ` [Bluez-users] " Marcel Holtmann
2004-10-25  8:59   ` Matthew Grant
2004-10-26 10:34     ` [Bluez-users] " Matthew Grant
2004-11-06  6:12   ` Matthew Grant
2004-11-06 12:34     ` Marcel Holtmann
2004-11-06 20:11       ` Matthew Grant
2004-11-06 21:31         ` Marcel Holtmann
     [not found]           ` <1099788984.4543.5.camel@localhost>
2004-11-07  2:38             ` Marcel Holtmann
2004-11-08 19:38               ` Matthew Grant
2004-11-08 19:53                 ` Marcel Holtmann
2004-11-10 19:34                   ` Matthew Grant
2004-11-13  3:39                   ` Matthew Grant
2004-11-13  6:09                   ` Matthew Grant
2004-11-13 12:53                     ` Marcel Holtmann
2004-11-13 18:52                       ` Matthew Grant [this message]
2004-11-13 19:05                         ` Marcel Holtmann
2004-11-13 19:55                           ` Matthew Grant
2004-11-13 20:01                             ` 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=1100371962.6564.4.camel@localhost \
    --to=grantma@anathoth.gen.nz \
    --cc=bluez-users@lists.sourceforge.net \
    --cc=marcel@holtmann.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.