<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/hsi/controllers, branch v3.16.78</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>hsi: omap_ssi_port: Prevent warning if cawake_gpio is not defined.</title>
<updated>2015-12-13T17:49:33+00:00</updated>
<author>
<name>Roger Quadros</name>
<email>rogerq@ti.com</email>
</author>
<published>2015-10-14T10:44:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=ae5595f929ae88e87a08baad30856403975fe0e7'/>
<id>ae5595f929ae88e87a08baad30856403975fe0e7</id>
<content type='text'>
commit e74eba049356fdad6713ab66322d9aeb0e85608b upstream.

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;
Signed-off-by: Luis Henriques &lt;luis.henriques@canonical.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit e74eba049356fdad6713ab66322d9aeb0e85608b upstream.

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;
Signed-off-by: Luis Henriques &lt;luis.henriques@canonical.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>hsi: omap_ssi_port: use normal module refcounting</title>
<updated>2014-06-04T22:59:05+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2014-06-04T08:00:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=b357d7b58f379ebe8038cd97b6204f2f5c52220d'/>
<id>b357d7b58f379ebe8038cd97b6204f2f5c52220d</id>
<content type='text'>
The ref_module() function is used for internal housekeeping of the
module code, it's not normally used by subsystems or device drivers,
and the use of ref_module in the omap_ssi_port driver causes a link
build error when modules are disabled:

hsi/controllers/omap_ssi_port.c: In function 'ssi_port_probe':
hsi/controllers/omap_ssi_port.c:1119:2: error: implicit declaration of function 'ref_module' [-Werror=implicit-function-declaration]

This changes the omap_ssi_port driver to use try_module_get()
and module_put() instead, which is the normal way to ensure that
the driver providing a device used in another module does not
go away.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Sebastian Reichel &lt;sre@kernel.org&gt;
Cc: Carlos Chinea &lt;carlos.chinea@nokia.com&gt;
Cc: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ref_module() function is used for internal housekeeping of the
module code, it's not normally used by subsystems or device drivers,
and the use of ref_module in the omap_ssi_port driver causes a link
build error when modules are disabled:

hsi/controllers/omap_ssi_port.c: In function 'ssi_port_probe':
hsi/controllers/omap_ssi_port.c:1119:2: error: implicit declaration of function 'ref_module' [-Werror=implicit-function-declaration]

This changes the omap_ssi_port driver to use try_module_get()
and module_put() instead, which is the normal way to ensure that
the driver providing a device used in another module does not
go away.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Sebastian Reichel &lt;sre@kernel.org&gt;
Cc: Carlos Chinea &lt;carlos.chinea@nokia.com&gt;
Cc: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>HSI: Introduce OMAP SSI driver</title>
<updated>2014-05-15T22:54:51+00:00</updated>
<author>
<name>Sebastian Reichel</name>
<email>sre@kernel.org</email>
</author>
<published>2013-12-15T22:38:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=b209e047bc743247f74ce79e8827ae1ed556bae0'/>
<id>b209e047bc743247f74ce79e8827ae1ed556bae0</id>
<content type='text'>
Add OMAP SSI driver to the HSI subsystem.

The Synchronous Serial Interface (SSI) is a legacy version
of HSI. As in the case of HSI, it is mainly used to connect
Application engines (APE) with cellular modem engines (CMT)
in cellular handsets.

It provides a multichannel, full-duplex, multi-core communication
with no reference clock. The OMAP SSI block is capable of reaching
speeds of 110 Mbit/s.

Signed-off-by: Carlos Chinea &lt;carlos.chinea@nokia.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
Tested-By: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add OMAP SSI driver to the HSI subsystem.

The Synchronous Serial Interface (SSI) is a legacy version
of HSI. As in the case of HSI, it is mainly used to connect
Application engines (APE) with cellular modem engines (CMT)
in cellular handsets.

It provides a multichannel, full-duplex, multi-core communication
with no reference clock. The OMAP SSI block is capable of reaching
speeds of 110 Mbit/s.

Signed-off-by: Carlos Chinea &lt;carlos.chinea@nokia.com&gt;
Signed-off-by: Sebastian Reichel &lt;sre@kernel.org&gt;
Tested-By: Ivaylo Dimitrov &lt;ivo.g.dimitrov.75@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
