[PATCH 1/1] Staging: hv: util: Invoke cn_netlink_send() in a work context

2011-10-09 Thread K. Y. Srinivasan
Invoke cn_netlink_send() in a work context as opposed being called in the context of channel callback. On entry into the channel callback code the channel inbound spin lock is held and deferring to a work context avoids having to invoke cn_netlink_send() while holding the inbound lock. As part of

[PATCH] staging:rts_pstor:Fix SDIO issue

2011-10-09 Thread wei_wang
From: wwang Fix a bug that SDIO and SD normal card would appear simultaneously if a SDIO card inserted. Signed-off-by: wwang --- drivers/staging/rts_pstor/sd.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rts_pstor/sd.c b/drivers/st

Re: [PATCH] staging:rts_pstor:Fix SDIO issue

2011-10-09 Thread wwang
Dear Carpenter: I will resend the patch Best Regards, wwang 于 2011年10月09日 21:57, Dan Carpenter 写道: > What I'm saying is, it's confusing to add another variable which is > only subtly different from retval. Here is what it looks like after > we apply the patch. > > int reset_pass = 0; > >

Re: [PATCH 07/23] staging: xgifb: avoid direct references xgi_video_info

2011-10-09 Thread Aaro Koskinen
Hi, On Sun, 9 Oct 2011, Dan Carpenter wrote: On Sun, Oct 09, 2011 at 11:22:07PM +0300, Aaro Koskinen wrote: On Sun, 9 Oct 2011, Dan Carpenter wrote: On Sun, Oct 09, 2011 at 07:42:51PM +0300, Aaro Koskinen wrote: - switch (xgi_video_info.disp_state & DISPTYPE_DISP2) { + switch (xgi

Re: [PATCH 00/23] staging: xgifb: global/static data cleanups

2011-10-09 Thread Dan Carpenter
Reviewed-by: Dan Carpenter regards, dan carpenter ___ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Re: [PATCH 07/23] staging: xgifb: avoid direct references xgi_video_info

2011-10-09 Thread Dan Carpenter
On Sun, Oct 09, 2011 at 11:22:07PM +0300, Aaro Koskinen wrote: > Hi, > > On Sun, 9 Oct 2011, Dan Carpenter wrote: > >On Sun, Oct 09, 2011 at 07:42:51PM +0300, Aaro Koskinen wrote: > >>- switch (xgi_video_info.disp_state & DISPTYPE_DISP2) { > >>+ switch (xgifb_info->disp_state & DISPTYPE_DISP2)

Re: [PATCH 07/23] staging: xgifb: avoid direct references xgi_video_info

2011-10-09 Thread Aaro Koskinen
Hi, On Sun, 9 Oct 2011, Dan Carpenter wrote: On Sun, Oct 09, 2011 at 07:42:51PM +0300, Aaro Koskinen wrote: - switch (xgi_video_info.disp_state & DISPTYPE_DISP2) { + switch (xgifb_info->disp_state & DISPTYPE_DISP2) { This isn't related to this patch, but this data type is weird.

Re: [PATCH 00/23] staging: xgifb: global/static data cleanups

2011-10-09 Thread Dan Carpenter
Hi Arnaud, Your mandriva email address in MAINTAINERS has been dead for a long time. Do you want us to update it to a different address? regards, dan carpenter ___ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.or

Re: [PATCH 19/23] staging: xgifb: move XGINew_RAMType into vb_device_info

2011-10-09 Thread Dan Carpenter
On Sun, Oct 09, 2011 at 07:43:03PM +0300, Aaro Koskinen wrote: > + xgifb_reg_set(P3c4, > + 0x18, > + pVBInfo->SR15[2][pVBInfo->ram_type]); /* SR18 */ > xgifb_reg_set(P3c4, 0x19, 0x01); > xgifb_reg_set(P3c4, 0x16, pVBInfo->SR16[0]); > xgifb_r

Re: [PATCH 18/23] staging: xgifb: eliminate global XGI_Pr data

2011-10-09 Thread Dan Carpenter
On Sun, Oct 09, 2011 at 07:43:02PM +0300, Aaro Koskinen wrote: > @@ -2292,7 +2294,9 @@ static int __devinit xgifb_probe(struct pci_dev *pdev, > XGIbios_mode[xgifb_info->mode_idx].xres) && > (XGI21_LCDCapList[m].LVDSVDE == >

Re: [PATCH 07/23] staging: xgifb: avoid direct references xgi_video_info

2011-10-09 Thread Dan Carpenter
On Sun, Oct 09, 2011 at 07:42:51PM +0300, Aaro Koskinen wrote: > @@ -1163,17 +1166,17 @@ static int XGIfb_do_set_var(struct fb_var_screeninfo > *var, int isactive, > if (var->pixclock && htotal && vtotal) { > drate = 10 / var->pixclock; > hrate = (drate *

Re: [PATCH 07/23] staging: xgifb: avoid direct references xgi_video_info

2011-10-09 Thread Dan Carpenter
On Sun, Oct 09, 2011 at 07:42:51PM +0300, Aaro Koskinen wrote: > - switch (xgi_video_info.disp_state & DISPTYPE_DISP2) { > + switch (xgifb_info->disp_state & DISPTYPE_DISP2) { This isn't related to this patch, but this data type is weird. It would be probably be more natural to break up -

[PATCH 18/23] staging: xgifb: eliminate global XGI_Pr data

2011-10-09 Thread Aaro Koskinen
Move vb_device_info into xgifb_video_info. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h| 21 + drivers/staging/xgifb/XGI_main_26.c | 15 ++- drivers/staging/xgifb/XGIfb.h |2 ++ 3 files changed, 21 insertions(+), 17 deletions

[PATCH 23/23] staging: xgifb: make DAC tables const

2011-10-09 Thread Aaro Koskinen
DAC tables are read-only and can be made const. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_setmode.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/staging/xgifb/vb_setmode.c b/drivers/staging/xgifb/vb_setmode.c index 8f3a812..81c0cc4 1

[PATCH 22/23] staging: xgifb: make RAM type tables const

2011-10-09 Thread Aaro Koskinen
RAM type tables are read-only and can be made const. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_init.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/xgifb/vb_init.c b/drivers/staging/xgifb/vb_init.c index ce472dc..9e890a1 100644

[PATCH 14/23] staging: xgifb: eliminate default_var

2011-10-09 Thread Aaro Koskinen
Eliminate default_var and initialize needed fields of fb_info->var in probe(). Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h| 29 -- drivers/staging/xgifb/XGI_main_26.c | 56 --- 2 files changed, 32 insertions(+), 53 del

[PATCH 17/23] staging: xgifb: make XGIbios_mode const

2011-10-09 Thread Aaro Koskinen
Comments are wrong, the table is read-only and can be made const. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/xgifb/XGI_main.h b/drivers/staging/xgifb/XGI_main.h index 78f4c93..6c1f

[PATCH 16/23] staging: xgifb: eliminate filter_tb global variable

2011-10-09 Thread Aaro Koskinen
filter_tb is only used inside a single function, and it does not need to be static. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h|1 - drivers/staging/xgifb/XGI_main_26.c |3 +++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/staging/xgifb/

[PATCH 20/23] staging: xgifb: move XGINew_ChannelAB into vb_device_info

2011-10-09 Thread Aaro Koskinen
Move the memory channel info into vb_device_info. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_init.c | 52 ++-- drivers/staging/xgifb/vb_struct.h |1 + 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/drivers/staging/xgifb/vb_

[PATCH 11/23] staging: xgifb: move XGIfb_rate_idx into xgifb_video_info

2011-10-09 Thread Aaro Koskinen
The current refresh rate index should be stored in the device-specific data allocated in probe(). Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h|3 --- drivers/staging/xgifb/XGI_main_26.c | 30 ++ drivers/staging/xgifb/XGIfb.h |1

[PATCH 13/23] staging: xgifb: eliminate XGIfb_CRT2_write_enable variable

2011-10-09 Thread Aaro Koskinen
Replace XGIfb_CRT2_write_enable with IND_XGI_CRT2_WRITE_ENABLE_315. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h|3 --- drivers/staging/xgifb/XGI_main_26.c | 11 --- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/staging/xgifb/XGI_m

[PATCH 12/23] staging: xgifb: move pseudo_palette into xgifb_video_info

2011-10-09 Thread Aaro Koskinen
pseudo_palette should be dynamically allocated for each fb. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h|2 -- drivers/staging/xgifb/XGI_main_26.c |2 +- drivers/staging/xgifb/XGIfb.h |2 ++ 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a

[PATCH 19/23] staging: xgifb: move XGINew_RAMType into vb_device_info

2011-10-09 Thread Aaro Koskinen
The RAM type is device specific, so move it into vb_device_info. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_init.c | 128 drivers/staging/xgifb/vb_struct.h |2 + 2 files changed, 73 insertions(+), 57 deletions(-) diff --git a/drivers/st

[PATCH 10/23] staging: xgifb: move xgifb_mode_idx into xgifb_video_info

2011-10-09 Thread Aaro Koskinen
The current mode index should be stored in the device-specific data allocated in probe(). Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h|1 - drivers/staging/xgifb/XGI_main_26.c | 101 +++ drivers/staging/xgifb/XGIfb.h |2 + 3

[PATCH 07/23] staging: xgifb: avoid direct references xgi_video_info

2011-10-09 Thread Aaro Koskinen
Avoid direct references to global xgi_video_info. This will help changing the data from statically allocated to dynamically allocated. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main_26.c | 512 ++- 1 files changed, 263 insertions(+), 249 deletion

[PATCH 21/23] staging: xgifb: move XGINew_DataBusWidth into vb_device_info

2011-10-09 Thread Aaro Koskinen
Move the memory bus width info to vb_device_info. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/vb_init.c | 32 +++- drivers/staging/xgifb/vb_struct.h |1 + 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/drivers/staging/xgifb/vb_init

[PATCH 15/23] staging: xgifb: eliminate XGIfb_fix

2011-10-09 Thread Aaro Koskinen
Eliminate XGIfb_fix and initialize needed fields of fb_info->fix in probe(). Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h|7 --- drivers/staging/xgifb/XGI_main_26.c |6 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/staging/xgif

[PATCH 09/23] staging: xgifb: eliminate XGIfb_mode_no

2011-10-09 Thread Aaro Koskinen
We can get the information from the table with mode index. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h|1 - drivers/staging/xgifb/XGI_main_26.c | 14 ++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/staging/xgifb/XGI_main.h b/d

[PATCH 08/23] staging: xgifb: dynamically allocate xgifb_video_info

2011-10-09 Thread Aaro Koskinen
Delete global xgi_video_info and dynamically allocate the data. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main_26.c | 15 ++- drivers/staging/xgifb/XGIfb.h |3 --- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/staging/xgifb/XGI_m

[PATCH 06/23] staging: xgifb: rename struct video_info to xgifb_video_info

2011-10-09 Thread Aaro Koskinen
Rename struct video_info to xgifb_video_info. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main_26.c |4 ++-- drivers/staging/xgifb/XGIfb.h |4 ++-- drivers/staging/xgifb/vb_init.c |2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/s

[PATCH 05/23] staging: xgifb: add a global variable for the default refresh rate

2011-10-09 Thread Aaro Koskinen
Add a global variable for the default refresh rate. This is done to get rid of references to xgi_video_info before the probe routine, which should allocate the xgi_video_info dynamically in the future. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main_26.c |6 -- 1 files ch

[PATCH 01/23] staging: xgifb: use PCI drvdata

2011-10-09 Thread Aaro Koskinen
Don't access the global xgi_video_info directly in xgifb_remove(). Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main_26.c | 19 +++ 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_mai

[PATCH 03/23] staging: xgifb: eliminate global XGIhw_ext data

2011-10-09 Thread Aaro Koskinen
Move xgi_hw_device_info into xgi_video_info. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h|3 - drivers/staging/xgifb/XGI_main_26.c | 94 ++- drivers/staging/xgifb/XGIfb.h |3 + 3 files changed, 51 insertions(+), 49 deletion

[PATCH 04/23] staging: xgifb: inline XGIfb_query_VGA_config_space()

2011-10-09 Thread Aaro Koskinen
XGIfb_query_VGA_config_space() is used only once during the init and can be replaced with a single PCI configuration space read. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main_26.c | 44 +- drivers/staging/xgifb/vb_init.c | 15 ++-

[PATCH 00/23] staging: xgifb: global/static data cleanups

2011-10-09 Thread Aaro Koskinen
Hi, These are the start of cleanups for the global variable and static data usage. The driver should allocate all device-specific data in probe and release it when the module is removed. Static data is used only for the module and fb parameters. The patches are based and tested on top of the curr

[PATCH 02/23] staging: xgifb: eliminate global fb_info variable

2011-10-09 Thread Aaro Koskinen
Move fb_info into xgi_video_info. Signed-off-by: Aaro Koskinen --- drivers/staging/xgifb/XGI_main.h|3 --- drivers/staging/xgifb/XGI_main_26.c |3 +++ drivers/staging/xgifb/XGIfb.h |2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/xgifb/X

Re: [PATCH] fix drivers/staging/nvec linkage error when keyboard is disabled

2011-10-09 Thread Marc Dietrich
Hi Mikael, thanks for review. The nvec driver received some overhaul in the 3.1 release cycle and he fruids can be viewed in linux-next tree. The nvec client drivers were converted to mfd children in the mean time. This solves the build error, but is not very flexible. We are planing to move

Re: [PATCH] staging:rts_pstor:Fix SDIO issue

2011-10-09 Thread Dan Carpenter
What I'm saying is, it's confusing to add another variable which is only subtly different from retval. Here is what it looks like after we apply the patch. int reset_pass = 0; /* skip 45 lines */ retval = sd_change_bank_voltage(chip, SD_IO_3V3); if (retval != STA

Re: [PATCH] staging:rts_pstor:Fix SDIO issue

2011-10-09 Thread wwang
Dear Carpenter: Yes, the new code is exactly what I intended. As to the following code, the old system responded fully wrong. It should return STATUS_FAIL here instead. 3144 if (CHECK_PID(chip, 0x5209)) { 3145 retval = sd_change_bank_voltage(chip, SD_IO_3V3); 3146 if (retval != STATUS_SUCCESS) {

Re: [PATCH] staging:rts_pstor:Fix SDIO issue

2011-10-09 Thread Dan Carpenter
Adding the check for if (sd_check_err_code(chip, SD_NO_CARD)) is good, but introducing the new "reset_pass" variable is wrong. I don't think you are updating the new variable consistently on all paths. For example, if it's a 0x5209 chip and the code is like this: retval = sd_ch