<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/misc/mei/client.c, branch v3.10.10</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial</title>
<updated>2013-04-30T16:36:50+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2013-04-30T16:36:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5d434fcb255dec99189f1c58a06e4f56e12bf77d'/>
<id>5d434fcb255dec99189f1c58a06e4f56e12bf77d</id>
<content type='text'>
Pull trivial tree updates from Jiri Kosina:
 "Usual stuff, mostly comment fixes, typo fixes, printk fixes and small
  code cleanups"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (45 commits)
  mm: Convert print_symbol to %pSR
  gfs2: Convert print_symbol to %pSR
  m32r: Convert print_symbol to %pSR
  iostats.txt: add easy-to-find description for field 6
  x86 cmpxchg.h: fix wrong comment
  treewide: Fix typo in printk and comments
  doc: devicetree: Fix various typos
  docbook: fix 8250 naming in device-drivers
  pata_pdc2027x: Fix compiler warning
  treewide: Fix typo in printks
  mei: Fix comments in drivers/misc/mei
  treewide: Fix typos in kernel messages
  pm44xx: Fix comment for "CONFIG_CPU_IDLE"
  doc: Fix typo "CONFIG_CGROUP_CGROUP_MEMCG_SWAP"
  mmzone: correct "pags" to "pages" in comment.
  kernel-parameters: remove outdated 'noresidual' parameter
  Remove spurious _H suffixes from ifdef comments
  sound: Remove stray pluses from Kconfig file
  radio-shark: Fix printk "CONFIG_LED_CLASS"
  doc: put proper reference to CONFIG_MODULE_SIG_ENFORCE
  ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull trivial tree updates from Jiri Kosina:
 "Usual stuff, mostly comment fixes, typo fixes, printk fixes and small
  code cleanups"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (45 commits)
  mm: Convert print_symbol to %pSR
  gfs2: Convert print_symbol to %pSR
  m32r: Convert print_symbol to %pSR
  iostats.txt: add easy-to-find description for field 6
  x86 cmpxchg.h: fix wrong comment
  treewide: Fix typo in printk and comments
  doc: devicetree: Fix various typos
  docbook: fix 8250 naming in device-drivers
  pata_pdc2027x: Fix compiler warning
  treewide: Fix typo in printks
  mei: Fix comments in drivers/misc/mei
  treewide: Fix typos in kernel messages
  pm44xx: Fix comment for "CONFIG_CPU_IDLE"
  doc: Fix typo "CONFIG_CGROUP_CGROUP_MEMCG_SWAP"
  mmzone: correct "pags" to "pages" in comment.
  kernel-parameters: remove outdated 'noresidual' parameter
  Remove spurious _H suffixes from ifdef comments
  sound: Remove stray pluses from Kconfig file
  radio-shark: Fix printk "CONFIG_LED_CLASS"
  doc: put proper reference to CONFIG_MODULE_SIG_ENFORCE
  ...
</pre>
</div>
</content>
</entry>
<entry>
<title>mei: fix reading large reposnes</title>
<updated>2013-04-19T20:38:38+00:00</updated>
<author>
<name>Tomas Winkler</name>
<email>tomas.winkler@intel.com</email>
</author>
<published>2013-04-19T19:01:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=fcb136e1ac5774909e0d85189f721b8dfa800e0f'/>
<id>fcb136e1ac5774909e0d85189f721b8dfa800e0f</id>
<content type='text'>
While writting to device is limitted to max_msg_length advertized
in client properites the read can be much longer delivered consequiting chunks.

We use krealloc to enlarge the buffer when needed.

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While writting to device is limitted to max_msg_length advertized
in client properites the read can be much longer delivered consequiting chunks.

We use krealloc to enlarge the buffer when needed.

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mei: nfc: Initial nfc implementation</title>
<updated>2013-04-11T01:56:53+00:00</updated>
<author>
<name>Samuel Ortiz</name>
<email>sameo@linux.intel.com</email>
</author>
<published>2013-04-11T01:03:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=59fcd7c63abf0340f551f487264b67ff5f7a0b86'/>
<id>59fcd7c63abf0340f551f487264b67ff5f7a0b86</id>
<content type='text'>
NFC ME device is exported through the MEI bus to be consumed by the
NFC subsystem.

