The patch titled Subject: backlight: s6e63m0: use sleep instead of delay has been added to the -mm tree. Its filename is backlight-s6e63m0-use-sleep-instead-of-delay.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Jingoo Han <jg1.han@xxxxxxxxxxx> Subject: backlight: s6e63m0: use sleep instead of delay Replace mdelay with msleep to remove the busy loop waiting. Signed-off-by: Jingoo Han <jg1.han@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/video/backlight/s6e63m0.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff -puN drivers/video/backlight/s6e63m0.c~backlight-s6e63m0-use-sleep-instead-of-delay drivers/video/backlight/s6e63m0.c --- a/drivers/video/backlight/s6e63m0.c~backlight-s6e63m0-use-sleep-instead-of-delay +++ a/drivers/video/backlight/s6e63m0.c @@ -406,8 +406,9 @@ static int s6e63m0_panel_send_sequence(s ret = s6e63m0_spi_write(lcd, wbuf[i], wbuf[i+1]); if (ret) break; - } else - udelay(wbuf[i+1]*1000); + } else { + msleep(wbuf[i+1]); + } i += 2; } @@ -523,7 +524,7 @@ static int s6e63m0_power_on(struct s6e63 return -EFAULT; } else { pd->power_on(lcd->ld, 1); - mdelay(pd->power_on_delay); + msleep(pd->power_on_delay); } if (!pd->reset) { @@ -531,7 +532,7 @@ static int s6e63m0_power_on(struct s6e63 return -EFAULT; } else { pd->reset(lcd->ld); - mdelay(pd->reset_delay); + msleep(pd->reset_delay); } ret = s6e63m0_ldi_init(lcd); @@ -573,7 +574,7 @@ static int s6e63m0_power_off(struct s6e6 return -EIO; } - mdelay(pd->power_off_delay); + msleep(pd->power_off_delay); if (!pd->power_on) { dev_err(lcd->dev, "power_on is NULL.\n"); _ Patches currently in -mm which might be from jg1.han@xxxxxxxxxxx are origin.patch backlight-add-lms501kf03-lcd-driver.patch backlight-add-lms501kf03-lcd-driver-fix.patch backlight-ld9040-use-sleep-instead-of-delay.patch backlight-ld9040-remove-unnecessary-null-deference-check.patch backlight-ld9040-replace-efault-with-einval.patch backlight-ld9040-remove-redundant-return-variables.patch backlight-ld9040-reorder-inclusions-of-linux-xxxh.patch backlight-s6e63m0-use-lowercase-names-of-structs.patch backlight-s6e63m0-use-sleep-instead-of-delay.patch backlight-s6e63m0-remove-unnecessary-null-deference-check.patch backlight-s6e63m0-replace-efault-with-einval.patch backlight-s6e63m0-remove-redundant-variable-before_power.patch backlight-s6e63m0-reorder-inclusions-of-linux-xxxh.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html