All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] /sys/devices/platform/bluetooth
@ 2007-01-18  6:08 Choi Sonim
  2007-01-18  8:13 ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Choi Sonim @ 2007-01-18  6:08 UTC (permalink / raw)
  To: BlueZ development

hello to all,

Where is the code that does the platform registration to this device :
/sys/devices/platform/bluetooth
?

I don't find it...

thank you a lot
Choi.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] /sys/devices/platform/bluetooth
  2007-01-18  6:08 [Bluez-devel] /sys/devices/platform/bluetooth Choi Sonim
@ 2007-01-18  8:13 ` Marcel Holtmann
  2007-01-18 23:23   ` Choi Sonim
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2007-01-18  8:13 UTC (permalink / raw)
  To: BlueZ development

Hi,

> Where is the code that does the platform registration to this device :
> /sys/devices/platform/bluetooth

you find it in net/bluetooth/hci_sysfs.c in the kernel source code.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] /sys/devices/platform/bluetooth
  2007-01-18  8:13 ` Marcel Holtmann
@ 2007-01-18 23:23   ` Choi Sonim
  2007-01-18 23:52     ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Choi Sonim @ 2007-01-18 23:23 UTC (permalink / raw)
  To: BlueZ development, marcel

Hi Hi,

On 1/18/07, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi,
>
> > Where is the code that does the platform registration to this device :
> > /sys/devices/platform/bluetooth
>
> you find it in net/bluetooth/hci_sysfs.c in the kernel source code.

What is the purpose of the bluetooth platform device (and bus and class..) ?

I guess that bluetooth devices would prefer to register themselves as children
of their true bus (like USB or PCI or even serial) so when the system goes
to suspend, their suspend function will be called before their father's
(the true hardware bus of our bluetooth device).

Am I right ?

thanks you,
choi.

>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] /sys/devices/platform/bluetooth
  2007-01-18 23:23   ` Choi Sonim
@ 2007-01-18 23:52     ` Marcel Holtmann
  2007-01-18 23:59       ` Choi Sonim
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2007-01-18 23:52 UTC (permalink / raw)
  To: Choi Sonim; +Cc: BlueZ development

Hi Choi,

> > > Where is the code that does the platform registration to this device :
> > > /sys/devices/platform/bluetooth
> >
> > you find it in net/bluetooth/hci_sysfs.c in the kernel source code.
> 
> What is the purpose of the bluetooth platform device (and bus and class..) ?
> 
> I guess that bluetooth devices would prefer to register themselves as children
> of their true bus (like USB or PCI or even serial) so when the system goes
> to suspend, their suspend function will be called before their father's
> (the true hardware bus of our bluetooth device).

if they do have a physical parent. Some devices like virtual HCI or
serial based chips don't have a physical parent.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] /sys/devices/platform/bluetooth
  2007-01-18 23:52     ` Marcel Holtmann
@ 2007-01-18 23:59       ` Choi Sonim
  2007-01-19  1:02         ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Choi Sonim @ 2007-01-18 23:59 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ development

Hi Marcel,

On 1/19/07, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Choi,
>
> > > > Where is the code that does the platform registration to this device :
> > > > /sys/devices/platform/bluetooth
> > >
> > > you find it in net/bluetooth/hci_sysfs.c in the kernel source code.
> >
> > What is the purpose of the bluetooth platform device (and bus and class..) ?
> >
> > I guess that bluetooth devices would prefer to register themselves as children
> > of their true bus (like USB or PCI or even serial) so when the system goes
> > to suspend, their suspend function will be called before their father's
> > (the true hardware bus of our bluetooth device).
>
> if they do have a physical parent. Some devices like virtual HCI or
> serial based chips don't have a physical parent.

About the serial based chips -
I'm sure they would like their suspend function to be called before the
serial uart driver's suspend, so for them to set device parent to the
serial device
can be a benefit too, no ?

About the virtual HCI - I really don't know what are them, can you please
explain this ?

Thank You Very very Much !
Choi.
>
> Regards
>
> Marcel
>
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] /sys/devices/platform/bluetooth
  2007-01-18 23:59       ` Choi Sonim
@ 2007-01-19  1:02         ` Marcel Holtmann
  2007-01-19  6:26           ` Choi Sonim
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2007-01-19  1:02 UTC (permalink / raw)
  To: Choi Sonim; +Cc: BlueZ development

Hi Choi,

> > > > > Where is the code that does the platform registration to this device :
> > > > > /sys/devices/platform/bluetooth
> > > >
> > > > you find it in net/bluetooth/hci_sysfs.c in the kernel source code.
> > >
> > > What is the purpose of the bluetooth platform device (and bus and class..) ?
> > >
> > > I guess that bluetooth devices would prefer to register themselves as children
> > > of their true bus (like USB or PCI or even serial) so when the system goes
> > > to suspend, their suspend function will be called before their father's
> > > (the true hardware bus of our bluetooth device).
> >
> > if they do have a physical parent. Some devices like virtual HCI or
> > serial based chips don't have a physical parent.
> 
> About the serial based chips -
> I'm sure they would like their suspend function to be called before the
> serial uart driver's suspend, so for them to set device parent to the
> serial device
> can be a benefit too, no ?

if you write a chip specific driver then yes. For all line discipline
based ones at the moment, you are simply out of luck.

> About the virtual HCI - I really don't know what are them, can you please
> explain this ?

You can emulate a HCI host device in userspace using hciemu.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] /sys/devices/platform/bluetooth
  2007-01-19  1:02         ` Marcel Holtmann
@ 2007-01-19  6:26           ` Choi Sonim
  0 siblings, 0 replies; 7+ messages in thread
From: Choi Sonim @ 2007-01-19  6:26 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ development

Thank You So Very Much.

Choi^^

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-01-19  6:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-18  6:08 [Bluez-devel] /sys/devices/platform/bluetooth Choi Sonim
2007-01-18  8:13 ` Marcel Holtmann
2007-01-18 23:23   ` Choi Sonim
2007-01-18 23:52     ` Marcel Holtmann
2007-01-18 23:59       ` Choi Sonim
2007-01-19  1:02         ` Marcel Holtmann
2007-01-19  6:26           ` Choi Sonim

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.