<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/iio/orientation, branch linux-4.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-05-07T11:22:36Z</updated>
<entry>
<title>iio: hid-sensor-rotation: Add "scale" and "offset" properties parse support</title>
<updated>2017-05-07T11:22:36Z</updated>
<author>
<name>Song Hongyan</name>
</author>
<published>2017-05-07T10:24:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a78587d338d084037b0ea6687508f207d8dec2fb'/>
<id>urn:sha1:a78587d338d084037b0ea6687508f207d8dec2fb</id>
<content type='text'>
Add orientation sensor "scale" and "offset" parse support.
These two properties are needed for exponent data conversion.

Signed-off-by: Song Hongyan &lt;hongyan.song@intel.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@intel.com&gt;
Reviewed-by: Xu Even &lt;even.xu@intel.com&gt;
Acked-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: hid-sensor-rotation: Add geomagnetic orientation sensor hid support.</title>
<updated>2017-05-07T11:22:33Z</updated>
<author>
<name>Song Hongyan</name>
</author>
<published>2017-05-07T10:24:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=00907c7a3282053dd4782e02c3101809608e7ea7'/>
<id>urn:sha1:00907c7a3282053dd4782e02c3101809608e7ea7</id>
<content type='text'>
Geomagnetic orientation(AM) sensor is one kind of orientation 6dof sensor.
It gives the device rotation in respect to the earth center and the
magnetic north. The sensor is implemented through use of an accelerometer
and magnetometer do not use gyroscope. It is a standard HID sensor.

More information can be found in:
http://www.usb.org/developers/hidpage/HUTRR59_-_Usages_for_Wearables.pdf

Geomagnetic orientation(AM) sensor and dev rotation sensor have same
channel and share channel usage id. So the most of the code for relative
orientation sensor can be reused.

Signed-off-by: Song Hongyan &lt;hongyan.song@intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: hid-sensor-rotation: Add relative orientation sensor hid support</title>
<updated>2017-05-07T11:22:27Z</updated>
<author>
<name>Song Hongyan</name>
</author>
<published>2017-05-07T10:24:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ff88edc5e7bad08bdd79a20f14533a5cf44b865'/>
<id>urn:sha1:9ff88edc5e7bad08bdd79a20f14533a5cf44b865</id>
<content type='text'>
Relative orientation(AG) sensor is a 6dof orientation sensor,
it depends on acceleration and gyroscope sensor data. It gives
a quaternion describing the orientation of the device relative
to an initial orientation. It is a standard HID sensor.

More information can be found in:
http://www.usb.org/developers/hidpage/HUTRR59_-_Usages_for_Wearables.pdf

Relative orientation(AG) sensor and dev rotation sensor have same
channels and share channel usage id. So the most of the code for
relative orientation sensor can be reused.

Signed-off-by: Song Hongyan &lt;hongyan.song@intel.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@intel.com&gt;
Reviewed-by: Xu Even &lt;even.xu@intel.com&gt;
Acked-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: orientation: hid-sensor-rotation: Add PM function (fix non working driver)</title>
<updated>2016-11-05T17:47:47Z</updated>
<author>
<name>Song Hongyan</name>
</author>
<published>2016-10-25T01:06:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8af644a7d6846f48d6b72be5d4a3c6eb16bd33c8'/>
<id>urn:sha1:8af644a7d6846f48d6b72be5d4a3c6eb16bd33c8</id>
<content type='text'>
This fix makes newer ISH hubs work. Previous ones worked by lucky
coincidence.

Rotation sensor function does not work due to miss PM function.
Add common hid sensor iio pm function for rotation sensor.

Further clarification from Srinivas:

If CONFIG_PM is not defined, then this prevents this sensor to
function. So above commit caused this.

This sensor was supposed to be always on to trigger wake up in prior
external hubs. But with the new ISH hub this is not the case.

Signed-off-by: Song Hongyan &lt;hongyan.song@intel.com&gt;
Fixes: 2b89635e9a9e ("iio: hid_sensor_hub: Common PM functions")
Cc: &lt;Stable@vger.kernel.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: orientation: hid-sensor-rotation: Fix memory leak in probe()</title>
<updated>2015-05-17T08:10:25Z</updated>
<author>
<name>Fabio Estevam</name>
</author>
<published>2015-05-13T18:06:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2bd04628435ff57a2fefa71e7d3e5c005db5c978'/>
<id>urn:sha1:2bd04628435ff57a2fefa71e7d3e5c005db5c978</id>
<content type='text'>
'channels' is allocated via kmemdup and it is never freed in the
subsequent error paths.

Use 'indio_dev-&gt;channels' directly instead, so that we avoid such
memory leak problem.

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Reviewed-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: orientation: hid-sensor-incl-3d: Fix memory leak in probe()</title>
<updated>2015-05-17T08:10:14Z</updated>
<author>
<name>Fabio Estevam</name>
</author>
<published>2015-05-13T18:06:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=32ee56e306b09568619466efe109ab9722e89245'/>
<id>urn:sha1:32ee56e306b09568619466efe109ab9722e89245</id>
<content type='text'>
'channels' is allocated via kmemdup and it is never freed in the
subsequent error paths.

Use 'indio_dev-&gt;channels' directly instead, so that we avoid such
memory leak problem.

Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Reviewed-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: hid-sensor-rotation: Constify platform_device_id</title>
<updated>2015-05-10T19:31:47Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2015-05-01T15:53:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6b490c6c6702b1404d3ae93a9d0ace211d40c094'/>
<id>urn:sha1:6b490c6c6702b1404d3ae93a9d0ace211d40c094</id>
<content type='text'>
The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski.k@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: hid-sensor-incl-3d: Constify platform_device_id</title>
<updated>2015-05-10T19:31:47Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2015-05-01T15:53:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5dd86df009064b4ba25eabc78ea97d5c92154d13'/>
<id>urn:sha1:5dd86df009064b4ba25eabc78ea97d5c92154d13</id>
<content type='text'>
The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski.k@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for-4.1/sensor-hub' into for-linus</title>
<updated>2015-04-13T21:43:34Z</updated>
<author>
<name>Jiri Kosina</name>
</author>
<published>2015-04-13T21:43:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2e455c27bddbf8cf6d1039daea40de8e6865c453'/>
<id>urn:sha1:2e455c27bddbf8cf6d1039daea40de8e6865c453</id>
<content type='text'>
Conflicts:
	drivers/iio/common/hid-sensors/hid-sensor-trigger.c
	include/linux/hid-sensor-hub.h
</content>
</entry>
<entry>
<title>HID: hid-sensor-hub: Extend API for async reads</title>
<updated>2015-02-23T14:16:37Z</updated>
<author>
<name>Srinivas Pandruvada</name>
</author>
<published>2015-02-19T23:33:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b3f4737d00de317d1549d5cb5b1dad90e19f5cec'/>
<id>urn:sha1:b3f4737d00de317d1549d5cb5b1dad90e19f5cec</id>
<content type='text'>
Add additional flag to read in async mode. In this mode the caller will get
reply via registered callback for capture_sample. Callbacks can be registered
using sensor_hub_register_callback function. The usage id parameter of the
capture_sample can be matched with the usage id of the requested attribute.

Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Acked-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
</feed>
