<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/spi/spi.c, branch linux-3.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-01-22T21:40:05Z</updated>
<entry>
<title>spi: fix parent-device reference leak</title>
<updated>2016-01-22T21:40:05Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2015-12-14T15:16:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=40ddf30ca43b50019304303949c9b2676cfbd820'/>
<id>urn:sha1:40ddf30ca43b50019304303949c9b2676cfbd820</id>
<content type='text'>
commit 157f38f993919b648187ba341bfb05d0e91ad2f6 upstream.

Fix parent-device reference leak due to SPI-core taking an unnecessary
reference to the parent when allocating the master structure, a
reference that was never released.

Note that driver core takes its own reference to the parent when the
master device is registered.

Fixes: 49dce689ad4e ("spi doesn't need class_device")
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>spi: Fix device unregistration when unregistering the bus master</title>
<updated>2012-05-11T12:14:09Z</updated>
<author>
<name>Laurent Pinchart</name>
</author>
<published>2011-12-12T00:15:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4cfa4199d07dfbb9ff3b0f84857a4c81c8b17cae'/>
<id>urn:sha1:4cfa4199d07dfbb9ff3b0f84857a4c81c8b17cae</id>
<content type='text'>
commit 178db7d30f94707efca1a189753c105ef69942ed upstream.

Device are added as children of the bus master's parent device, but
spi_unregister_master() looks for devices to unregister in the bus
master's children. This results in the child devices not being
unregistered.

Fix this by registering devices as direct children of the bus master.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>spi: Add export.h for THIS_MODULE/EXPORT_SYMBOL to spi.c</title>
<updated>2011-10-31T23:32:17Z</updated>
<author>
<name>Paul Gortmaker</name>
</author>
<published>2011-07-10T16:57:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=025ed130608766bf2a18523a1ac11a860746a4e4'/>
<id>urn:sha1:025ed130608766bf2a18523a1ac11a860746a4e4</id>
<content type='text'>
This uses both EXPORT_SYMBOL and THIS_MODULE, both which come from
the export.h file now.

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>spi: reorganize drivers</title>
<updated>2011-06-06T07:16:30Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2011-06-06T07:16:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca632f556697d45d67ed5cada7cedf3ddfe0db4b'/>
<id>urn:sha1:ca632f556697d45d67ed5cada7cedf3ddfe0db4b</id>
<content type='text'>
Sort the SPI makefile and enforce the naming convention spi_*.c for
spi drivers.

This change also rolls the contents of atmel_spi.h into the .c file
since there is only one user of that particular include file.

v2: - Use 'spi-' prefix instead of 'spi_' to match what seems to be
      be the predominant pattern for subsystem prefixes.
    - Clean up filenames in Kconfig and header comment blocks

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Acked-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>spi: Use void pointers for data in simple SPI I/O operations</title>
<updated>2011-05-20T06:43:07Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2011-05-10T22:09:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0c4a1590189b426814748d2e03b95541852b3af6'/>
<id>urn:sha1:0c4a1590189b426814748d2e03b95541852b3af6</id>
<content type='text'>
Currently the simple SPI I/O operations all take pointers to u8 * buffers
to operate on. This creates needless type compatibility issues and the
underlying spi_transfer structure uses void pointers anyway so convert the
API over to take void pointers too.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>Fix common misspellings</title>
<updated>2011-03-31T14:26:23Z</updated>
<author>
<name>Lucas De Marchi</name>
</author>
<published>2011-03-31T01:57:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25985edcedea6396277003854657b5f3cb31a628'/>
<id>urn:sha1:25985edcedea6396277003854657b5f3cb31a628</id>
<content type='text'>
Fixes generated by 'codespell' and manually reviewed.

Signed-off-by: Lucas De Marchi &lt;lucas.demarchi@profusion.mobi&gt;
</content>
</entry>
<entry>
<title>spi / PM: Support dev_pm_ops</title>
<updated>2010-12-25T14:32:27Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2010-12-25T14:32:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ae22e8c8ac39daf88ae32f047fb23825be7c646'/>
<id>urn:sha1:3ae22e8c8ac39daf88ae32f047fb23825be7c646</id>
<content type='text'>
Allow SPI drivers to use runtime PM and other dev_pm_ops features by
implementing dev_pm_ops for the bus. The existing bus specific suspend
and resume functions will be called if a driver does not provide dev_pm_ops
allowing for transition to the new model.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Signed-off-by: Rafael J. Wysocki &lt;rjw@sisk.pl&gt;
</content>
</entry>
<entry>
<title>drivers/spi/spi.c: don't release the spi device twice</title>
<updated>2010-12-23T03:43:34Z</updated>
<author>
<name>Sebastian Andrzej Siewior</name>
</author>
<published>2010-12-22T01:24:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97dbf37d89b6d387a5fe79ffe3b72c37ec12db43'/>
<id>urn:sha1:97dbf37d89b6d387a5fe79ffe3b72c37ec12db43</id>
<content type='text'>
This was fixed by David Lamparter in v2.6.36-rc5 3486008 ("spi: free
children in spi_unregister_master, not siblings") and broken again in
v2.6.37-rc1~2^2~4 during the merge of 2b9603a0 ("spi: enable
spi_board_info to be registered after spi_master").

Signed-off-by: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Signed-off-by: David Lamparter &lt;equinox@diac24.net&gt;
Cc: Grant Likely &lt;grant.likely@secretlab.ca&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>
<entry>
<title>spi: fixed odd static string conventions in core code</title>
<updated>2010-10-22T15:51:05Z</updated>
<author>
<name>Linus Walleij</name>
</author>
<published>2010-10-21T19:06:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eb288a1f45e2aa903ac8edf67dc6d59df0369fe1'/>
<id>urn:sha1:eb288a1f45e2aa903ac8edf67dc6d59df0369fe1</id>
<content type='text'>
This patch removes convention of passing a static string as a
parameter to another static string.  The convention is intended to
reduce text usage by sharing the common bits of the string, but the
implementation is inherently fragile (a change to one format string
but not the other will nullify any possible advantage), it isn't
necessarily a net win depending on what this compiler does, and it
it reduces code readability.

Signed-off-by: Linus Walleij &lt;linus.walleij@stericsson.com&gt;
[grant.likely@secretlab.ca: removed dev_dbg-&gt;dev_err hunk]
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>spi: enable spi_board_info to be registered after spi_master</title>
<updated>2010-10-22T05:52:16Z</updated>
<author>
<name>Feng Tang</name>
</author>
<published>2010-08-02T07:52:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b9603a0d7e395fb844af90fba71448bc8019077'/>
<id>urn:sha1:2b9603a0d7e395fb844af90fba71448bc8019077</id>
<content type='text'>
Currently spi_register_board_info() has to be called before its related
spi_master be registered, otherwise these board info will be just ignored.

This patch will remove this order limit, it adds a global spi master list
like the existing global board info listr. Whenever a board info or a
spi_master is registered, the spi master list or board info list
will be scanned, and a new spi device will be created if there is a
master-board info match.

Signed-off-by: Feng Tang &lt;feng.tang@intel.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
</feed>