NFC is represented by two mei clients: An info one and the actual
NFC one. In order to properly build the ME id we first need to retrieve
the firmware information from the info client and then disconnect from it.

Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
NFC ME device is exported through the MEI bus to be consumed by the
NFC subsystem.

NFC is represented by two mei clients: An info one and the actual
NFC one. In order to properly build the ME id we first need to retrieve
the firmware information from the info client and then disconnect from it.

Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mei: add mei_cl_write function</title>
<updated>2013-04-08T23:55:57+00:00</updated>
<author>
<name>Tomas Winkler</name>
<email>tomas.winkler@intel.com</email>
</author>
<published>2013-04-08T18:56:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4234a6deb5ab04e50cfd6d72761345727bd2de21'/>
<id>4234a6deb5ab04e50cfd6d72761345727bd2de21</id>
<content type='text'>
consolidate write code to a specific me client in mei_cl_write function
the function is called from mei device write handler and from
mei_cl bus send function

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
consolidate write code to a specific me client in mei_cl_write function
the function is called from mei device write handler and from
mei_cl bus send function

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mei: Fix comments in drivers/misc/mei</title>
<updated>2013-04-05T12:36:28+00:00</updated>
<author>
<name>Masanari Iida</name>
<email>standby24x7@gmail.com</email>
</author>
<published>2013-04-04T16:05:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=393b148f9d0e70cfcb0096985bb0f0742802929e'/>
<id>393b148f9d0e70cfcb0096985bb0f0742802929e</id>
<content type='text'>
Correct typos and fix stray comments.

Signed-off-by: Masanari Iida &lt;standby24x7@gmail.com&gt;
Acked-by: Winkler, Tomas &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Correct typos and fix stray comments.

Signed-off-by: Masanari Iida &lt;standby24x7@gmail.com&gt;
Acked-by: Winkler, Tomas &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mei: bus: Add bus related structures to mei_cl</title>
<updated>2013-03-29T15:44:12+00:00</updated>
<author>
<name>Samuel Ortiz</name>
<email>sameo@linux.intel.com</email>
</author>
<published>2013-03-27T15:29:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=a7b71bc043aded9da4cf51f85271e0779161fe22'/>
<id>a7b71bc043aded9da4cf51f85271e0779161fe22</id>
<content type='text'>
We keep track of all MEI devices on the bus through a specific linked list.
We also have a mei_device instance in the mei_cl structure.

Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We keep track of all MEI devices on the bus through a specific linked list.
We also have a mei_device instance in the mei_cl structure.

Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mei: move clients cleanup code from init.c to client.c</title>
<updated>2013-02-06T19:24:33+00:00</updated>
<author>
<name>Tomas Winkler</name>
<email>tomas.winkler@intel.com</email>
</author>
<published>2013-02-06T12:06:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=074b4c01abb68c6767612a01f41e9b4ed93d5fb8'/>
<id>074b4c01abb68c6767612a01f41e9b4ed93d5fb8</id>
<content type='text'>
during reset we clean up client data structures
we move that code into wrappers in client
and call the wrappers

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
during reset we clean up client data structures
we move that code into wrappers in client
and call the wrappers

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mei: rename to mei_host_buffer_is_empty to hbuf_is_ready</title>
<updated>2013-02-06T19:24:33+00:00</updated>
<author>
<name>Tomas Winkler</name>
<email>tomas.winkler@intel.com</email>
</author>
<published>2013-02-06T12:06:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=330dd7da5ec80e2c49c66bf353d8b4fa4fb8f5a9'/>
<id>330dd7da5ec80e2c49c66bf353d8b4fa4fb8f5a9</id>
<content type='text'>
we rename the mei_host_buffer_is_empty to keep naming
convention of hbuf and also make the query more generic
to be correct also for other under laying hardware

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
we rename the mei_host_buffer_is_empty to keep naming
convention of hbuf and also make the query more generic
to be correct also for other under laying hardware

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mei: drop the warning when cl is not initialized during unlinking</title>
<updated>2013-01-14T16:26:03+00:00</updated>
<author>
<name>Tomas Winkler</name>
<email>tomas.winkler@intel.com</email>
</author>
<published>2013-01-10T15:32:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=8e9a4a9a5c8e8765417d54ed6917c7e1e4d09f4d'/>
<id>8e9a4a9a5c8e8765417d54ed6917c7e1e4d09f4d</id>
<content type='text'>
On systems where wd and amthif is not initialized
we will hit cl-&gt;dev == NULL. This condition is okay
so we don't need to be laud about it.

