<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/hsi, branch v4.6</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.6</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.6'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2016-01-28T16:47:56Z</updated>
<entry>
<title>HSI: ssi-protocol: Use handshake logic from n950</title>
<updated>2016-01-28T16:47:56Z</updated>
<author>
<name>Sebastian Reichel</name>
<email>sre@kernel.org</email>
</author>
<published>2016-01-17T15:49:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=87d99063be016ceee90723a13365a40b21eec0d9'/>
<id>urn:sha1:87d99063be016ceee90723a13365a40b21eec0d9</id>
<content type='text'>
When using the ssi-protocol driver with the Nokia N950, the
following error is thrown during modem powered up sequence.

[13852.274993]  port0: SSI error: 0x01
[13852.279205] ssi-protocol ssi-protocol: RX error detected
[13852.284820] ssi-protocol ssi-protocol: Main state: 1
[13852.290069] ssi-protocol ssi-protocol: Recv state: 0
[13852.295288] ssi-protocol ssi-protocol: Send state: 0
[13852.300537] ssi-protocol ssi-protocol: CMT Offline
[13852.305603] ssi-protocol ssi-protocol: Wake test 1
[13852.310638] ssi-protocol ssi-protocol: Data RX id: 0
[13852.315887] ssi-protocol ssi-protocol: Data TX id: 0
[13856.001464] ssi-protocol ssi-protocol: Watchdog trigerred
[13856.007293] ssi-protocol ssi-protocol: Main state: 1
[13856.012542] ssi-protocol ssi-protocol: Recv state: 0
[13856.017761] ssi-protocol ssi-protocol: Send state: 0
[13856.023010] ssi-protocol ssi-protocol: CMT Offline
[13856.028045] ssi-protocol ssi-protocol: Wake test 0
[13856.033111] ssi-protocol ssi-protocol: Data RX id: 0
[13856.038330] ssi-protocol ssi-protocol: Data TX id: 0

This patch fixes the issue by using the handshake setup from
the Nokia N950 kernel. The new handshake sequence also works
with the N900, so there is no need to differentiate between
both modems.

Tested-by: Aaro Koskinen &lt;aaro.koskinen@iki.fi&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
</entry>
<entry>
<title>HSI: nokia-modem: add n950 and n9 support</title>
<updated>2016-01-28T16:46:08Z</updated>
<author>
<name>Sebastian Reichel</name>
<email>sre@kernel.org</email>
</author>
<published>2016-01-17T15:49:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=633f67a51d078bea627f22d6208442e1e1f391cb'/>
<id>urn:sha1:633f67a51d078bea627f22d6208442e1e1f391cb</id>
<content type='text'>
The Nokia N950 and Nokia N9 also have a SSI connected
modem, which use the same protocols as the Nokia N900,
but with increased link speed (96000 kbps instead of
55000 kbps) and with less GPIOs.

Since it's unclear, if the N950 and the N9 use exactly
the same modem, each of them gets their own compatible
string.

Acked-by: Rob Herring &lt;robh@kernel.org&gt;
Tested-by: Aaro Koskinen &lt;aaro.koskinen@iki.fi&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
</entry>
<entry>
<title>HSI: omap_ssi_port: fix handling of_get_named_gpio result</title>
<updated>2016-01-07T15:07:54Z</updated>
<author>
<name>Andrzej Hajda</name>
<email>a.hajda@samsung.com</email>
</author>
<published>2015-09-21T13:33:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=525e1abc6b5a7d8bd9006de1da6e99722305ea2b'/>
<id>urn:sha1:525e1abc6b5a7d8bd9006de1da6e99722305ea2b</id>
<content type='text'>
The function can return negative value.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Signed-off-by: Andrzej Hajda &lt;a.hajda@samsung.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
</entry>
<entry>
<title>HSI: omap_ssi: fix handling ida_simple_get result</title>
<updated>2016-01-07T15:06:22Z</updated>
<author>
<name>Andrzej Hajda</name>
<email>a.hajda@samsung.com</email>
</author>
<published>2015-09-21T13:33:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6bf6ded3008a407ccab5ad72eb59ab71b97cc290'/>
<id>urn:sha1:6bf6ded3008a407ccab5ad72eb59ab71b97cc290</id>
<content type='text'>
The function can return negative value.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Signed-off-by: Andrzej Hajda &lt;a.hajda@samsung.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
</entry>
<entry>
<title>hsi: controllers:remove redundant code</title>
<updated>2015-10-30T15:10:40Z</updated>
<author>
<name>Sanjeev Sharma</name>
<email>sanjeev_sharma@mentor.com</email>
</author>
<published>2015-10-29T10:04:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=16bd5865cdb3b190105db21bd22a0ca0501e7b20'/>
<id>urn:sha1:16bd5865cdb3b190105db21bd22a0ca0501e7b20</id>
<content type='text'>
Use devm_ioremap_resource() in order to make the code simpler,
and remove redundant return value check of platform_get_resource()
because this value is alreadytaken care by devm_ioremap_resource()

