<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/staging/most/aim-cdev, branch v4.9</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.9</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.9'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2016-09-23T17:00:44Z</updated>
<entry>
<title>staging: most: aim-cdev: make syscall write accept buffers of arbitrary size</title>
<updated>2016-09-23T17:00:44Z</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2016-09-23T13:20:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=da2c08714c94780d81780dd8918c71d491f672f4'/>
<id>urn:sha1:da2c08714c94780d81780dd8918c71d491f672f4</id>
<content type='text'>
This patch allows to call the write() function for synchronous and
isochronous channels with buffers of any size. The AIM simply waits for
data to fill up the MOST buffer object according to the network interface
controller specification for streaming channels, before it submits the
buffer to the HDM.

The new behavior is backward compatible to the old applications, since
all known applications needed to fill the buffer completely anyway.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: make function most_submit_mbo return void</title>
<updated>2016-09-22T09:54:46Z</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2016-09-21T12:49:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a6f9d846cc0980ef85ba9a2c863cef2f6202ac83'/>
<id>urn:sha1:a6f9d846cc0980ef85ba9a2c863cef2f6202ac83</id>
<content type='text'>
Function most_submit_mbo() causes an exception only if either the pointer
mbo or mbo-&gt;context equals NULL. From the underlying architecture's point
of view both cases must _not_ come true and would happen only, if something
has tampered with the pointers. This would render runtime code unable to
recover anyway. So, instead trying to hide that things are already
critically out of control we're better off with a WARN_ON() assertion.

This patch replaces the return type of the function most_submit_mbo() with
'void' and adds a WARN_ONCE() assertion. Additionally, code calling the
function is adapted accordingly.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: aim-cdev: destroy ida struct in case of exception</title>
<updated>2016-08-22T20:41:00Z</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2016-08-22T14:46:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1d9e3a07cb80ca7c8f4efcfcc6c4ca10790d9645'/>
<id>urn:sha1:1d9e3a07cb80ca7c8f4efcfcc6c4ca10790d9645</id>
<content type='text'>
This patch is needed to clean up the initialized ida structure in case
the function exits with an exception.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: aim-cdev: report error returned by alloc_chrdev_region</title>
<updated>2016-08-21T14:50:38Z</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2016-08-19T11:09:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=324e87b7e135c01725a9cef02cb8436f65e65f07'/>
<id>urn:sha1:324e87b7e135c01725a9cef02cb8436f65e65f07</id>
<content type='text'>
This patch forwards the error code returned by function
alloc_chrdev_region(). It is needed to stop the module
from hiding the actual cause of failure.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: aim-cdev: fix reported error codes</title>
<updated>2016-08-21T14:50:38Z</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2016-08-19T11:09:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9b28e14818ad959516e99b7ba3d1fc2e5500ca51'/>
<id>urn:sha1:9b28e14818ad959516e99b7ba3d1fc2e5500ca51</id>
<content type='text'>
Currently, the aim-cdev is returning different error codes for the same
root cause. This patch is needed to get rid of the module's inconsistency
when reporting errors.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: return error value</title>
<updated>2016-02-12T03:40:02Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2016-02-08T17:25:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ea39854712ba8a0757bc9fa6b6c17e8808bc6fda'/>
<id>urn:sha1:ea39854712ba8a0757bc9fa6b6c17e8808bc6fda</id>
<content type='text'>
On error we were returning retval, but retval is not having the error
value. We will get the error value using PTR_ERR.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: remove 2nd forward declaration of struct most_aim</title>
<updated>2016-02-08T01:34:58Z</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-12-22T09:53:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0833ac7db0034b64669ea3fc3dc36d7c9e7905b8'/>
<id>urn:sha1:0833ac7db0034b64669ea3fc3dc36d7c9e7905b8</id>
<content type='text'>
This patch removes the second forwared declaration of struct most_aim.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: rearrange function aim_write</title>
<updated>2016-02-08T01:34:58Z</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-12-22T09:53:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5adf5dc5682fa7968370a8bea773d98f1beeeddc'/>
<id>urn:sha1:5adf5dc5682fa7968370a8bea773d98f1beeeddc</id>
<content type='text'>
This patch straightens and rearranges the code of function aim_write()
of module aim-cdev.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: remove stacked_mbo</title>
<updated>2016-02-08T01:34:58Z</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-12-22T09:53:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f45b0fba43f415f69982df743dfa9b5d1b57785e'/>
<id>urn:sha1:f45b0fba43f415f69982df743dfa9b5d1b57785e</id>
<content type='text'>
This patch makes use of kfifo_peek and kfifo_skip, which renders the
variable stacked_mbo useless. It is therefore removed.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: most: change type of access_ref</title>
<updated>2016-02-08T01:34:58Z</updated>
<author>
<name>Christian Gromm</name>
<email>christian.gromm@microchip.com</email>
</author>
<published>2015-12-22T09:53:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b3c9f3c56c41cbebe7804b48ba8e6e484509c2c0'/>
<id>urn:sha1:b3c9f3c56c41cbebe7804b48ba8e6e484509c2c0</id>
<content type='text'>
This patch changes the type of the access reference from atomit_t to int.
It is needed, because the reference variable is secured by synchronization
locks and does not need to be atomic anymore.

Signed-off-by: Christian Gromm &lt;christian.gromm@microchip.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
