<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/nfc/st21nfcb, branch linux-4.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-05-06T20:03:50Z</updated>
<entry>
<title>NFC: st21nfcb: Retry i2c_master_send if it returns a negative value</title>
<updated>2015-05-06T20:03:50Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-03-31T06:02:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=95df5a6b8698921ca30cd55853446016a2acb891'/>
<id>urn:sha1:95df5a6b8698921ca30cd55853446016a2acb891</id>
<content type='text'>
commit d4a41d10b2cb5890aeda6b2912973b2a754b05b1 upstream.

i2c_master_send may return many negative values different than
-EREMOTEIO.
In case an i2c transaction is NACK'ed, on raspberry pi B+
kernel 3.18, -EIO is generated instead.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>NFC: nci: Move NFCEE discovery logic</title>
<updated>2015-02-04T08:15:18Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-02-03T18:48:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fa00e8fed457841cb24219dbe3cfba7d56de6317'/>
<id>urn:sha1:fa00e8fed457841cb24219dbe3cfba7d56de6317</id>
<content type='text'>
NFCEE_DISCOVER_CMD is a specified NCI command used to discover
NFCEE IDs.
Move nci_nfcee_discover() call to nci_discover_se() in order to
guarantee:
- NFCEE_DISCOVER_CMD run when the NCI state machine is initialized
- NFCEE_DISCOVER_CMD is not run in case there is not discover_se
  hook defined by a NFC device driver.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: nci: Move logical connection structure allocation</title>
<updated>2015-02-04T08:14:09Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-02-03T18:48:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=15d4a8da0e440faf589a26346c8287e1ed0abe6c'/>
<id>urn:sha1:15d4a8da0e440faf589a26346c8287e1ed0abe6c</id>
<content type='text'>
conn_info is currently allocated only after nfcee_discovery_ntf
which is not generic enough for logical connection other than
NFCEE. The corresponding conn_info is now created in
nci_core_conn_create_rsp().

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: nci: Support all destinations type when creating a connection</title>
<updated>2015-02-04T08:10:50Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-02-03T18:48:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b16ae7160a836c4a1e443ea6efca31421e86bae1'/>
<id>urn:sha1:b16ae7160a836c4a1e443ea6efca31421e86bae1</id>
<content type='text'>
The current implementation limits nci_core_conn_create_req()
to only manage NCI_DESTINATION_NFCEE.
Add new parameters to nci_core_conn_create() to support all
destination types described in the NCI specification.
Because there are some parameters with variable size dynamic
buffer allocation is needed.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: st21nfcb: Add HCI transaction event support</title>
<updated>2015-02-02T20:50:42Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-02-01T21:26:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5d1ceb7f5e56aeec0d541a76293ba3de5af78795'/>
<id>urn:sha1:5d1ceb7f5e56aeec0d541a76293ba3de5af78795</id>
<content type='text'>
The transaction notifies the host (DH) that an action
is required to manage a specific Secure Element application.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: st21nfcb: Add support for secure element</title>
<updated>2015-02-02T20:50:40Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-02-01T21:26:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8ae01f7967718ac9ed800a99964f88c0c8b07e11'/>
<id>urn:sha1:8ae01f7967718ac9ed800a99964f88c0c8b07e11</id>
<content type='text'>
The st21nfcb chipset has 3 SWP (Single Wire Protocol) lines and
supports up to 3 secure elements (UICC/eSE and µSD in the future).

Some st21nfcb firmware does not support the nci command
nci_nfcee_mode_set(NCI_NFCEE_DISABLE). For this reason, we assume
2 secures elements are always present (UICC and eSE).
They will be added to the SE list once successfully activated and
they will be available only after running through enable_se
handler or when the poll in listen mode is started.

During initialization, the white_list will be always set assuming
both UICC &amp; eSE are present.

On eSE activation, the ATR bytes are fetched to build the command
exchange timeout.

The se_io hook will allow to transfer data over SWP. 2 kind of
events may appear data is sent over:
- ST21NFCB_EVT_TRANSMIT_DATA when receiving an apdu answer
- ST21NFCB_EVT_WTX_REQUEST when the secure element needs more time
  than expected to process a command. If this timeout expires, we
  send a software reset, and then a hardware one if it still fails.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: st21nfcb: Fix "NULL pointer dereference" possible error</title>
<updated>2015-01-26T22:14:34Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-01-25T22:33:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7274496f2e1e799dbc260d7465e32077cb1a3fd6'/>
<id>urn:sha1:7274496f2e1e799dbc260d7465e32077cb1a3fd6</id>
<content type='text'>
When the platform with CONFIG_ST21NFCB_I2C=y without any st21nfcb component
physically connected a:
"Unable to handle kernel NULL pointer dereference at virtual address" may
show up at driver initialization phase.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: st21nfcb: Avoid use of skb after free</title>
<updated>2015-01-26T22:14:33Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-01-25T22:33:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=20842466ec6d823ae9d3991b86527b6a1460ec63'/>
<id>urn:sha1:20842466ec6d823ae9d3991b86527b6a1460ec63</id>
<content type='text'>
Do not insert in send queue the skb that contains unknown Packet Control
Byte

Acked-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Anda-Maria Nicolae &lt;anda-maria.nicolae@intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: st21nfcb: Fix "WARNING: invalid free of devm_ allocated data"</title>
<updated>2015-01-25T23:09:22Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2014-12-08T21:08:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9446f248d2f1006f0e5eafe5f828f6ab985f1808'/>
<id>urn:sha1:9446f248d2f1006f0e5eafe5f828f6ab985f1808</id>
<content type='text'>
ndlc pointer got allocated with devm_kzalloc in ndlc_probe function.

This gives this error message:
drivers/nfc/st21nfcb/ndlc.c:296:1-6: WARNING: invalid free of devm_ allocated data.

Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reported-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: dts: st21nfcb: Fix compatible string spelling to follow other drivers</title>
<updated>2015-01-25T23:09:22Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2014-12-08T21:08:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1a94cb6025d49bb28fd3d639b59e296b19771069'/>
<id>urn:sha1:1a94cb6025d49bb28fd3d639b59e296b19771069</id>
<content type='text'>
Other drivers are following the following compatible string format for dts:
s/_/-/

Because some devices may still use the previous string, the new corrected
string is added to the of_device_id table.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
</feed>
