<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/package/kernel/gpio-button-hotplug, branch v18.06.0-rc2</title>
<subtitle>MTK 20170518 : Mediatek SDK based on OpenWRT Barrier Breaker</subtitle>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/'/>
<entry>
<title>build: use KERNEL_MAKE_FLAGS for kernel file compilations</title>
<updated>2017-10-29T15:17:05+00:00</updated>
<author>
<name>Karl Vogel</name>
<email>karl.vogel@gmail.com</email>
</author>
<published>2017-10-13T09:10:03+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=76378c6b9fe6aa7fcdbbc7c050ae6392b71a72b8'/>
<id>76378c6b9fe6aa7fcdbbc7c050ae6392b71a72b8</id>
<content type='text'>
The build system already defines KERNEL_CROSS which defaults to TARGET_CROSS.
Make use of this variable for kernel makefiles.

Signed-off-by: Karl Vogel &lt;karl.vogel@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The build system already defines KERNEL_CROSS which defaults to TARGET_CROSS.
Make use of this variable for kernel makefiles.

Signed-off-by: Karl Vogel &lt;karl.vogel@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gpio-button-hotplug: leave platform_device.dev.platform_data untouched</title>
<updated>2017-08-21T19:29:52+00:00</updated>
<author>
<name>Furong Xu</name>
<email>xfr@outlook.com</email>
</author>
<published>2017-03-02T09:00:32+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=5a22df69e421246ba4653d3dd70d25d1aaa5d31c'/>
<id>5a22df69e421246ba4653d3dd70d25d1aaa5d31c</id>
<content type='text'>
get platform_data from gpio_keys_button_dev.pdata, and fix a illegal pointer
dereference like this:

[   51.143776] gpio-keys-polled gpio-keys-polled: missing poll_interval value
[   51.150852] gpio-keys-polled: probe of gpio-keys-polled failed with error -22
[  828.159993] gpio-keys-polled gpio-keys-polled: no memory for button data
[  828.166821] gpio-keys-polled: probe of gpio-keys-polled failed with error -12

Signed-off-by: Furong Xu &lt;xfr@outlook.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
get platform_data from gpio_keys_button_dev.pdata, and fix a illegal pointer
dereference like this:

[   51.143776] gpio-keys-polled gpio-keys-polled: missing poll_interval value
[   51.150852] gpio-keys-polled: probe of gpio-keys-polled failed with error -22
[  828.159993] gpio-keys-polled gpio-keys-polled: no memory for button data
[  828.166821] gpio-keys-polled: probe of gpio-keys-polled failed with error -12

Signed-off-by: Furong Xu &lt;xfr@outlook.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: add license tags</title>
<updated>2017-06-24T20:36:38+00:00</updated>
<author>
<name>Florian Eckert</name>
<email>fe@dev.tdt.de</email>
</author>
<published>2017-06-07T09:01:06+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=4482063c34f6f6885de548d0b40f9ed28d00729b'/>
<id>4482063c34f6f6885de548d0b40f9ed28d00729b</id>
<content type='text'>
Add licence tags where missing.

Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add licence tags where missing.

Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gpio-button-hotplug: add more buttons</title>
<updated>2016-11-27T14:34:23+00:00</updated>
<author>
<name>Mathias Kresin</name>
<email>dev@kresin.me</email>
</author>
<published>2016-10-19T19:08:14+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=d561b2f5ce2e5f8d388103804ecfa8586bcbcf0e'/>
<id>d561b2f5ce2e5f8d388103804ecfa8586bcbcf0e</id>
<content type='text'>
The keycodes are used by some boards.

Signed-off-by: Mathias Kresin &lt;dev@kresin.me&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The keycodes are used by some boards.

Signed-off-by: Mathias Kresin &lt;dev@kresin.me&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kernel/gpio-button-hotplug: drop Build/Prepare rule in favor of default one</title>
<updated>2016-10-15T09:36:52+00:00</updated>
<author>
<name>Alexandru Ardelean</name>
<email>ardeleanalex@gmail.com</email>
</author>
<published>2016-10-06T06:34:46+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=a1236a30a05b0eeaf3b52ad73b21ec2b8e0fedc1'/>
<id>a1236a30a05b0eeaf3b52ad73b21ec2b8e0fedc1</id>
<content type='text'>
Signed-off-by: Alexandru Ardelean &lt;ardeleanalex@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Alexandru Ardelean &lt;ardeleanalex@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: replace nbd@openwrt.org with nbd@nbd.name</title>
<updated>2016-06-07T06:58:42+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@nbd.name</email>
</author>
<published>2016-06-07T06:58:31+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=7eeb254cc49c4e9f837c980826ec112b9404f341'/>
<id>7eeb254cc49c4e9f837c980826ec112b9404f341</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kernel: gpio-button-hotplug: Add missing ONESHOT flag to threaded IRQ request</title>
<updated>2016-03-03T20:24:47+00:00</updated>
<author>
<name>John Crispin</name>
<email>john@openwrt.org</email>
</author>
<published>2016-03-03T20:24:47+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=4ac3411f09cc2a1a3ef32dfb656ba3b044f3f2e7'/>
<id>4ac3411f09cc2a1a3ef32dfb656ba3b044f3f2e7</id>
<content type='text'>
Without the IRQF_ONESHOT flag in devm_request_threaded_irq() call I get
following error:

  genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq 56
  gpio-keys gpio-keys: failed to request irq:56 for gpio:20

