Commit Graph

338 Commits

Author SHA1 Message Date
tytung
eb94bc60a6 bluetooth: updated bluetooth stack 2011-03-26 13:07:29 +08:00
tytung
839936cbf9 Revert "genirq: pm: Fix the enable ordering in resume"
This reverts commit 43b7c2a243.
2011-03-26 13:02:07 +08:00
tytung
a22bca12d1 Revert "netfilter: nf_log: avoid oops in (un)bind with invalid nfproto values"
This reverts commit 895493dad6.
2011-03-26 13:01:49 +08:00
tytung
1b9449e9a4 Fixed Bluetooth 60mA battery drain
Based on Trilu's patch http://forum.xda-developers.com/showthread.php?t=1007774
Removed some debug and unnecessary code, and added some missing code by tytung.
Thanks to Trilu for finally fixing the BT problem.
Thanks to Charansingh for the work he has done on the BT problem.
2011-03-25 23:15:05 +08:00
tytung
ea113caeb1 Revert "msm: audio: 8k: Send ACDB data after the PREPARE stage of device switch"
This reverts commit b46eec7adc.
2011-03-24 23:23:23 +08:00
tytung
9717a238a2 Revert "msm: audio: 8k: Send ACDB configuration during device switch"
This reverts commit 520bef6caf.
2011-03-24 23:22:55 +08:00
Jan Engelhardt
895493dad6 netfilter: nf_log: avoid oops in (un)bind with invalid nfproto values
commit 9ef0298a8e5730d9a46d640014c727f3b4152870 upstream.

Like many other places, we have to check that the array index is
within allowed limits, or otherwise, a kernel oops and other nastiness
can ensue when we access memory beyond the end of the array.

[ 5954.115381] BUG: unable to handle kernel paging request at 0000004000000000
[ 5954.120014] IP:  __find_logger+0x6f/0xa0
[ 5954.123979]  nf_log_bind_pf+0x2b/0x70
[ 5954.123979]  nfulnl_recv_config+0xc0/0x4a0 [nfnetlink_log]
[ 5954.123979]  nfnetlink_rcv_msg+0x12c/0x1b0 [nfnetlink]
...

The problem goes back to v2.6.30-rc1~1372~1342~31 where nf_log_bind
was decoupled from nf_log_register.

Reported-by: Miguel Di Ciurcio Filho <miguel.filho@gmail.com>,
  via irc.freenode.net/#netfilter
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-03-23 01:43:17 +08:00
Abhijeet Dharmapurikar
43b7c2a243 genirq: pm: Fix the enable ordering in resume
In suspend interrupts are disabled from 0 to NR_IRQ, in resume interrupts
should be enabled in reverse order.

Enabling parent or summary interrupts before enabling child interrupts
causes the handler of the child interrupt to run even before it is
enabled. Usually the genirq handler does the correct thing of masking
the interrupt and additionally marking the interrupt IRQ_PENDING if its
an edge triggered interrupt. However the nested handler
(handle_nested_irq()) simply ignores the interrupt causing a loss of it.

Not calling the action of an interrupt, especially if it marked wakeup,
causes the system to incorrectly go back to suspend immediately.

Change-Id: Ica30c10a975a4a7b41b97b4f21250dac80335b2b
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-03-23 01:41:36 +08:00
tytung
520bef6caf msm: audio: 8k: Send ACDB configuration during device switch
In the current code, for a device switch command, ACDB configuration
is sent to Q6 only if there is any active tx/rx session.
As per Q6 API, changing the code to send ACDB configuration after
the PREPARE stage of the device switch even if there's no active
tx/rx session.

Change-Id: I895f5da5d23f586ae829c4856a5b39b4399422ee
CRs-Fixed: 267703
Signed-off-by: Phani Kumar Allada <pallad@codeaurora.org>
2011-03-23 01:37:38 +08:00
tytung
b46eec7adc msm: audio: 8k: Send ACDB data after the PREPARE stage of device switch
As per the Q6 API, the ACDB configuration need to be sent to Q6 after the
PREPARE stage of the device switch. But in the current code it is in the
reverse order. Hence correcting the code as per the Q6 API.