Signed-off-by: Sanjeev Sharma &lt;sanjeev_sharma@mentor.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
</entry>
<entry>
<title>hsi: correctly handle return value of kzalloc</title>
<updated>2015-10-19T09:42:02Z</updated>
<author>
<name>Insu Yun</name>
<email>wuninsu@gmail.com</email>
</author>
<published>2015-10-17T19:25:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d2c85ac24ed7636934f469fac8836b87c7e6cb40'/>
<id>urn:sha1:d2c85ac24ed7636934f469fac8836b87c7e6cb40</id>
<content type='text'>
Since kzalloc can be failed in memory pressure,
its return value should be checked and handled.

Signed-off-by: Insu Yun &lt;wuninsu@gmail.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
</entry>
<entry>
<title>hsi: omap_ssi_port: Prevent warning if cawake_gpio is not defined.</title>
<updated>2015-10-14T11:24:44Z</updated>
<author>
<name>Roger Quadros</name>
<email>rogerq@ti.com</email>
</author>
<published>2015-10-14T10:44:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e74eba049356fdad6713ab66322d9aeb0e85608b'/>
<id>urn:sha1:e74eba049356fdad6713ab66322d9aeb0e85608b</id>
<content type='text'>
The error handling path is broken as cawake_gpio was defined as
unsigned integer causing the following warnings on boards that don't
use SSI port and so don't have cawake_gpio defined. e.g. beagleboard C4.

[   30.094635] WARNING: CPU: 0 PID: 322 at drivers/gpio/gpiolib.c:86 gpio_to_desc+0xa4/0xb8()
[   30.103363] invalid GPIO -2
[   30.106292] Modules linked in: omap_ssi_port(+) cpufreq_dt cfbfillrect cfbimgblt leds_gpio cfbcopyarea thermal_sys led_class hwmon gpio_keys encoder_tfp410 connector_analog_tv connector_dvi omap_hdq snd phy_i
[   30.145477] CPU: 0 PID: 322 Comm: modprobe Not tainted 4.3.0-rc4-00030-gca978c0-dirty #335
[   30.154174] Hardware name: Generic OMAP3-GP (Flattened Device Tree)
[   30.160827] [&lt;c0016ef4&gt;] (unwind_backtrace) from [&lt;c00131f4&gt;] (show_stack+0x10/0x14)
[   30.168975] [&lt;c00131f4&gt;] (show_stack) from [&lt;c033cf08&gt;] (dump_stack+0x80/0x9c)
[   30.176635] [&lt;c033cf08&gt;] (dump_stack) from [&lt;c003e920&gt;] (warn_slowpath_common+0x7c/0xb8)
[   30.185180] [&lt;c003e920&gt;] (warn_slowpath_common) from [&lt;c003e9f0&gt;] (warn_slowpath_fmt+0x30/0x40)
[   30.194366] [&lt;c003e9f0&gt;] (warn_slowpath_fmt) from [&lt;c0376314&gt;] (gpio_to_desc+0xa4/0xb8)
[   30.202819] [&lt;c0376314&gt;] (gpio_to_desc) from [&lt;c0376ac8&gt;] (gpio_request_one+0x14/0x11c)
[   30.211273] [&lt;c0376ac8&gt;] (gpio_request_one) from [&lt;c037370c&gt;] (devm_gpio_request_one+0x3c/0x78)
[   30.220458] [&lt;c037370c&gt;] (devm_gpio_request_one) from [&lt;bf184210&gt;] (ssi_port_probe+0x118/0x504 [omap_ssi_port])
[   30.231170] [&lt;bf184210&gt;] (ssi_port_probe [omap_ssi_port]) from [&lt;c03d4cfc&gt;] (platform_drv_probe+0x48/0xa4)
[   30.241424] [&lt;c03d4cfc&gt;] (platform_drv_probe) from [&lt;c03d3678&gt;] (driver_probe_device+0x1dc/0x2a0)
[   30.250793] [&lt;c03d3678&gt;] (driver_probe_device) from [&lt;c03d37d0&gt;] (__driver_attach+0x94/0x98)
[   30.259643] [&lt;c03d37d0&gt;] (__driver_attach) from [&lt;c03d1d60&gt;] (bus_for_each_dev+0x54/0x88)
[   30.268249] [&lt;c03d1d60&gt;] (bus_for_each_dev) from [&lt;c03d2d50&gt;] (bus_add_driver+0xe8/0x1f8)
[   30.276916] [&lt;c03d2d50&gt;] (bus_add_driver) from [&lt;c03d4118&gt;] (driver_register+0x78/0xf4)
[   30.285369] [&lt;c03d4118&gt;] (driver_register) from [&lt;c03d5380&gt;] (__platform_driver_probe+0x34/0xd8)
[   30.294647] [&lt;c03d5380&gt;] (__platform_driver_probe) from [&lt;c00097e4&gt;] (do_one_initcall+0x80/0x1d8)
[   30.303985] [&lt;c00097e4&gt;] (do_one_initcall) from [&lt;c011617c&gt;] (do_init_module+0x5c/0x1cc)
[   30.312561] [&lt;c011617c&gt;] (do_init_module) from [&lt;c00c7a68&gt;] (load_module+0x18c8/0x1f0c)
[   30.320983] [&lt;c00c7a68&gt;] (load_module) from [&lt;c00c8188&gt;] (SyS_init_module+0xdc/0x150)
[   30.329223] [&lt;c00c8188&gt;] (SyS_init_module) from [&lt;c000f7e0&gt;] (ret_fast_syscall+0x0/0x1c)

