<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/nfc, branch v3.12.70</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.12.70</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.12.70'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2015-06-10T11:46:23Z</updated>
<entry>
<title>NFC: pn533: fix error return code</title>
<updated>2015-06-10T11:46:23Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2015-04-05T12:06:36Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=d7ef875d4e413eaccbd550f9b638e1b9e4201dc6'/>
<id>urn:sha1:d7ef875d4e413eaccbd550f9b638e1b9e4201dc6</id>
<content type='text'>
commit 5df848f37b1d20e5dd64bea16ba9f69ed321e11b upstream.

Return a negative error code on failure.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret &lt; 0\|ret != 0\))
 { ... return ret; }
|
ret = 0
)
... when != ret = e1
    when != &amp;ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
</content>
</entry>
<entry>
<title>NFC: microread: Potential overflows in microread_target_discovered()</title>
<updated>2014-10-13T13:41:17Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2014-09-01T17:27:29Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4396eb3041acad26c79f1732367881a078bbfb86'/>
<id>urn:sha1:4396eb3041acad26c79f1732367881a078bbfb86</id>
<content type='text'>
commit d07f1e8600ccb885c8f4143402b8912f7d827bcb upstream.

Smatch says that skb-&gt;data is untrusted so we need to check to make sure
that the memcpy() doesn't overflow.

Fixes: cfad1ba87150 ('NFC: Initial support for Inside Secure microread')
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
</content>
</entry>
<entry>
<title>NFC: pn544: i2c: Add firmware download implementation for pn544</title>
<updated>2013-08-13T23:13:35Z</updated>
<author>
<name>Eric Lapuyade</name>
<email>eric.lapuyade@linux.intel.com</email>
</author>
<published>2013-07-19T12:59:45Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=06c660340f1e142b607541ece3520fff3f5d2c39'/>
<id>urn:sha1:06c660340f1e142b607541ece3520fff3f5d2c39</id>
<content type='text'>
The pn544 can enter a firmware update mode where firmware blobs can be
pushed through the i2c line and flashed on the target.
A special command allows to verify that blobs are correctly flashed and
this is what we do for every downloaded firmware blob.

Signed-off-by: Eric Lapuyade &lt;eric.lapuyade@intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: pn544: Add firmware operations hci ops</title>
<updated>2013-08-13T23:13:33Z</updated>
<author>
<name>Eric Lapuyade</name>
<email>eric.lapuyade@linux.intel.com</email>
</author>
<published>2013-07-19T12:58:39Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=8bd7fc89958c2f23a5c5d0113ff65713683041ea'/>
<id>urn:sha1:8bd7fc89958c2f23a5c5d0113ff65713683041ea</id>
<content type='text'>
The firmware operation callback is passed by the physical layer to the
hci driver during probe. All the driver does is to store it and call it
when the fw_upload hci ops is invoked.

Signed-off-by: Eric Lapuyade &lt;eric.lapuyade@intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: pn544: i2c: Add firmware download mode power-on support</title>
<updated>2013-08-13T23:08:12Z</updated>
<author>
<name>Eric Lapuyade</name>
<email>eric.lapuyade@linux.intel.com</email>
</author>
<published>2013-07-19T12:57:13Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=eab10b71a7d62d7cc6db631dba448f1d84df9b53'/>
<id>urn:sha1:eab10b71a7d62d7cc6db631dba448f1d84df9b53</id>
<content type='text'>
This is in preparation for pn544-i2c firmware download feature, where we
need to know if we're in regular or firmware upload mode.

Signed-off-by: Eric Lapuyade &lt;eric.lapuyade@intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: pn533: Add some polling entropy</title>
<updated>2013-08-13T22:35:19Z</updated>
<author>
<name>Samuel Ortiz</name>
<email>sameo@linux.intel.com</email>
</author>
<published>2013-07-03T13:14:17Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=dfccd0f580445d176acea174175b3e6518cc91f7'/>
<id>urn:sha1:dfccd0f580445d176acea174175b3e6518cc91f7</id>
<content type='text'>
By not always starting the polling loop from the same modulation, we
avoid entering infinite loops where devices exporting 2 targets (on 2
different modulations) get the same target activated over and over.
If this target is not readable (e.g. a wallet emulating a tag), we will
stay in an error loop for ever.

Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: pn533: Add delay between each poll frame</title>
<updated>2013-08-13T22:35:19Z</updated>
<author>
<name>Samuel Ortiz</name>
<email>sameo@linux.intel.com</email>
</author>
<published>2013-07-03T12:50:36Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=46f793b0413cfb234ca4faf7e598f24967e1fd3b'/>
<id>urn:sha1:46f793b0413cfb234ca4faf7e598f24967e1fd3b</id>
<content type='text'>
It seems that some pn533 firmwares go belly up when being asked to send
poll frames too frequently. Adding a 10ms delay between each of them
calm the chip down and prevent it from crashing.

Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: pn533: Store the correct frame size (normal vs ext)</title>
<updated>2013-08-13T22:35:18Z</updated>
<author>
<name>Olivier Guiter</name>
<email>olivier.guiter@linux.intel.com</email>
</author>
<published>2013-06-13T13:43:29Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=56a63c82cf82eb491af05759d9e9f9b97ca36bc2'/>
<id>urn:sha1:56a63c82cf82eb491af05759d9e9f9b97ca36bc2</id>
<content type='text'>
The extended information frame are sent by PN533 to exchange frames
larger than 255 bytes. These extended frame are very close from the
standard ones except for the header size length. On each incoming
frame, we set the correct header length, and we do that only for the
standard pn533 chipsets as the acr122 does not seem to support extended
frames properly.

Signed-off-by: Olivier Guiter &lt;olivier.guiter@linux.intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: pn533: Split large Tx frames in chunks</title>
<updated>2013-08-13T22:35:18Z</updated>
<author>
<name>Olivier Guiter</name>
<email>olivier.guiter@linux.intel.com</email>
</author>
<published>2013-06-13T13:43:28Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=963a82e07d4e1f95fc423d53912ac0a7fe643b1c'/>
<id>urn:sha1:963a82e07d4e1f95fc423d53912ac0a7fe643b1c</id>
<content type='text'>
On sending large frames (size &gt; 262), we split it in multiple chunks and
send them asynchronously with MI bit.

Signed-off-by: Olivier Guiter &lt;olivier.guiter@linux.intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: pn533: Add extended information frame decoding support</title>
<updated>2013-08-13T22:35:18Z</updated>
<author>
<name>Olivier Guiter</name>
<email>olivier.guiter@linux.intel.com</email>
</author>
<published>2013-06-13T13:43:27Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=1575b9d8668f4ecf2648a08751313c826fb6a6e9'/>
<id>urn:sha1:1575b9d8668f4ecf2648a08751313c826fb6a6e9</id>
<content type='text'>
Extended Information frames are slightly different from standard frames
as they can (theorically) handle datas up tu 64kB. PN533 firmware only
supports packet data up to 265 (incl. TFI byte)
This kind of frame are used when the pn533 wants to exchange more than
255 bytes, and this patch handles the reception of such frames.

Signed-off-by: Olivier Guiter &lt;olivier.guiter@linux.intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
</feed>
