Dmitry Torokhov | 26 Nov 2009 05:10
Picon

Re: [PATCH v2] [loongson] yeeloong2f: add platform specific support

Hi Wu,

Overall impression - several drivers crammed into one module, I wonder
if it could be split somewhat. Some input-related concerns below.

On Sat, Nov 21, 2009 at 08:08:40PM +0800, Wu Zhangjin wrote:
> +
> +/* hotkey input subdriver */
> +
> +static struct input_dev *yeeloong_hotkey_dev;
> +static int event, status;
> +
> +struct key_entry {
> +	char type;		/* See KE_* below */
> +	int event;		/* event from SCI */
> +	u16 keycode;		/* KEY_* or SW_* */
> +};
> +
> +enum { KE_KEY, KE_SW, KE_END };

I am going to post the sparse keymap library shortly, this driver could
use it too...

> +
> +static struct key_entry yeeloong_keymap[] = {
> +	{KE_SW, EVENT_LID, SW_LID},
> +	/* SW_VIDEOOUT_INSERT? not included in hald-addon-input! */
> +	{KE_KEY, EVENT_CRT_DETECT, KEY_PROG1},
> +	/* Seems battery subdriver should report it */
> +	{KE_KEY, EVENT_OVERTEMP, KEY_PROG2},
(Continue reading)

TAKADA Yoshihito | 26 Nov 2009 13:24

[x86-32] apm broken

Hi.
I updated kernel for old x86 box.
APM of kernel 2.6.29 broken on my x86-32 box.
I attempt to suspend by APM at several kernels.

---2.6.27
I worried about apmd said "Suspending now" though proxy rejected
suspend, the 2.6.27 seems works correctly.

apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apmd[1828]: apmd 3.2.1 interfacing with apm driver 1.16ac and APM BIOS 1.2
apmd[1828]: Proxy exited with status 1
apmd[1828]: Suspend rejected by proxy
apmd[1828]: Suspending now
PM: Device 1-1 failed to suspend: error -22
PM: Device floppy.0 failed to suspend late: error -22
hda: no DMA mode selected
PM: Device usb1 failed to resume: error -22
PM: Device 1-1 failed to resume: error -22
apmd[1828]: Proxy exited with status 1
apmd[1828]: Suspend rejected by proxy
apmd[1828]: Suspending now
PM: Device 1-1 failed to suspend: error -22
PM: Device floppy.0 failed to suspend late: error -22
hda: no DMA mode selected
PM: Device usb1 failed to resume: error -22
PM: Device 1-1 failed to resume: error -22

---2.6.28
The 2.6.28 seems works correctly too.
(Continue reading)


Gmane