Fixes: b209e047bc743 ("HSI: Introduce OMAP SSI driver")
Signed-off-by: Roger Quadros &lt;rogerq@ti.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
</entry>
<entry>
<title>hsi: fix double kfree</title>
<updated>2015-10-14T11:22:00Z</updated>
<author>
<name>Geliang Tang</name>
<email>geliangtang@163.com</email>
</author>
<published>2015-10-01T14:35:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f098a045350ecd6045f2f2d5a50fecf2a98962d7'/>
<id>urn:sha1:f098a045350ecd6045f2f2d5a50fecf2a98962d7</id>
<content type='text'>
When device_register() fails, kfree() is called in hsi_client_release(),
hence there is no need to call kfree in err3 again.

Fixes: a2aa24734d9db ("HSI: Add common DT binding for HSI client devices")
Signed-off-by: Geliang Tang &lt;geliangtang@163.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
</entry>
<entry>
<title>HSI: Fix a typo</title>
<updated>2015-09-18T21:02:08Z</updated>
<author>
<name>Jakub Wilk</name>
<email>jwilk@jwilk.net</email>
</author>
<published>2015-08-12T14:15:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c616ac28a5b392a03eaa1bbab2bdb1d8931cfdb8'/>
<id>urn:sha1:c616ac28a5b392a03eaa1bbab2bdb1d8931cfdb8</id>
<content type='text'>
Signed-off-by: Jakub Wilk &lt;jwilk@jwilk.net&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
</entry>
<entry>
<title>mm: mark most vm_operations_struct const</title>
<updated>2015-09-10T20:29:01Z</updated>
<author>
<name>Kirill A. Shutemov</name>
<email>kirill.shutemov@linux.intel.com</email>
</author>
<published>2015-09-09T22:39:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7cbea8dc0127a95226c7722a738ac6534950ef67'/>
<id>urn:sha1:7cbea8dc0127a95226c7722a738ac6534950ef67</id>
<content type='text'>
With two exceptions (drm/qxl and drm/radeon) all vm_operations_struct
structs should be constant.

Signed-off-by: Kirill A. Shutemov &lt;kirill.shutemov@linux.intel.com&gt;
Reviewed-by: Oleg Nesterov &lt;oleg@redhat.com&gt;
Cc: "H. Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Andy Lutomirski &lt;luto@amacapital.net&gt;
Cc: Dave Hansen &lt;dave.hansen@linux.intel.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Minchan Kim &lt;minchan@kernel.org&gt;
Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
