* hid-sensor-hub and autoloading of HID sensor modules @ 2012-12-10 21:07 Alexander Holler [not found] ` <50C64F29.9030200-SXC+2es9fhnfWeYVQQPykw@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Alexander Holler @ 2012-12-10 21:07 UTC (permalink / raw) To: linux-iio-u79uwXL29TY76Z2rM5mHXA, linux-input-u79uwXL29TY76Z2rM5mHXA, srinivas.pandruvada-ral2JQCrhuEAvxtiuMwx3w, matteo.dameno-qxv4g6HH51o Hello, as I've just posted a patch to get rid of the vendor and device IDs for USB HID sensor hubs, there is still one problem left: hid-sensor-hub doesn't automatically load the necessary drivers (if they are modules). Here is a suggestion about how to solve that: Create HID groups HID_GROUP_SENSOR_ACCEL, HID_GROUP_SENSOR_TIME, ...) for every type of (supported) sensor (instead of the one HID_GROUP_SENSOR_HUB), scan for their usage pages (e.g. HID_USAGE_SENSOR_ACCEL, HID_USAGE_SENSOR_TIME, ...) set the group and so load the final module and not hid-sensor-hub. hid-sensor-hub will then get loaded automatically. As I don't have any real sensor hubs (and no business with them), I think others should implement such, if that idea got approved to make sense. ;) That just would be some few lines, but I couldn't test them with real-world stuff. Regards, Alexander ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <50C64F29.9030200-SXC+2es9fhnfWeYVQQPykw@public.gmane.org>]
* RE: hid-sensor-hub and autoloading of HID sensor modules [not found] ` <50C64F29.9030200-SXC+2es9fhnfWeYVQQPykw@public.gmane.org> @ 2012-12-10 21:22 ` Pandruvada, Srinivas [not found] ` <4FA419E87744DF4DAECD5BCE1214B7A91C96075E-P5GAC/sN6hk8Ug9VwtkbtrfspsVTdybXVpNB7YpNyf8@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Pandruvada, Srinivas @ 2012-12-10 21:22 UTC (permalink / raw) To: Alexander Holler, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, matteo.dameno-qxv4g6HH51o@public.gmane.org This will be a problem for current implementations, which are about to get shipped. Once I get chance, I will start looking at this idea. Meanwhile, you need to add hook to vendor and product id in the table. Thanks, Srinivas -----Original Message----- From: Alexander Holler [mailto:holler-SXC+2es9fhnfWeYVQQPykw@public.gmane.org] Sent: Monday, December 10, 2012 1:08 PM To: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Pandruvada, Srinivas; matteo.dameno-qxv4g6HH51o@public.gmane.org Subject: hid-sensor-hub and autoloading of HID sensor modules Hello, as I've just posted a patch to get rid of the vendor and device IDs for USB HID sensor hubs, there is still one problem left: hid-sensor-hub doesn't automatically load the necessary drivers (if they are modules). Here is a suggestion about how to solve that: Create HID groups HID_GROUP_SENSOR_ACCEL, HID_GROUP_SENSOR_TIME, ...) for every type of (supported) sensor (instead of the one HID_GROUP_SENSOR_HUB), scan for their usage pages (e.g. HID_USAGE_SENSOR_ACCEL, HID_USAGE_SENSOR_TIME, ...) set the group and so load the final module and not hid-sensor-hub. hid-sensor-hub will then get loaded automatically. As I don't have any real sensor hubs (and no business with them), I think others should implement such, if that idea got approved to make sense. ;) That just would be some few lines, but I couldn't test them with real-world stuff. Regards, Alexander ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <4FA419E87744DF4DAECD5BCE1214B7A91C96075E-P5GAC/sN6hk8Ug9VwtkbtrfspsVTdybXVpNB7YpNyf8@public.gmane.org>]
* Re: hid-sensor-hub and autoloading of HID sensor modules [not found] ` <4FA419E87744DF4DAECD5BCE1214B7A91C96075E-P5GAC/sN6hk8Ug9VwtkbtrfspsVTdybXVpNB7YpNyf8@public.gmane.org> @ 2012-12-10 21:33 ` Alexander Holler 2012-12-10 21:40 ` Pandruvada, Srinivas 0 siblings, 1 reply; 7+ messages in thread From: Alexander Holler @ 2012-12-10 21:33 UTC (permalink / raw) To: Pandruvada, Srinivas Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, matteo.dameno-qxv4g6HH51o@public.gmane.org Am 10.12.2012 22:22, schrieb Pandruvada, Srinivas: > This will be a problem for current implementations, which are about to get shipped. > Once I get chance, I will start looking at this idea. Meanwhile, you need to add hook to vendor and product id in the table. Sorry, but I don't understand what that "shipped" has to do with the implementation in the kernel. And I don't seen any problems as only the implementation inside the kernel will change, nothing else. Regards, Alexander > > Thanks, > Srinivas > > > -----Original Message----- > From: Alexander Holler [mailto:holler-SXC+2es9fhnfWeYVQQPykw@public.gmane.org] > Sent: Monday, December 10, 2012 1:08 PM > To: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Pandruvada, Srinivas; matteo.dameno-qxv4g6HH51o@public.gmane.org > Subject: hid-sensor-hub and autoloading of HID sensor modules > > Hello, > > as I've just posted a patch to get rid of the vendor and device IDs for USB HID sensor hubs, there is still one problem left: hid-sensor-hub doesn't automatically load the necessary drivers (if they are modules). > > Here is a suggestion about how to solve that: > > Create HID groups HID_GROUP_SENSOR_ACCEL, HID_GROUP_SENSOR_TIME, ...) for every type of (supported) sensor (instead of the one HID_GROUP_SENSOR_HUB), scan for their usage pages (e.g. > HID_USAGE_SENSOR_ACCEL, HID_USAGE_SENSOR_TIME, ...) set the group and so load the final module and not hid-sensor-hub. hid-sensor-hub will then get loaded automatically. > > As I don't have any real sensor hubs (and no business with them), I think others should implement such, if that idea got approved to make sense. ;) That just would be some few lines, but I couldn't test them with real-world stuff. > > Regards, > > Alexander > ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: hid-sensor-hub and autoloading of HID sensor modules 2012-12-10 21:33 ` Alexander Holler @ 2012-12-10 21:40 ` Pandruvada, Srinivas 2012-12-10 21:53 ` Alexander Holler 0 siblings, 1 reply; 7+ messages in thread From: Pandruvada, Srinivas @ 2012-12-10 21:40 UTC (permalink / raw) To: Alexander Holler Cc: linux-iio@vger.kernel.org, linux-input@vger.kernel.org, matteo.dameno@st.com I mean if your patch is merged, when new kernel is synced in the product line, we can't depend on auto loading of hid-sensor-hub. So we need to do something similar as you suggested. Thanks, Srinivas -----Original Message----- From: Alexander Holler [mailto:holler@ahsoftware.de] Sent: Monday, December 10, 2012 1:33 PM To: Pandruvada, Srinivas Cc: linux-iio@vger.kernel.org; linux-input@vger.kernel.org; matteo.dameno@st.com Subject: Re: hid-sensor-hub and autoloading of HID sensor modules Am 10.12.2012 22:22, schrieb Pandruvada, Srinivas: > This will be a problem for current implementations, which are about to get shipped. > Once I get chance, I will start looking at this idea. Meanwhile, you need to add hook to vendor and product id in the table. Sorry, but I don't understand what that "shipped" has to do with the implementation in the kernel. And I don't seen any problems as only the implementation inside the kernel will change, nothing else. Regards, Alexander > > Thanks, > Srinivas > > > -----Original Message----- > From: Alexander Holler [mailto:holler@ahsoftware.de] > Sent: Monday, December 10, 2012 1:08 PM > To: linux-iio@vger.kernel.org; linux-input@vger.kernel.org; > Pandruvada, Srinivas; matteo.dameno@st.com > Subject: hid-sensor-hub and autoloading of HID sensor modules > > Hello, > > as I've just posted a patch to get rid of the vendor and device IDs for USB HID sensor hubs, there is still one problem left: hid-sensor-hub doesn't automatically load the necessary drivers (if they are modules). > > Here is a suggestion about how to solve that: > > Create HID groups HID_GROUP_SENSOR_ACCEL, HID_GROUP_SENSOR_TIME, ...) for every type of (supported) sensor (instead of the one HID_GROUP_SENSOR_HUB), scan for their usage pages (e.g. > HID_USAGE_SENSOR_ACCEL, HID_USAGE_SENSOR_TIME, ...) set the group and so load the final module and not hid-sensor-hub. hid-sensor-hub will then get loaded automatically. > > As I don't have any real sensor hubs (and no business with them), I think others should implement such, if that idea got approved to make sense. ;) That just would be some few lines, but I couldn't test them with real-world stuff. > > Regards, > > Alexander > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: hid-sensor-hub and autoloading of HID sensor modules 2012-12-10 21:40 ` Pandruvada, Srinivas @ 2012-12-10 21:53 ` Alexander Holler [not found] ` <50C659C1.7060005-SXC+2es9fhnfWeYVQQPykw@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Alexander Holler @ 2012-12-10 21:53 UTC (permalink / raw) To: Pandruvada, Srinivas Cc: linux-iio@vger.kernel.org, linux-input@vger.kernel.org, matteo.dameno@st.com Am 10.12.2012 22:40, schrieb Pandruvada, Srinivas: > I mean if your patch is merged, when new kernel is synced in the product line, we can't depend on auto loading of hid-sensor-hub. So we need to do something similar as you suggested. Those patches aren't meant for your product line (mor for 3.8). But hid-sensor-hub currently (as in 3.7-rc) doesn't load the necessary modules at all, only hid-sensor-hub is currently loaded automatically, not the other modules. That is at least what I've experienced here. Regards, Alexander > > Thanks, > Srinivas > > > > -----Original Message----- > From: Alexander Holler [mailto:holler@ahsoftware.de] > Sent: Monday, December 10, 2012 1:33 PM > To: Pandruvada, Srinivas > Cc: linux-iio@vger.kernel.org; linux-input@vger.kernel.org; matteo.dameno@st.com > Subject: Re: hid-sensor-hub and autoloading of HID sensor modules > > Am 10.12.2012 22:22, schrieb Pandruvada, Srinivas: >> This will be a problem for current implementations, which are about to get shipped. >> Once I get chance, I will start looking at this idea. Meanwhile, you need to add hook to vendor and product id in the table. > > Sorry, but I don't understand what that "shipped" has to do with the implementation in the kernel. And I don't seen any problems as only the implementation inside the kernel will change, nothing else. > > Regards, > > Alexander > >> >> Thanks, >> Srinivas >> >> >> -----Original Message----- >> From: Alexander Holler [mailto:holler@ahsoftware.de] >> Sent: Monday, December 10, 2012 1:08 PM >> To: linux-iio@vger.kernel.org; linux-input@vger.kernel.org; >> Pandruvada, Srinivas; matteo.dameno@st.com >> Subject: hid-sensor-hub and autoloading of HID sensor modules >> >> Hello, >> >> as I've just posted a patch to get rid of the vendor and device IDs for USB HID sensor hubs, there is still one problem left: hid-sensor-hub doesn't automatically load the necessary drivers (if they are modules). >> >> Here is a suggestion about how to solve that: >> >> Create HID groups HID_GROUP_SENSOR_ACCEL, HID_GROUP_SENSOR_TIME, ...) for every type of (supported) sensor (instead of the one HID_GROUP_SENSOR_HUB), scan for their usage pages (e.g. >> HID_USAGE_SENSOR_ACCEL, HID_USAGE_SENSOR_TIME, ...) set the group and so load the final module and not hid-sensor-hub. hid-sensor-hub will then get loaded automatically. >> >> As I don't have any real sensor hubs (and no business with them), I think others should implement such, if that idea got approved to make sense. ;) That just would be some few lines, but I couldn't test them with real-world stuff. >> >> Regards, >> >> Alexander >> > ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <50C659C1.7060005-SXC+2es9fhnfWeYVQQPykw@public.gmane.org>]
* Re: hid-sensor-hub and autoloading of HID sensor modules [not found] ` <50C659C1.7060005-SXC+2es9fhnfWeYVQQPykw@public.gmane.org> @ 2012-12-11 18:34 ` Alexander Holler 2012-12-11 18:40 ` Pandruvada, Srinivas 0 siblings, 1 reply; 7+ messages in thread From: Alexander Holler @ 2012-12-11 18:34 UTC (permalink / raw) To: Pandruvada, Srinivas Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, matteo.dameno-qxv4g6HH51o@public.gmane.org Am 10.12.2012 22:53, schrieb Alexander Holler: > Am 10.12.2012 22:40, schrieb Pandruvada, Srinivas: >> I mean if your patch is merged, when new kernel is synced in the product line, we can't depend on auto loading of hid-sensor-hub. So we need to do something similar as you suggested. > > Those patches aren't meant for your product line (mor for 3.8). But > hid-sensor-hub currently (as in 3.7-rc) doesn't load the necessary > modules at all, only hid-sensor-hub is currently loaded automatically, > not the other modules. That is at least what I've experienced here. As I'm not sure if I could describe clearly what I meant to say, I try it again: ;) The problem that the necessary modules will not be loaded automatically already exists in kernel 3.7. This is indepent of my proposed patches to get rid of the vendor and device IDs and load hid-sensor-hub automatically for all USB HID sensor hubs. With or without my proposed patches, only hid-sensor-hub is loaded automatically, but not the other drivers like hid-sensor-accel-3d, hid-sensor-als, hid-sensor-gyro-3d or hid-sensor-magn-3d (if the are build as modules). Regards, Alexander ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: hid-sensor-hub and autoloading of HID sensor modules 2012-12-11 18:34 ` Alexander Holler @ 2012-12-11 18:40 ` Pandruvada, Srinivas 0 siblings, 0 replies; 7+ messages in thread From: Pandruvada, Srinivas @ 2012-12-11 18:40 UTC (permalink / raw) To: Alexander Holler Cc: linux-iio@vger.kernel.org, linux-input@vger.kernel.org, matteo.dameno@st.com Yes, only hid-sensor-hub is loaded automatically currently. IIO sensor driver needs to be loaded by modprobe or insmod. Thanks, Srinivas -----Original Message----- From: Alexander Holler [mailto:holler@ahsoftware.de] Sent: Tuesday, December 11, 2012 10:34 AM To: Pandruvada, Srinivas Cc: linux-iio@vger.kernel.org; linux-input@vger.kernel.org; matteo.dameno@st.com Subject: Re: hid-sensor-hub and autoloading of HID sensor modules Am 10.12.2012 22:53, schrieb Alexander Holler: > Am 10.12.2012 22:40, schrieb Pandruvada, Srinivas: >> I mean if your patch is merged, when new kernel is synced in the product line, we can't depend on auto loading of hid-sensor-hub. So we need to do something similar as you suggested. > > Those patches aren't meant for your product line (mor for 3.8). But > hid-sensor-hub currently (as in 3.7-rc) doesn't load the necessary > modules at all, only hid-sensor-hub is currently loaded automatically, > not the other modules. That is at least what I've experienced here. As I'm not sure if I could describe clearly what I meant to say, I try it again: ;) The problem that the necessary modules will not be loaded automatically already exists in kernel 3.7. This is indepent of my proposed patches to get rid of the vendor and device IDs and load hid-sensor-hub automatically for all USB HID sensor hubs. With or without my proposed patches, only hid-sensor-hub is loaded automatically, but not the other drivers like hid-sensor-accel-3d, hid-sensor-als, hid-sensor-gyro-3d or hid-sensor-magn-3d (if the are build as modules). Regards, Alexander ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-12-11 18:40 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-12-10 21:07 hid-sensor-hub and autoloading of HID sensor modules Alexander Holler [not found] ` <50C64F29.9030200-SXC+2es9fhnfWeYVQQPykw@public.gmane.org> 2012-12-10 21:22 ` Pandruvada, Srinivas [not found] ` <4FA419E87744DF4DAECD5BCE1214B7A91C96075E-P5GAC/sN6hk8Ug9VwtkbtrfspsVTdybXVpNB7YpNyf8@public.gmane.org> 2012-12-10 21:33 ` Alexander Holler 2012-12-10 21:40 ` Pandruvada, Srinivas 2012-12-10 21:53 ` Alexander Holler [not found] ` <50C659C1.7060005-SXC+2es9fhnfWeYVQQPykw@public.gmane.org> 2012-12-11 18:34 ` Alexander Holler 2012-12-11 18:40 ` Pandruvada, Srinivas
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).