Fixes the follwing warning during suspend
[  137.061985] WARNING: at drivers/misc/mei/client.c:315 mei_cl_unlink+0x86/0x90 [mei]()
[  137.061986] Hardware name: 530U3BI/530U4BI/530U4BH
[  137.062140] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_realtek joydev coretemp kvm_intel snd_hda_intel snd_hda_codec kvm arc4 iwldvm snd_hwdep i915 snd_pcm mac80211 ghash_clmulni_intel snd_page_alloc aesni_intel snd_seq_midi xts snd_seq_midi_event aes_x86_64 rfcomm snd_rawmidi parport_pc bnep lrw snd_seq uvcvideo i2c_algo_bit ppdev gf128mul iwlwifi snd_timer drm_kms_helper ablk_helper cryptd drm snd_seq_device videobuf2_vmalloc psmouse videobuf2_memops snd cfg80211 btusb videobuf2_core soundcore videodev lp bluetooth samsung_laptop wmi microcode mei serio_raw mac_hid video hid_generic lpc_ich parport usbhid hid r8169
[  137.062143] Pid: 2706, comm: kworker/u:15 Tainted: G      D W    3.8.0-rc2-next20130109-1-iniza-generic #1
[  137.062144] Call Trace:
[  137.062156]  [&lt;ffffffff8105860f&gt;] warn_slowpath_common+0x7f/0xc0
[  137.062159]  [&lt;ffffffff8135b1ea&gt;] ? ioread32+0x3a/0x40
[  137.062162]  [&lt;ffffffff8105866a&gt;] warn_slowpath_null+0x1a/0x20
[  137.062168]  [&lt;ffffffffa0076be6&gt;] mei_cl_unlink+0x86/0x90 [mei]
[  137.062173]  [&lt;ffffffffa0071325&gt;] mei_reset+0xc5/0x240 [mei]
[  137.062178]  [&lt;ffffffffa0073703&gt;] mei_pci_resume+0xa3/0x110 [mei]
[  137.062183]  [&lt;ffffffff81379cae&gt;] pci_pm_resume+0x7e/0xe0
[  137.062185]  [&lt;ffffffff81379c30&gt;] ? pci_pm_thaw+0x80/0x80
[  137.062189]  [&lt;ffffffff8145a415&gt;] dpm_run_callback.isra.6+0x25/0x50
[  137.062192]  [&lt;ffffffff8145a6cf&gt;] device_resume+0x9f/0x140
[  137.062194]  [&lt;ffffffff8145a791&gt;] async_resume+0x21/0x50
[  137.062200]  [&lt;ffffffff810858b0&gt;] async_run_entry_fn+0x90/0x1c0
[  137.062203]  [&lt;ffffffff810778e5&gt;] process_one_work+0x155/0x460
[  137.062207]  [&lt;ffffffff81078578&gt;] worker_thread+0x168/0x400
[  137.062210]  [&lt;ffffffff81078410&gt;] ? manage_workers+0x2b0/0x2b0
[  137.062214]  [&lt;ffffffff8107d9f0&gt;] kthread+0xc0/0xd0
[  137.062218]  [&lt;ffffffff8107d930&gt;] ? flush_kthread_worker+0xb0/0xb0
[  137.062222]  [&lt;ffffffff816bac6c&gt;] ret_from_fork+0x7c/0xb0
[  137.062228]  [&lt;ffffffff8107d930&gt;] ? flush_kthread_worker+0xb0/0xb0

Reported-by: Sedat Dilek &lt;sedat.dilek@gmail.com&gt;
Tested-by: Sedat Dilek &lt;sedat.dilek@gmail.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On systems where wd and amthif is not initialized
we will hit cl-&gt;dev == NULL. This condition is okay
so we don't need to be laud about it.

