<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/fsi, branch v4.14.263</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v4.14.263</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v4.14.263'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2019-12-31T11:37:35+00:00</updated>
<entry>
<title>fsi: core: Fix small accesses and unaligned offsets via sysfs</title>
<updated>2019-12-31T11:37:35+00:00</updated>
<author>
<name>Andrew Jeffery</name>
<email>andrew@aj.id.au</email>
</author>
<published>2019-11-08T05:19:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=57c99b5a08e72a8b6086bfdb61fb6f1c8f7c4233'/>
<id>urn:sha1:57c99b5a08e72a8b6086bfdb61fb6f1c8f7c4233</id>
<content type='text'>
[ Upstream commit 9f4c2b516b4f031e3cd0e45957f4150b3c1a083d ]

Subtracting the offset delta from four-byte alignment lead to wrapping
of the requested length where `count` is less than `off`. Generalise the
length handling to enable and optimise aligned access sizes for all
offset and size combinations. The new formula produces the following
results for given offset and count values:

    offset  count | length
    --------------+-------
    0       1     | 1
    0       2     | 2
    0       3     | 2
    0       4     | 4
    0       5     | 4
    1       1     | 1
    1       2     | 1
    1       3     | 1
    1       4     | 1
    1       5     | 1
    2       1     | 1
    2       2     | 2
    2       3     | 2
    2       4     | 2
    2       5     | 2
    3       1     | 1
    3       2     | 1
    3       3     | 1
    3       4     | 1
    3       5     | 1

We might need something like this for the cfam chardevs as well, for
example we don't currently implement any alignment restrictions /
handling in the hardware master driver.

Signed-off-by: Andrew Jeffery &lt;andrew@aj.id.au&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
Link: https://lore.kernel.org/r/20191108051945.7109-6-joel@jms.id.au
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>drivers/fsi/scom: Remove reset before every putscom</title>
<updated>2017-08-28T15:15:16+00:00</updated>
<author>
<name>Edward A. James</name>
<email>eajames@us.ibm.com</email>
</author>
<published>2017-07-20T14:55:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=47a6623b2d678bc5ce6d3fefbb26b4392bec4929'/>
<id>urn:sha1:47a6623b2d678bc5ce6d3fefbb26b4392bec4929</id>
<content type='text'>
Reset causes problems for operations requiring multiple scoms (e.g. i2c
over scom). Instead, reset scom engine during probe.

Signed-off-by: Edward A. James &lt;eajames@us.ibm.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers/fsi: add const to bin_attribute structures</title>
<updated>2017-08-28T15:15:16+00:00</updated>
<author>
<name>Bhumika Goyal</name>
<email>bhumirks@gmail.com</email>
</author>
<published>2017-08-02T14:09:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=061c0958de2e5994c81991852f5a33ffe9da810a'/>
<id>urn:sha1:061c0958de2e5994c81991852f5a33ffe9da810a</id>
<content type='text'>
Declare bin_attribute structures as const as they are only passed as an
argument to the function device_create_bin_file. This argument is of
type const, so declare the structure as const.

Signed-off-by: Bhumika Goyal &lt;bhumirks@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers/fsi: fix fsi_slave_mode prototype</title>
<updated>2017-07-17T14:13:54+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2017-06-20T20:43:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ceb8a12ff2d4b085f7cee1ac44523ee63ce51e20'/>
<id>urn:sha1:ceb8a12ff2d4b085f7cee1ac44523ee63ce51e20</id>
<content type='text'>
gcc warns about the return type of this function:

drivers/fsi/fsi-core.c:535:8: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]

This removes the 'const' attribute, as suggested by the warning.