Change-Id: I9f947d44f73b1fc71ddea8259ca54402edc895c2
Signed-off-by: Phani Kumar Allada <pallad@codeaurora.org>
2011-03-23 01:31:08 +08:00
tytung
038cb087d1 cLK: kernel patch to save reboot reason so is available on bootloader
By Cedesmith. http://forum.xda-developers.com/showpost.php?p=10837322&postcount=2
2011-03-16 21:09:18 +08:00
tytung
a8bf8f2567 net: wireless: bcm4329: Allocate skb with GFP_KERNEL flag if possible
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2011-03-12 17:56:55 +08:00
tytung
9bc54c5ede net: wireless: bcm4329: Disable wake irq at driver stop
Previously at driver stop interrupts were not disabled and
might cause never-ending waking up

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2011-03-12 17:55:43 +08:00
tytung
ac2d0b6e27 wifi: cleanup 2011-03-12 17:51:45 +08:00
tytung
f8d85d37a8 Merge commit 'refs/merge-requests/1' of gitorious.org:~tytung/linux-on-wince-htc/tytungs-hastarins-linux_on_wince_htc 2011-03-12 16:13:12 +08:00
Markinus
ba5148a6fb htcleo: fixed AC charging on boot and cleanups 2011-03-12 15:57:15 +08:00
Markinus
1b4ec557f5 usb: fixed compile errors 2011-03-12 15:56:28 +08:00
Markinus
f42b4692d6 usb: added usb-host functionality for MSM devices amd Leo config file 2011-03-12 15:56:21 +08:00
tytung
27f7fd8972 cLK: off_mode_charging just prevents the kernel from BUG() if off mode charging and panel is off ( and not detectable )
By cedesmith. http://forum.xda-developers.com/showpost.php?p=10837322&postcount=2
2011-03-08 00:47:45 +08:00
tytung
d1446674eb cLK: cLK_power_clllapse patch adds detection of cLK to kernel and puts the reset vector at 0x11800000 where cLK will jump (+4) at power_collapse_exit
By cedesmith. http://forum.xda-developers.com/showpost.php?p=10837322&postcount=2
2011-03-08 00:47:28 +08:00
Arne182
3cc2d57e15 Changed Voltage percentage curve and changed capacity to 2300mAh for EB 2011-03-01 22:35:03 -08:00
Arne182
fcf4ad02f1 Inital Arne's EB Support added. 2011-02-26 11:03:39 -08:00
tytung
765f3a9d95 wifi: updated WiFi driver to AOSP version to support WiFi with EAP authentication on Gingerbread.
Need Gingerbread wpa_supplicant.
2011-02-23 19:15:59 +08:00
Danijel Posilović
2d292eb9bb htcleo: some bugfixes and cleanups on backlight manager driver 2011-02-17 21:14:16 +08:00
Danijel Posilović
86ad764392 htcleo: new button backlight manager driver
- Now button backlight is managed by this driver, also it is configurable by sysfs (number of secs. after backlight will be turned off after last key-press, enable/disable this auto_off feature)
-When disabled auto_off, backlight will go off along with screen backlight.
- Sysfs for num. of seconds : /sys/devices/platform/btn_backlight_manager/off_seconds
(min: 5 sec, max: 60 sec)
- Sysfs for turn on/off auto-off feature: /sys/devices/platform/btn_backlight_manager/auto_off
(0 to disable auto-off, 1 to enable)
2011-02-17 21:13:55 +08:00
Danijel Posilović
c3c716173f - Some cleanups
- Added button backlight control via panel backlight (button backlight will go on/off with screen backlight)
- To enable/disable this just echo 0 or 1 to /sys/devices/platform/htcleo-backlight/btn_control
( echo 0 >  /sys/devices/platform/htcleo-backlight/btn_control )
- By default button control is enabled
2011-02-17 21:13:21 +08:00
tytung
2bbd73cdec Revert "htcleo: some bugfixes and cleanups on backlight manager driver"
This reverts commit 864e077367f6dc567c5bce2501856225375a3e20.
2011-02-17 21:12:34 +08:00
tytung
0162818a8a New led driver compatible with Desire (Bravo) liblights
- remove all lights.*.so files from /system/lib/hw (backup if u want) and replace with lights.qsd8k.so from Bravo ROM or download from http://www.multiupload.com/2M5T02M3TU
 - if button backlight don’t work: turn screen on, press any key and put phone under bright light ( this should activate light sensor and backlight)

