<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/net/nfc/netlink.c, branch v3.9</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>NFC: Initial Secure Element API</title>
<updated>2013-01-09T23:51:54+00:00</updated>
<author>
<name>Samuel Ortiz</name>
<email>sameo@linux.intel.com</email>
</author>
<published>2012-12-19T18:11:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=390a1bd8538132186ddb679cafe9e75b7ef7e2d2'/>
<id>390a1bd8538132186ddb679cafe9e75b7ef7e2d2</id>
<content type='text'>
Each NFC adapter can have several links to different secure elements and
that property needs to be exported by the drivers.
A secure element link can be enabled and disabled, and card emulation will
be handled by the currently active one. Otherwise card emulation will be
host implemented.

Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Each NFC adapter can have several links to different secure elements and
that property needs to be exported by the drivers.
A secure element link can be enabled and disabled, and card emulation will
be handled by the currently active one. Otherwise card emulation will be
host implemented.

Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: Extend netlink interface for LTO, RW, and MIUX parameters support</title>
<updated>2012-10-28T23:25:11+00:00</updated>
<author>
<name>Thierry Escande</name>
<email>thierry.escande@linux.intel.com</email>
</author>
<published>2012-10-17T12:43:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=52feb444a90304eb13c03115bb9758101dbb9254'/>
<id>52feb444a90304eb13c03115bb9758101dbb9254</id>
<content type='text'>
NFC_CMD_LLC_GET_PARAMS: request LTO, RW, and MIUX parameters for a device

NFC_CMD_LLC_SET_PARAMS: set one or more of LTO, RW, and MIUX parameters for
a device. LTO must be set before the link is up otherwise -EINPROGRESS is
returned. RW and MIUX can be set at anytime and will be passed in subsequent
CONNECT and CC messages. If one of the passed parameters is wrong none is
set and -EINVAL is returned.

Signed-off-by: Thierry Escande &lt;thierry.escande@linux.intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
NFC_CMD_LLC_GET_PARAMS: request LTO, RW, and MIUX parameters for a device

NFC_CMD_LLC_SET_PARAMS: set one or more of LTO, RW, and MIUX parameters for
a device. LTO must be set before the link is up otherwise -EINPROGRESS is
returned. RW and MIUX can be set at anytime and will be passed in subsequent
CONNECT and CC messages. If one of the passed parameters is wrong none is
set and -EINVAL is returned.

Signed-off-by: Thierry Escande &lt;thierry.escande@linux.intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: Fix some code style and whitespace issues</title>
<updated>2012-10-26T16:26:52+00:00</updated>
<author>
<name>Szymon Janc</name>
<email>szymon.janc@tieto.com</email>
</author>
<published>2012-10-17T13:23:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=0f450772224f99db3b8384bfb8f751889d0c4cb8'/>
<id>0f450772224f99db3b8384bfb8f751889d0c4cb8</id>
<content type='text'>
Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: Add NFC_ATTR_RF_MODE when sending device netlink properties</title>
<updated>2012-10-26T16:26:48+00:00</updated>
<author>
<name>Thierry Escande</name>
<email>thierry.escande@linux.intel.com</email>
</author>
<published>2012-10-05T09:19:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=7ad39395ab1394fc6fc8bc3693d6055ea173e226'/>
<id>7ad39395ab1394fc6fc8bc3693d6055ea173e226</id>
<content type='text'>
This is useful when getting devices to know if they're in target or
initiator mode.

Signed-off-by: Thierry Escande &lt;thierry.escande@linux.intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is useful when getting devices to know if they're in target or
initiator mode.

Signed-off-by: Thierry Escande &lt;thierry.escande@linux.intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem</title>
<updated>2012-09-28T15:11:16+00:00</updated>
<author>
<name>John W. Linville</name>
<email>linville@tuxdriver.com</email>
</author>
<published>2012-09-28T15:11:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=c487606f835a93a725bac1aefd536be98f22474d'/>
<id>c487606f835a93a725bac1aefd536be98f22474d</id>
<content type='text'>
Conflicts:
	net/nfc/netlink.c

Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Conflicts:
	net/nfc/netlink.c

Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: Fix sleeping in invalid context when netlink socket is closed</title>
<updated>2012-09-27T08:52:17+00:00</updated>
<author>
<name>Szymon Janc</name>
<email>szymon.janc@tieto.com</email>
</author>
<published>2012-09-26T12:17:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=3c0cc8aa23f4b53446bbf385d4647eec6992a2cb'/>
<id>3c0cc8aa23f4b53446bbf385d4647eec6992a2cb</id>
<content type='text'>
netlink_register_notifier requires notify functions to not sleep.
nfc_stop_poll locks device mutex and must not be called from notifier.
Create workqueue that will handle this for all devices.