&gt;From kernel/irq/manage.c:

 The interrupt was requested with handler = NULL, so we use the default
 primary handler for it. But it does not have the oneshot flag set. In
 combination with level interrupts this is deadly, because the default
 primary handler just wakes the thread, then the irq lines is reenabled,
 but the device still has the level irq asserted. Rinse and repeat....

 While this works for edge type interrupts, we play it safe and reject
 unconditionally because we can't say for sure which type this interrupt
 really has. The type flags are unreliable as the underlying chip
 implementation can override them.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;

SVN-Revision: 48894
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Without the IRQF_ONESHOT flag in devm_request_threaded_irq() call I get
following error:

  genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq 56
  gpio-keys gpio-keys: failed to request irq:56 for gpio:20

&gt;From kernel/irq/manage.c:

 The interrupt was requested with handler = NULL, so we use the default
 primary handler for it. But it does not have the oneshot flag set. In
 combination with level interrupts this is deadly, because the default
 primary handler just wakes the thread, then the irq lines is reenabled,
 but the device still has the level irq asserted. Rinse and repeat....

 While this works for edge type interrupts, we play it safe and reject
 unconditionally because we can't say for sure which type this interrupt
 really has. The type flags are unreliable as the underlying chip
 implementation can override them.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;

SVN-Revision: 48894
</pre>
</div>
</content>
</entry>
<entry>
<title>kernel: gpio-button-hotplug: update to use threaded irq's</title>
<updated>2016-02-12T08:29:11+00:00</updated>
<author>
<name>John Crispin</name>
<email>john@openwrt.org</email>
</author>
<published>2016-02-12T08:29:11+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=69517e88bea6ac19626dbff16cdc5e4a9f55cc25'/>
<id>69517e88bea6ac19626dbff16cdc5e4a9f55cc25</id>
<content type='text'>
Many gpio controllers 'cansleep' due to the fact that they are behind busses
e.g. i2c etc.

Using threaded irq's allows for 'sleep-able' gpio's to be used.

Signed-off-by: Pushpal Sidhu &lt;psidhu@gateworks.com&gt;
Signed-off-by: Tim Harvey &lt;tharvey@gateworks.com&gt;

SVN-Revision: 48696
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Many gpio controllers 'cansleep' due to the fact that they are behind busses
e.g. i2c etc.

Using threaded irq's allows for 'sleep-able' gpio's to be used.

Signed-off-by: Pushpal Sidhu &lt;psidhu@gateworks.com&gt;
Signed-off-by: Tim Harvey &lt;tharvey@gateworks.com&gt;

SVN-Revision: 48696
</pre>
</div>
</content>
</entry>
<entry>
<title>gpio-button-hotplug: handle EPROBE_DEFER and other errors</title>
<updated>2015-07-26T15:52:17+00:00</updated>
<author>
<name>Hauke Mehrtens</name>
<email>hauke@hauke-m.de</email>
</author>
<published>2015-07-26T15:52:17+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=886764657ad978194931e0bbc425d66f83f577da'/>
<id>886764657ad978194931e0bbc425d66f83f577da</id>
<content type='text'>
of_get_gpio_flags() could return an error like EPROBE_DEFER which was
not handled before. This patch takes the code from gpio_keys_polled.c
for error handling and also improves some other unrelated small parts.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;

SVN-Revision: 46502
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
of_get_gpio_flags() could return an error like EPROBE_DEFER which was
not handled before. This patch takes the code from gpio_keys_polled.c
for error handling and also improves some other unrelated small parts.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;

SVN-Revision: 46502
</pre>
</div>
</content>
</entry>
<entry>
<title>build: drop obsolete kernel version dependencies</title>
<updated>2015-01-24T20:02:09+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2015-01-24T20:02:09+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=3120c9c9c24e3e80e646cdac2f75875e2e6a91fe'/>
<id>3120c9c9c24e3e80e646cdac2f75875e2e6a91fe</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 44110
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;

SVN-Revision: 44110
</pre>
</div>
</content>
</entry>
</feed>