Conflicts:

	arch/arm/configs/htcleo_defconfig
	arch/arm/mach-msm/board-htcleo.h

Add commit from 654ce990ab
2011-02-17 21:09:15 +08:00
Danijel Posilovic
0e29cb4fa1 fixed netfilter errors and missing dependencies 2011-02-16 18:43:25 +08:00
Markinus
d3034284d5 bma150: added calibration interface and fixed calibration for HD2 (the facedown problem) 2011-02-16 18:43:01 +08:00
Markinus
4fdb608b2a dex: changed init order to avoid crashes 2011-02-16 18:42:16 +08:00
Markinus
ed4a7e4037 htcleo: fixed proximity and lightsensor power 2011-02-16 18:42:01 +08:00
Markinus
1130964c5c yaffs: moved to newest official xyaffs driver 2011-02-16 18:41:42 +08:00
tytung
fc0148dc57 htcleo: some additions for defconfig (by Markinus) 2011-02-16 18:40:30 +08:00
Markinus
6df96f9ec9 fbconsole: we don't need two inits 2011-02-16 18:39:07 +08:00
Markinus
c37d50cafe yaffs: removed no more used file 2011-02-16 18:38:42 +08:00
Markinus
a236d1a6e3 htcleo: add support for custom DSP like from desire.
For normal use don't activate it, you need some other stuff for testing.
2011-01-29 00:34:57 +08:00
tytung
e3698da382 audio boost 2011-01-29 00:03:08 +08:00
tytung
326b2925fb htcleo: some bugfixes and cleanups on backlight manager driver
(by Danijel Posilovic)
2011-01-28 23:59:18 +08:00
Markinus
ed13833f01 htcleo:_ add missing init value 2011-01-28 23:58:33 +08:00
tytung
25be0f83ab htcleo: fixed wifi mac addresses to board device dependend one.
In NVS the mac address is always same on all devices.
We create now from encrypted device ID a custom mac address.
This is always different but for same device almays identical.
(by Markinus)
2011-01-28 23:56:07 +08:00
Markinus
27fddc92af rmnet: removed wince rmnet file and added mudule support for the normal rmnet driver. 2011-01-28 23:54:12 +08:00
Jon Benson
b02686cbac Removed overclock on bootup. It causes more issues than it's worth since we're IO bound anyway. 2010-12-16 17:46:06 +11:00
Jon Benson
3bde3f9396 Included mdeejay's overclock values even though they aren't stable for me personally. 2010-12-14 11:37:04 +11:00
rajkosto
8784a1dc59 fix gcc compiler warning in wifi driver 2010-12-13 11:58:17 +11:00
Markinus
baec40b8ca htcleo: enabled wlan n 2010-12-13 11:52:31 +11:00
Markinus
e165752c6f bcm4329: driver updates, fixed ts leg after resume with wlan on. 2010-12-13 11:52:25 +11:00
Jon Benson
a29154193a Revert "Added gauner1986's hack to force 802.11n support on."
This reverts commit 2dfc0915ee.
2010-12-13 11:52:00 +11:00
Jon Benson
51e39b55ac Another smd_tty patch closer to LeTama's since I still managed to crash things with the last one. 2010-12-06 19:57:39 +11:00
Jon Benson
28ac03478b Turned off debug options in previous patch since they're only of use for testing/debugging. 2010-12-06 16:54:48 +11:00