BUG: sleeping function called from invalid context at kernel/mutex.c:269
in_atomic(): 0, irqs_disabled(): 0, pid: 4497, name: neard
1 lock held by neard/4497:
Pid: 4497, comm: neard Not tainted 3.5.0-999-nfc+ #5
Call Trace:
[&lt;ffffffff810952c5&gt;] __might_sleep+0x145/0x200
[&lt;ffffffff81743dde&gt;] mutex_lock_nested+0x2e/0x50
[&lt;ffffffff816ffd19&gt;] nfc_stop_poll+0x39/0xb0
[&lt;ffffffff81700a17&gt;] nfc_genl_rcv_nl_event+0x77/0xc0
[&lt;ffffffff8174aa8c&gt;] notifier_call_chain+0x5c/0x120
[&lt;ffffffff8174abd6&gt;] __atomic_notifier_call_chain+0x86/0x140
[&lt;ffffffff8174ab50&gt;] ? notifier_call_chain+0x120/0x120
[&lt;ffffffff815e1347&gt;] ? skb_dequeue+0x67/0x90
[&lt;ffffffff8174aca6&gt;] atomic_notifier_call_chain+0x16/0x20
[&lt;ffffffff8162119a&gt;] netlink_release+0x24a/0x280
[&lt;ffffffff815d7aa8&gt;] sock_release+0x28/0xa0
[&lt;ffffffff815d7be7&gt;] sock_close+0x17/0x30
[&lt;ffffffff811b2a7c&gt;] __fput+0xcc/0x250
[&lt;ffffffff811b2c0e&gt;] ____fput+0xe/0x10
[&lt;ffffffff81085009&gt;] task_work_run+0x69/0x90
[&lt;ffffffff8101b951&gt;] do_notify_resume+0x81/0xd0
[&lt;ffffffff8174ef22&gt;] int_signal+0x12/0x17

Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
netlink_register_notifier requires notify functions to not sleep.
nfc_stop_poll locks device mutex and must not be called from notifier.
Create workqueue that will handle this for all devices.

BUG: sleeping function called from invalid context at kernel/mutex.c:269
in_atomic(): 0, irqs_disabled(): 0, pid: 4497, name: neard
1 lock held by neard/4497:
Pid: 4497, comm: neard Not tainted 3.5.0-999-nfc+ #5
Call Trace:
[&lt;ffffffff810952c5&gt;] __might_sleep+0x145/0x200
[&lt;ffffffff81743dde&gt;] mutex_lock_nested+0x2e/0x50
[&lt;ffffffff816ffd19&gt;] nfc_stop_poll+0x39/0xb0
[&lt;ffffffff81700a17&gt;] nfc_genl_rcv_nl_event+0x77/0xc0
[&lt;ffffffff8174aa8c&gt;] notifier_call_chain+0x5c/0x120
[&lt;ffffffff8174abd6&gt;] __atomic_notifier_call_chain+0x86/0x140
[&lt;ffffffff8174ab50&gt;] ? notifier_call_chain+0x120/0x120
[&lt;ffffffff815e1347&gt;] ? skb_dequeue+0x67/0x90
[&lt;ffffffff8174aca6&gt;] atomic_notifier_call_chain+0x16/0x20
[&lt;ffffffff8162119a&gt;] netlink_release+0x24a/0x280
[&lt;ffffffff815d7aa8&gt;] sock_release+0x28/0xa0
[&lt;ffffffff815d7be7&gt;] sock_close+0x17/0x30
[&lt;ffffffff811b2a7c&gt;] __fput+0xcc/0x250
[&lt;ffffffff811b2c0e&gt;] ____fput+0xe/0x10
[&lt;ffffffff81085009&gt;] task_work_run+0x69/0x90
[&lt;ffffffff8101b951&gt;] do_notify_resume+0x81/0xd0
[&lt;ffffffff8174ef22&gt;] int_signal+0x12/0x17

Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>netlink: Rename pid to portid to avoid confusion</title>
<updated>2012-09-10T19:30:41+00:00</updated>
<author>
<name>Eric W. Biederman</name>
<email>ebiederm@xmission.com</email>
</author>
<published>2012-09-07T20:12:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=15e473046cb6e5d18a4d0057e61d76315230382b'/>
<id>15e473046cb6e5d18a4d0057e61d76315230382b</id>
<content type='text'>
It is a frequent mistake to confuse the netlink port identifier with a
process identifier.  Try to reduce this confusion by renaming fields
that hold port identifiers portid instead of pid.

