<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/net/wireless/p54/p54spi.c, branch v3.18.26</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v3.18.26</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=v3.18.26'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2014-06-25T19:40:40+00:00</updated>
<entry>
<title>p54: use request_firmware_direct() for optional EEPROM override</title>
<updated>2014-06-25T19:40:40+00:00</updated>
<author>
<name>Luis R. Rodriguez</name>
<email>mcgrof@suse.com</email>
</author>
<published>2014-06-24T22:39:43+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=80140b71e0bd2d9f6762791567cfd0aa04f20419'/>
<id>urn:sha1:80140b71e0bd2d9f6762791567cfd0aa04f20419</id>
<content type='text'>
The p54 driver uses request_firmware() twice, once for actual
firmware and then another time for an optional user overide on
EEPROM, 3826.eeprom. The custom EEPROM  is optional but if not
present we'll introduce an extra lag of 60 seconds with udev
present. Annotate we don't want udev nonsense here to avoid
the lag in case its not present.

This was found with the following SmPL patch.

@ firmware_not_critical @
expression cf;
expression config_file;
expression dev;
int ret;
identifier l;
statement S;
@@

-	ret = request_firmware(&amp;cf, config_file, dev);
+	ret = request_firmware_direct(&amp;cf, config_file, dev);
	if (ret &lt; 0) {
		... when != goto l;
		    when != return ret;
		    when any
	} else {
		...
		release_firmware(cf);
		...
	}

Cc: Takashi Iwai &lt;tiwai@suse.de&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Cc: linux-wireless@vger.kernel.org
Cc: cocci@systeme.lip6.fr
Signed-off-by: Luis R. Rodriguez &lt;mcgrof@suse.com&gt;
Acked-By: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>net: p54spi: remove deprecated IRQF_DISABLED</title>
<updated>2013-10-10T17:49:28+00:00</updated>
<author>
<name>Michael Opdenacker</name>
<email>michael.opdenacker@free-electrons.com</email>
</author>
<published>2013-10-06T05:04:06+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=a9b1d9ac8c093e9ca011c105b7456e92c12e7320'/>
<id>urn:sha1:a9b1d9ac8c093e9ca011c105b7456e92c12e7320</id>
<content type='text'>
This patch proposes to remove the use of the IRQF_DISABLED flag

It's a NOOP since 2.6.35 and it will be removed one day.

Signed-off-by: Michael Opdenacker &lt;michael.opdenacker@free-electrons.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>net: wireless: p54spi: Fix commenting style</title>
<updated>2013-05-29T19:22:46+00:00</updated>
<author>
<name>Sachin Kamat</name>
<email>sachin.kamat@linaro.org</email>
</author>
<published>2013-05-29T10:01:41+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=acba7bb3c246618c8af895a548ec1b0d3da050d0'/>
<id>urn:sha1:acba7bb3c246618c8af895a548ec1b0d3da050d0</id>
<content type='text'>
Make the commenting style consistent with networking block comment
style as suggested by checkpatch.

Signed-off-by: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>net: wireless: p54spi: Use module_spi_driver macro</title>
<updated>2013-05-29T19:22:44+00:00</updated>
<author>
<name>Sachin Kamat</name>
<email>sachin.kamat@linaro.org</email>
</author>
<published>2013-05-29T10:01:40+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=b6c32f88740013b78eee68a604678b548750510f'/>
<id>urn:sha1:b6c32f88740013b78eee68a604678b548750510f</id>
<content type='text'>
module_spi_driver() eliminates some boiler plate and makes code
simpler.

