<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/vme/vme.c, branch linux-4.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-03-17T06:10:49Z</updated>
<entry>
<title>docs: Add kernel-doc comments to VME driver API</title>
<updated>2017-03-17T06:10:49Z</updated>
<author>
<name>Martyn Welch</name>
</author>
<published>2017-03-04T00:34:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b5bc980a4929bb2a449fef3e0b7131466815d0b1'/>
<id>urn:sha1:b5bc980a4929bb2a449fef3e0b7131466815d0b1</id>
<content type='text'>
Add kernel-doc comments to the VME driver API and structures. This
documentation will be integrated into the RST documentation in a later
patch.

Signed-off-by: Martyn Welch &lt;martyn.welch@collabora.co.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>VME: restore bus_remove function causing incomplete module unload</title>
<updated>2017-01-25T10:41:44Z</updated>
<author>
<name>Stefano Babic</name>
</author>
<published>2017-01-20T15:38:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9797484ba83d68f18fe1cbd964b7cd830f78f0f7'/>
<id>urn:sha1:9797484ba83d68f18fe1cbd964b7cd830f78f0f7</id>
<content type='text'>
Commit 050c3d52cc7810d9d17b8cd231708609af6876ae ("vme: make core
vme support explicitly non-modular") dropped the remove function
because it appeared as if it was for removal of the bus, which is
not supported.

However, vme_bus_remove() is called when a VME device is removed
from the bus and not when the bus is removed; as it calls the VME
device driver's cleanup function.  Without this function, the
remove() in the VME device driver is never called and VME device
drivers cannot be reloaded again.

Here we restore the remove function that was deleted in that
commit, and the reference to the function in the bus structure.

Fixes: 050c3d52cc78 ("vme: make core vme support explicitly non-modular")
Cc: Manohar Vanga &lt;manohar.vanga@gmail.com&gt;
Acked-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
Cc: devel@driverdev.osuosl.org
Signed-off-by: Stefano Babic &lt;sbabic@denx.de&gt;
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt; # 4.9
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>vme: vme_get_size potentially returning incorrect value on failure</title>
<updated>2016-10-28T12:25:18Z</updated>
<author>
<name>Martyn Welch</name>
</author>
<published>2016-10-21T16:36:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ad37567b6b886121e250036e489d82cde5e5e94'/>
<id>urn:sha1:6ad37567b6b886121e250036e489d82cde5e5e94</id>
<content type='text'>
The function vme_get_size returns the size of the window to the caller,
however it doesn't check the return value of the call to vme_master_get.

Return 0 on failure rather than anything else.

Suggested-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Martyn Welch &lt;martyn.welch@collabora.co.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>vme: make core vme support explicitly non-modular</title>
<updated>2016-08-31T11:20:16Z</updated>
<author>
<name>Paul Gortmaker</name>
</author>
<published>2016-07-03T18:05:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=050c3d52cc7810d9d17b8cd231708609af6876ae'/>
<id>urn:sha1:050c3d52cc7810d9d17b8cd231708609af6876ae</id>
<content type='text'>
The Kconfig currently controlling compilation of this code is:

drivers/vme/Kconfig:menuconfig VME_BUS
drivers/vme/Kconfig:    bool "VME bridge support"

...meaning that it currently is not being built as a module by anyone.

Lets remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.

We replace module.h and moduleparam.h (unused) with init.h and also
export.h ; the latter since this file does export some syms.

Since this is a struct bus_type and not a platform_driver, we don't
have any ".suppress_bind_attrs" to be concerned about when we
drop the ".remove" code from this file.

Since module_init was not in use by this code, the init ordering
remains unchanged with this commit.

Cc: Manohar Vanga &lt;manohar.vanga@gmail.com&gt;
Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Acked-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>vme: change LM callback argument to void pointer</title>
<updated>2016-08-31T11:20:15Z</updated>
<author>
<name>Aaron Sierra</name>
</author>
<published>2016-04-29T21:41:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fa54b326803d91b04705a6adf0ff963593a9fe5c'/>
<id>urn:sha1:fa54b326803d91b04705a6adf0ff963593a9fe5c</id>
<content type='text'>
Make the location monitor callback function prototype more useful by
changing the argument from an integer to a void pointer.

All VME bridge drivers were simply passing the location monitor index
(e.g. 0-3) as the argument to these callbacks. It is much more useful
to pass back a pointer to data that the callback-registering driver
cares about.

There appear to be no in-kernel callers of vme_lm_attach (or
vme_lme_request for that matter), so this change only affects the VME
subsystem and bridge drivers.

This has been tested with Tsi148 hardware, but the CA91Cx42 changes
have only been compiled.

Signed-off-by: Aaron Sierra &lt;asierra@xes-inc.com&gt;
Acked-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>vme: add vme_init_bridge for common bridge init</title>
<updated>2016-05-01T21:00:00Z</updated>
<author>
<name>Aaron Sierra</name>
</author>
<published>2016-04-24T20:11:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=326071b3c985683f8a18417bed3ea2ab930a7ba1'/>
<id>urn:sha1:326071b3c985683f8a18417bed3ea2ab930a7ba1</id>
<content type='text'>
Consolidate vme_bridge structure setup that every bridge was required
to do itself. This came about because .irq_mtx is only used within the
VME core, but was required to be setup externally.

This returns the structure passed in to support shorthand like this:

    bridge = vme_init_bridge(&amp;priv-&gt;bridge);

Signed-off-by: Aaron Sierra &lt;asierra@xes-inc.com&gt;
Acked-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>vme: trivial spelling and capitalization fixes</title>
<updated>2016-05-01T21:00:00Z</updated>
<author>
<name>Aaron Sierra</name>
</author>
<published>2016-04-21T16:18:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f56c3d4f54bb2e6d542547876e3d596ef7e5fa20'/>
<id>urn:sha1:f56c3d4f54bb2e6d542547876e3d596ef7e5fa20</id>
<content type='text'>
Fix a typo in the spurious interrupt warning and consistently capitalize
VME, PCI, and DMA acronyms.

Signed-off-by: Aaron Sierra &lt;asierra@xes-inc.com&gt;
Acked-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>vme: print unhandled VME access errors</title>
<updated>2015-10-04T18:50:57Z</updated>
<author>
<name>Dmitry Kalinkin</name>
</author>
<published>2015-09-17T23:01:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=448535a35010253f21ed913a05abe3d0adb47743'/>
<id>urn:sha1:448535a35010253f21ed913a05abe3d0adb47743</id>
<content type='text'>
This will enable error messages for accesses done through mmap.

Signed-off-by: Dmitry Kalinkin &lt;dmitry.kalinkin@gmail.com&gt;
Acked-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>vme: change bus error handling scheme</title>
<updated>2015-10-04T18:50:57Z</updated>
<author>
<name>Dmitry Kalinkin</name>
</author>
<published>2015-09-17T23:01:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0b0496625715374c7d0b747268c11528e8af32a3'/>
<id>urn:sha1:0b0496625715374c7d0b747268c11528e8af32a3</id>
<content type='text'>
The current VME bus error handler adds errors to the bridge error list.
vme_master_{read,write} then traverses that list to look for relevant
errors.

Such scheme didn't work well for accesses going through vme_master_mmap
because they would also allocate a vme_bus_error, but have no way to do
vme_clear_errors call to free that memory.

This changes the error handling process to be other way around: now
vme_master_{read,write} defines a window in VME address space that will
catch possible errors.  VME bus error interrupt only traverses these
windows and marks those that had errors in them.

Signed-off-by: Dmitry Kalinkin &lt;dmitry.kalinkin@gmail.com&gt;
Cc: Igor Alekseev &lt;igor.alekseev@itep.ru&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>vme: include address space in error filtering</title>
<updated>2015-10-04T18:50:57Z</updated>
<author>
<name>Dmitry Kalinkin</name>
</author>
<published>2015-09-17T23:01:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=472f16f33c7d53515af83c805d4babd8a6c24a19'/>
<id>urn:sha1:472f16f33c7d53515af83c805d4babd8a6c24a19</id>
<content type='text'>
Also changes vme_bus_error_handler to take generic address modifier code
instead of raw contents of a device-specific attribute register.

Signed-off-by: Dmitry Kalinkin &lt;dmitry.kalinkin@gmail.com&gt;
Cc: Igor Alekseev &lt;igor.alekseev@itep.ru&gt;
Acked-by: Martyn Welch &lt;martyn@welchs.me.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