Fixes the follwing warning during suspend
[  137.061985] WARNING: at drivers/misc/mei/client.c:315 mei_cl_unlink+0x86/0x90 [mei]()
[  137.061986] Hardware name: 530U3BI/530U4BI/530U4BH
[  137.062140] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_realtek joydev coretemp kvm_intel snd_hda_intel snd_hda_codec kvm arc4 iwldvm snd_hwdep i915 snd_pcm mac80211 ghash_clmulni_intel snd_page_alloc aesni_intel snd_seq_midi xts snd_seq_midi_event aes_x86_64 rfcomm snd_rawmidi parport_pc bnep lrw snd_seq uvcvideo i2c_algo_bit ppdev gf128mul iwlwifi snd_timer drm_kms_helper ablk_helper cryptd drm snd_seq_device videobuf2_vmalloc psmouse videobuf2_memops snd cfg80211 btusb videobuf2_core soundcore videodev lp bluetooth samsung_laptop wmi microcode mei serio_raw mac_hid video hid_generic lpc_ich parport usbhid hid r8169
[  137.062143] Pid: 2706, comm: kworker/u:15 Tainted: G      D W    3.8.0-rc2-next20130109-1-iniza-generic #1
[  137.062144] Call Trace:
[  137.062156]  [&lt;ffffffff8105860f&gt;] warn_slowpath_common+0x7f/0xc0
[  137.062159]  [&lt;ffffffff8135b1ea&gt;] ? ioread32+0x3a/0x40
[  137.062162]  [&lt;ffffffff8105866a&gt;] warn_slowpath_null+0x1a/0x20
[  137.062168]  [&lt;ffffffffa0076be6&gt;] mei_cl_unlink+0x86/0x90 [mei]
[  137.062173]  [&lt;ffffffffa0071325&gt;] mei_reset+0xc5/0x240 [mei]
[  137.062178]  [&lt;ffffffffa0073703&gt;] mei_pci_resume+0xa3/0x110 [mei]
[  137.062183]  [&lt;ffffffff81379cae&gt;] pci_pm_resume+0x7e/0xe0
[  137.062185]  [&lt;ffffffff81379c30&gt;] ? pci_pm_thaw+0x80/0x80
[  137.062189]  [&lt;ffffffff8145a415&gt;] dpm_run_callback.isra.6+0x25/0x50
[  137.062192]  [&lt;ffffffff8145a6cf&gt;] device_resume+0x9f/0x140
[  137.062194]  [&lt;ffffffff8145a791&gt;] async_resume+0x21/0x50
[  137.062200]  [&lt;ffffffff810858b0&gt;] async_run_entry_fn+0x90/0x1c0
[  137.062203]  [&lt;ffffffff810778e5&gt;] process_one_work+0x155/0x460
[  137.062207]  [&lt;ffffffff81078578&gt;] worker_thread+0x168/0x400
[  137.062210]  [&lt;ffffffff81078410&gt;] ? manage_workers+0x2b0/0x2b0
[  137.062214]  [&lt;ffffffff8107d9f0&gt;] kthread+0xc0/0xd0
[  137.062218]  [&lt;ffffffff8107d930&gt;] ? flush_kthread_worker+0xb0/0xb0
[  137.062222]  [&lt;ffffffff816bac6c&gt;] ret_from_fork+0x7c/0xb0
[  137.062228]  [&lt;ffffffff8107d930&gt;] ? flush_kthread_worker+0xb0/0xb0

Reported-by: Sedat Dilek &lt;sedat.dilek@gmail.com&gt;
Tested-by: Sedat Dilek &lt;sedat.dilek@gmail.com&gt;
Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mei: normalize me host client linking routines</title>
<updated>2013-01-09T00:40:46+00:00</updated>
<author>
<name>Tomas Winkler</name>
<email>tomas.winkler@intel.com</email>
</author>
<published>2013-01-08T21:07:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=781d0d89224bbbc438c2c0360cfd4822bb35d280'/>
<id>781d0d89224bbbc438c2c0360cfd4822bb35d280</id>
<content type='text'>
In order we can use the same code pattern for in-kernel
and user space host clients we replace mei_cl_link_to_me
with mei_cl_link function.
We then have to keep me client lookupout of the new link function.

The unlinking cannot be yet symetric due to amthif connection
handling

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order we can use the same code pattern for in-kernel
and user space host clients we replace mei_cl_link_to_me
with mei_cl_link function.
We then have to keep me client lookupout of the new link function.

The unlinking cannot be yet symetric due to amthif connection
handling

Signed-off-by: Tomas Winkler &lt;tomas.winkler@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