Signed-off-by: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>net: wireless: p54spi: use spi_get_drvdata() and spi_set_drvdata()</title>
<updated>2013-04-07T20:48:19+00:00</updated>
<author>
<name>Jingoo Han</name>
<email>jg1.han@samsung.com</email>
</author>
<published>2013-04-05T20:36:47+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=d60c5d205094218bf7e6277ee9f8ddf90f8c1624'/>
<id>urn:sha1:d60c5d205094218bf7e6277ee9f8ddf90f8c1624</id>
<content type='text'>
Use the wrapper functions for getting and setting the driver data using
spi_device instead of using dev_{get|set}_drvdata with &amp;spi-&gt;dev, so we
can directly pass a struct spi_device.

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>p54: remove __dev* attributes</title>
<updated>2012-12-06T20:04:58+00:00</updated>
<author>
<name>Bill Pemberton</name>
<email>wfp5p@virginia.edu</email>
</author>
<published>2012-12-03T14:56:38+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=337b563f72f2e379f11411614f68f3ec73f30592'/>
<id>urn:sha1:337b563f72f2e379f11411614f68f3ec73f30592</id>
<content type='text'>
CONFIG_HOTPLUG is going away as an option.  As result the __dev*
markings will be going away.

Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.

Signed-off-by: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>p54spi: Release GPIO lines and IRQ on error in p54spi_probe</title>
<updated>2012-03-05T20:23:17+00:00</updated>
<author>
<name>Max Filippov</name>
<email>jcmvbkbc@gmail.com</email>
</author>
<published>2012-02-29T20:40:08+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=62ebeed8d00aef75eac4fd6c161cae75a41965ca'/>
<id>urn:sha1:62ebeed8d00aef75eac4fd6c161cae75a41965ca</id>
<content type='text'>
This makes it possible to reload driver if insmod has failed due to
missing firmware.

Signed-off-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Acked-by: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless</title>
<updated>2011-12-02T20:44:03+00:00</updated>
<author>
<name>John W. Linville</name>
<email>linville@tuxdriver.com</email>
</author>
<published>2011-12-02T20:44:03+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=d7a4858c0fde8383f7aa494eda0fba6bef3f2fec'/>
<id>urn:sha1:d7a4858c0fde8383f7aa494eda0fba6bef3f2fec</id>
<content type='text'>
Conflicts:
	drivers/net/wireless/iwlwifi/iwl-agn.c
	drivers/net/wireless/libertas/cfg.c
</content>
</entry>
<entry>
<title>wireless: Remove redundant spi driver bus initialization</title>
<updated>2011-11-28T19:43:58+00:00</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2011-11-24T15:29:20+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=4e3309ba95f0d642efacfcb972251b07c3d29c27'/>
<id>urn:sha1:4e3309ba95f0d642efacfcb972251b07c3d29c27</id>
<content type='text'>
In ancient times it was necessary to manually initialize the bus field of an
spi_driver to spi_bus_type. These days this is done in spi_driver_register(),
so we can drop the manual assignment.

The patch was generated using the following coccinelle semantic patch:
// &lt;smpl&gt;
@@
identifier _driver;
@@
struct spi_driver _driver = {
	.driver = {
-		.bus = &amp;spi_bus_type,
	},
};
// &lt;/smpl&gt;

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Cc: Dan Williams &lt;dcbw@redhat.com&gt;
Cc: "John W. Linville" &lt;linville@tuxdriver.com&gt;
Cc: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Cc: Luciano Coelho &lt;coelho@ti.com&gt;
Cc: libertas-dev@lists.infradead.org
Cc: linux-wireless@vger.kernel.org
Acked-by: Luciano Coelho &lt;coelho@ti.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>p54spi: Remove FIXME in op_stop</title>
<updated>2011-11-17T20:45:16+00:00</updated>
<author>
<name>Michael Büsch</name>
<email>m@bues.ch</email>
</author>
<published>2011-11-16T22:51:20+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=7adb92faa852589ad60ebd5ff94fc53c0882ebd5'/>
<id>urn:sha1:7adb92faa852589ad60ebd5ff94fc53c0882ebd5</id>
<content type='text'>
Don't use the interruptible variant of mutex_lock(). It doesn't really
need to be interruptible. This avoids nasty error handling.

Signed-off-by: Michael Buesch &lt;m@bues.ch&gt;
Acked-by: Christian Lamparter &lt;chunkeey@googlemail.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
</feed>