Fixes: 2b37c3e285f9 ("drivers/fsi: Set slave SMODE to init communication")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Acked-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>fsi: core: register with postcore_initcall</title>
<updated>2017-07-17T14:13:54+00:00</updated>
<author>
<name>Joel Stanley</name>
<email>joel@jms.id.au</email>
</author>
<published>2017-07-11T07:30:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=496f8931b6460febac1dc91c03e86530f938483a'/>
<id>urn:sha1:496f8931b6460febac1dc91c03e86530f938483a</id>
<content type='text'>
When testing an i2c driver that is a fsi bus driver, I saw the following
oops:

 kernel BUG at drivers/base/driver.c:153!
 Internal error: Oops - BUG: 0 [#1] ARM

 [&lt;8027cb1c&gt;] (driver_register) from [&lt;80344e88&gt;] (fsi_driver_register+0x2c/0x38)
 [&lt;80344e88&gt;] (fsi_driver_register) from [&lt;805f5ebc&gt;] (fsi_i2c_driver_init+0x1c/0x24)
 [&lt;805f5ebc&gt;] (fsi_i2c_driver_init) from [&lt;805d1f14&gt;] (do_one_initcall+0xb4/0x170)
 [&lt;805d1f14&gt;] (do_one_initcall) from [&lt;805d20f0&gt;] (kernel_init_freeable+0x120/0x1dc)
 [&lt;805d20f0&gt;] (kernel_init_freeable) from [&lt;8043f4a8&gt;] (kernel_init+0x18/0x104)
 [&lt;8043f4a8&gt;] (kernel_init) from [&lt;8000a5e8&gt;] (ret_from_fork+0x14/0x2c)

This is because the fsi bus had not been registered. This fix registers the bus
with postcore_initcall instead, to ensure it is registered earlier on.

When the fsi core is used as a module this should not be a problem as the fsi
driver will depend on the fsi bus type symbol, and will therefore load the core
before the driver.

Fixes: 0508ad1fff11 ("drivers/fsi: Add empty fsi bus definitions")
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
Acked-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers/fsi: Add module license to core driver</title>
<updated>2017-06-09T09:52:09+00:00</updated>
<author>
<name>Christopher Bostic</name>
<email>cbostic@linux.vnet.ibm.com</email>
</author>
<published>2017-06-06T21:08:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=acb7e8f7448efef4ba1d86247cacbd201df733ab'/>
<id>urn:sha1:acb7e8f7448efef4ba1d86247cacbd201df733ab</id>
<content type='text'>
Add missing MODULE_LICENSE("GPL") to the core FSI driver.

Signed-off-by: Christopher Bostic &lt;cbostic@linux.vnet.ibm.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers/fsi: Use asynchronous slave mode</title>
<updated>2017-06-09T09:52:09+00:00</updated>
<author>
<name>Jeremy Kerr</name>
<email>jk@ozlabs.org</email>
</author>
<published>2017-06-06T21:08:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4af889b0ff78a71a0d5e3d4ce62515eca2ba4939'/>
<id>urn:sha1:4af889b0ff78a71a0d5e3d4ce62515eca2ba4939</id>
<content type='text'>
For slaves that are behind a software-clocked master, we want FSI CFAMs
to run asynchronously to the FSI clock, so set up our slaves to be in
async mode.

Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
Signed-off-by: Christopher Bostic &lt;cbostic@linux.vnet.ibm.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers/fsi: Add hub master support</title>
<updated>2017-06-09T09:52:09+00:00</updated>
<author>
<name>Christopher Bostic</name>
<email>cbostic@linux.vnet.ibm.com</email>
</author>
<published>2017-06-06T21:08:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7f9e8f767030e9d588ffc71e50ebf5164c86c8a9'/>
<id>urn:sha1:7f9e8f767030e9d588ffc71e50ebf5164c86c8a9</id>
<content type='text'>
Add an engine driver to expose a "hub" FSI master - which has a set of
control registers in the engine address space, and uses a chunk of the
slave address space for actual FSI communication.

Additional changes from Jeremy Kerr &lt;jk@ozlabs.org&gt;.

Signed-off-by: Christopher Bostic &lt;cbostic@linux.vnet.ibm.com&gt;
Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers/fsi: Add SCOM FSI client device driver</title>
<updated>2017-06-09T09:52:09+00:00</updated>
<author>
<name>Christopher Bostic</name>
<email>cbostic@linux.vnet.ibm.com</email>
</author>
<published>2017-06-06T21:08:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=680ca6dcf5c222765cb2fb22959c5282865b6655'/>
<id>urn:sha1:680ca6dcf5c222765cb2fb22959c5282865b6655</id>
<content type='text'>
Create a simple SCOM engine device driver that reads and writes
its control registers via an FSI bus.

Includes changes from Edward A. James &lt;eajames@us.ibm.com&gt;.

Signed-off-by: Christopher Bostic &lt;cbostic@linux.vnet.ibm.com&gt;
Signed-off-by: Joel Stanley &lt;joel@jms.id.au&gt;
Signed-off-by: Edward A. James &lt;eajames@us.ibm.com&gt;
Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers/fsi/gpio: Add tracepoints for GPIO master</title>
<updated>2017-06-09T09:52:09+00:00</updated>
<author>
<name>Jeremy Kerr</name>
<email>jk@ozlabs.org</email>
</author>
<published>2017-06-06T21:08:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1247cf7ab876b6f1da7028bff64b3d89130dd8e3'/>
<id>urn:sha1:1247cf7ab876b6f1da7028bff64b3d89130dd8e3</id>
<content type='text'>
Trace low level input/output GPIO operations.

Signed-off-by: Jeremy Kerr &lt;jk@ozlabs.org&gt;
Signed-off-by: Christopher Bostic &lt;cbostic@linux.vnet.ibm.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