I have carefully avoided changing the structures exported to
userspace to avoid changing the userspace API.

I have successfully built an allyesconfig kernel with this change.

Signed-off-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Acked-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is a frequent mistake to confuse the netlink port identifier with a
process identifier.  Try to reduce this confusion by renaming fields
that hold port identifiers portid instead of pid.

I have carefully avoided changing the structures exported to
userspace to avoid changing the userspace API.

I have successfully built an allyesconfig kernel with this change.

Signed-off-by: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Acked-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem</title>
<updated>2012-07-12T17:44:50+00:00</updated>
<author>
<name>John W. Linville</name>
<email>linville@tuxdriver.com</email>
</author>
<published>2012-07-12T17:44:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=38a00840638b4932152bca48098dbfa069d942a2'/>
<id>38a00840638b4932152bca48098dbfa069d942a2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: Do not return EBUSY when stopping a poll that's already stopped</title>
<updated>2012-07-09T20:42:21+00:00</updated>
<author>
<name>Samuel Ortiz</name>
<email>sameo@linux.intel.com</email>
</author>
<published>2012-06-28T14:41:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a831b9132065e1aa18acd7910d5f9c164a2f350f'/>
<id>a831b9132065e1aa18acd7910d5f9c164a2f350f</id>
<content type='text'>
We check for the polling flag before checking if the netlink PID caller
match.

Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We check for the polling flag before checking if the netlink PID caller
match.

Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: Use NLMSG_DEFAULT_SIZE in combination with nlmsg_new()</title>
<updated>2012-06-29T00:56:43+00:00</updated>
<author>
<name>Thomas Graf</name>
<email>tgraf@suug.ch</email>
</author>
<published>2012-06-28T03:57:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=58050fce3530939372e6c2f4b4beb76fcb4caa65'/>
<id>58050fce3530939372e6c2f4b4beb76fcb4caa65</id>
<content type='text'>
Using NLMSG_GOODSIZE results in multiple pages being used as
nlmsg_new() will automatically add the size of the netlink
header to the payload thus exceeding the page limit.

NLMSG_DEFAULT_SIZE takes this into account.

Signed-off-by: Thomas Graf &lt;tgraf@suug.ch&gt;
Cc: Jiri Pirko &lt;jpirko@redhat.com&gt;
Cc: Dmitry Eremin-Solenikov &lt;dbaryshkov@gmail.com&gt;
Cc: Sergey Lapin &lt;slapin@ossfans.org&gt;
Cc: Johannes Berg &lt;johannes@sipsolutions.net&gt;
Cc: Lauro Ramos Venancio &lt;lauro.venancio@openbossa.org&gt;
Cc: Aloisio Almeida Jr &lt;aloisio.almeida@openbossa.org&gt;
Cc: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
Reviewed-by: Jiri Pirko &lt;jpirko@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using NLMSG_GOODSIZE results in multiple pages being used as
nlmsg_new() will automatically add the size of the netlink
header to the payload thus exceeding the page limit.

NLMSG_DEFAULT_SIZE takes this into account.

Signed-off-by: Thomas Graf &lt;tgraf@suug.ch&gt;
Cc: Jiri Pirko &lt;jpirko@redhat.com&gt;
Cc: Dmitry Eremin-Solenikov &lt;dbaryshkov@gmail.com&gt;
Cc: Sergey Lapin &lt;slapin@ossfans.org&gt;
Cc: Johannes Berg &lt;johannes@sipsolutions.net&gt;
Cc: Lauro Ramos Venancio &lt;lauro.venancio@openbossa.org&gt;
Cc: Aloisio Almeida Jr &lt;aloisio.almeida@openbossa.org&gt;
Cc: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
Reviewed-by: Jiri Pirko &lt;jpirko@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
