<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/nfc/nci, branch linux-4.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-12-29T18:06:23Z</updated>
<entry>
<title>NFC: nci: memory leak in nci_core_conn_create()</title>
<updated>2015-12-29T18:06:23Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2015-12-23T22:45:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c6dc65d885b98898bf287aaf44e020077b41769f'/>
<id>urn:sha1:c6dc65d885b98898bf287aaf44e020077b41769f</id>
<content type='text'>
I've moved the check for "number_destination_params" forward
a few lines to avoid leaking "cmd".

Fixes: caa575a86ec1 ('NFC: nci: fix possible crash in nci_core_conn_create')

Acked-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: nci: Fix error check of nci_hci_create_pipe() result</title>
<updated>2015-12-29T18:06:18Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-12-23T22:45:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2a84193f14c4196ee94bf1d44c5f28bcabe7e840'/>
<id>urn:sha1:2a84193f14c4196ee94bf1d44c5f28bcabe7e840</id>
<content type='text'>
net/nfc/nci/hci.c: In function nci_hci_connect_gate :
net/nfc/nci/hci.c:679: warning: comparison is always false due to limited range of data type

In case of error, nci_hci_create_pipe() returns NCI_HCI_INVALID_PIPE,
and not a negative error code.

Correct the check to fix this.

Acked-by: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&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: nci: non-static functions can not be inline</title>
<updated>2015-10-28T05:44:45Z</updated>
<author>
<name>Robert Dolca</name>
</author>
<published>2015-10-26T11:58:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f11631748ee6973f85238109a3fa8ab8e760e5a4'/>
<id>urn:sha1:f11631748ee6973f85238109a3fa8ab8e760e5a4</id>
<content type='text'>
This fixes a build error that seems to be toochain
dependent (Not seen with gcc v5.1):

In file included from net/nfc/nci/rsp.c:36:0:
net/nfc/nci/rsp.c: In function ‘nci_rsp_packet’:
include/net/nfc/nci_core.h:355:12: error: inlining failed in call to
always_inline ‘nci_prop_rsp_packet’: function body not available
 inline int nci_prop_rsp_packet(struct nci_dev *ndev, __u16 opcode,

Signed-off-by: Robert Dolca &lt;robert.dolca@intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: NCI: allow spi driver to choose transfer clock</title>
<updated>2015-10-27T03:23:34Z</updated>
<author>
<name>Vincent Cuissard</name>
</author>
<published>2015-10-26T09:27:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2bd832459a0827b8dcf13b345380b66f92089d74'/>
<id>urn:sha1:2bd832459a0827b8dcf13b345380b66f92089d74</id>
<content type='text'>
In some cases low level drivers might want to update the
SPI transfer clock (e.g. during firmware download).

This patch adds this support. Without any modification the
driver will use the default SPI clock (from pdata or device tree).

Signed-off-by: Vincent Cuissard &lt;cuissard@marvell.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: NCI: move generic spi driver to a module</title>
<updated>2015-10-27T03:21:38Z</updated>
<author>
<name>Vincent Cuissard</name>
</author>
<published>2015-10-26T09:27:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fcd9d046fd8998cc984f2ff80e76f246ebca15b6'/>
<id>urn:sha1:fcd9d046fd8998cc984f2ff80e76f246ebca15b6</id>
<content type='text'>
SPI driver should be a module.

Signed-off-by: Vincent Cuissard &lt;cuissard@marvell.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: NCI: export nci_send_frame and nci_send_cmd function</title>
<updated>2015-10-27T03:16:14Z</updated>
<author>
<name>Vincent Cuissard</name>
</author>
<published>2015-10-26T09:27:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e5629d29470134af1954d2bbe45c4f2b73f68ee9'/>
<id>urn:sha1:e5629d29470134af1954d2bbe45c4f2b73f68ee9</id>
<content type='text'>
Export nci_send_frame and nci_send_cmd symbols to allow drivers
to use it. This is needed for example if NCI is used during
firmware download phase.

Signed-off-by: Vincent Cuissard &lt;cuissard@marvell.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: st-nci: Add few code style fixes</title>
<updated>2015-10-27T02:55:13Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-10-25T21:54:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=064d00479697907730a4aff9edf879c0ca4743f0'/>
<id>urn:sha1:064d00479697907730a4aff9edf879c0ca4743f0</id>
<content type='text'>
Add some few code style fixes.

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: netlink: Add mode parameter to deactivate_target functions</title>
<updated>2015-10-27T02:55:12Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-10-25T21:54:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=96d4581f0b3712221d6ed4a765bb6b4ea40f2b2f'/>
<id>urn:sha1:96d4581f0b3712221d6ed4a765bb6b4ea40f2b2f</id>
<content type='text'>
In order to manage in a better way the nci poll mode state machine,
add mode parameter to deactivate_target functions.
This way we can manage different target state.
mode parameter make sense only in nci core.

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: Create pipe on specific gate in nci_hci_connect_gate</title>
<updated>2015-10-26T05:53:13Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-10-25T21:54:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a1b0b9415817c14d207921582f269d03f848b69f'/>
<id>urn:sha1:a1b0b9415817c14d207921582f269d03f848b69f</id>
<content type='text'>
Some gates might need to have their pipes explicitly created.
Add a call to nci_hci_create_pipe in nci_hci_connect_gate for
every gate that is different than NCI_HCI_LINK_MGMT_GATE or
NCI_HCI_ADMIN_GATE.

In case of an error when opening a pipe, like in hci layer,
delete the pipe if it was created.

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: Call nci_hci_clear_all_pipes at HCI initial activation.</title>
<updated>2015-10-26T05:53:13Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-10-25T21:54:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8a49943f5bc5ff4f835d50451ecf2380eab44d2e'/>
<id>urn:sha1:8a49943f5bc5ff4f835d50451ecf2380eab44d2e</id>
<content type='text'>
When session_id is filled to 0xff, the pipe configuration is
probably incorrect and needs to be cleared.

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>
