<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/spi/spi.c, branch linux-3.6.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.6.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.6.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-05-21T02:14:48Z</updated>
<entry>
<title>spi: Add "spi:" prefix to modalias attribute of spi devices</title>
<updated>2012-05-21T02:14:48Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2012-05-20T06:08:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d8e328b3bd65fdefc9c49a27ee80c28e0a44b653'/>
<id>urn:sha1:d8e328b3bd65fdefc9c49a27ee80c28e0a44b653</id>
<content type='text'>
The modalias attribute of spi devices doesn't have the "spi:" prefix
that is used in the UEVENT and in spi device drivers.  This patch adds
the prefix so the modprobe can correctly match modules to devices.

Reported-by: David Daney &lt;david.daney@cavium.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>spi: By default setup spi_masters with 1 chipselect and dynamics bus number</title>
<updated>2012-05-20T05:42:08Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2012-05-20T05:42:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1e8a52e18cfb381bc9cc1f0b720540364d2a6edd'/>
<id>urn:sha1:1e8a52e18cfb381bc9cc1f0b720540364d2a6edd</id>
<content type='text'>
Trivial simplification.  Instead of requiring spi master drivers to
always set the bus number (even when a dynamic number is desired),
this patch modifies spi_alloc_master() to initialize num_chipselect to
1 (because there will always be at least one CS) and bus_num to -1 for
dynamic allocation.  This simplifies the code needed to be written for
drivers.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>spi: Dont call prepare/unprepare transfer if not populated</title>
<updated>2012-05-11T03:23:58Z</updated>
<author>
<name>Shubhrajyoti D</name>
</author>
<published>2012-05-10T13:50:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7dfd2bd70228d1f8d468d58cb3d12ecd618479ed'/>
<id>urn:sha1:7dfd2bd70228d1f8d468d58cb3d12ecd618479ed</id>
<content type='text'>
Currently the prepare/unprepare transfer are called unconditionally.
The assumption is that every driver using the spi core queue infrastructure
has to populate the prepare and unprepare functions. This encourages
drivers to populate empty functions to prevent crashing.
This patch prevents the call to prepare/unprepare if not populated.

Signed-off-by: Shubhrajyoti D &lt;shubhrajyoti@ti.com&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
[grant.likely: fix whitespace defect]
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>spi/devicetree: Move devicetree support code into spi directory</title>
<updated>2012-04-13T16:21:39Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2012-04-07T20:16:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d57a4282d04810417c4ed2a49cbbeda8b3569b18'/>
<id>urn:sha1:d57a4282d04810417c4ed2a49cbbeda8b3569b18</id>
<content type='text'>
The SPI device tree support code isn't shared by any other subsystem.  It can
be moved into the core drivers/spi directory and the exported symbol can be
removed.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Cc: Rob Herring &lt;rob.herring@calxeda.com&gt;
</content>
</entry>
<entry>
<title>spi: remove redundant variable assignment</title>
<updated>2012-03-15T09:30:33Z</updated>
<author>
<name>Guennadi Liakhovetski</name>
</author>
<published>2012-03-14T17:37:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a66590de86483eeefc3074ab1ba1a7f45a89308e'/>
<id>urn:sha1:a66590de86483eeefc3074ab1ba1a7f45a89308e</id>
<content type='text'>
The status variable is guaranteed to be 0 at that location anyway.

Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>spi: release lock on error path in spi_pump_messages()</title>
<updated>2012-03-11T02:43:37Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2012-03-10T08:57:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9af4acc096eeb1ddd6f507d291c7c901949224a6'/>
<id>urn:sha1:9af4acc096eeb1ddd6f507d291c7c901949224a6</id>
<content type='text'>
We should release the lock here and enable IRQs before returning.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
[grant.likely: move unlock above dev_err() call]
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>spi: Mark spi_register_board_info() __devinit</title>
<updated>2012-03-09T21:41:49Z</updated>
<author>
<name>Mark Brown</name>
</author>
<published>2012-02-18T00:23:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=690fb11be34cc908ef895d16c6c1673df1b4667a'/>
<id>urn:sha1:690fb11be34cc908ef895d16c6c1673df1b4667a</id>
<content type='text'>
Some systems have SPI devices located on plugin modules which are
enumerated at runtime as devices. The drivers for these plugin modules
need to register their SPI devices at probe() time so want to be able
to call spi_register_board_info() but that function is currently marked
as __init rather than __devinit so this usage isn't legal. Change the
annotation to __devinit to handle this.

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>spi/doc: spi_master_put must be followed up by kfree</title>
<updated>2012-03-09T21:37:49Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2012-02-23T09:40:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eb4af0f5349235df2e4a5057a72fc8962d00308a'/>
<id>urn:sha1:eb4af0f5349235df2e4a5057a72fc8962d00308a</id>
<content type='text'>
Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>spi: create a message queueing infrastructure</title>
<updated>2012-03-08T02:19:48Z</updated>
<author>
<name>Linus Walleij</name>
</author>
<published>2012-02-22T09:05:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ffbbdd21329f3e15eeca6df2d4bc11c04d9d91c0'/>
<id>urn:sha1:ffbbdd21329f3e15eeca6df2d4bc11c04d9d91c0</id>
<content type='text'>
This rips the message queue in the PL022 driver out and pushes
it into (optional) common infrastructure. Drivers that want to
use the message pumping thread will need to define the new
per-messags transfer methods and leave the deprecated transfer()
method as NULL.

Most of the design is described in the documentation changes that
are included in this patch.

Since there is a queue that need to be stopped when the system
is suspending/resuming, two new calls are implemented for the
device drivers to call in their suspend()/resume() functions:
spi_master_suspend() and spi_master_resume().

ChangeLog v1-&gt;v2:
- Remove Kconfig entry and do not make the queue support optional
  at all, instead be more agressive and have it as part of the
  compulsory infrastructure.
- If the .transfer() method is implemented, delete print a small
  deprecation notice and do not start the transfer pump.
- Fix a bitrotted comment.
ChangeLog v2-&gt;v3:
- Fix up a problematic sequence courtesy of Chris Blair.
- Stop rather than destroy the queue on suspend() courtesy of
  Chris Blair.

Signed-off-by: Chris Blair &lt;chris.blair@stericsson.com&gt;
Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Tested-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Reviewed-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>spi: Fix device unregistration when unregistering the bus master</title>
<updated>2011-12-13T23:45:35Z</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=178db7d30f94707efca1a189753c105ef69942ed'/>
<id>urn:sha1:178db7d30f94707efca1a189753c105ef69942ed</id>
<content type='text'>
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;
</content>
</entry>
</feed>
