On Fri, Sep 25, 2009 at 10:18:21AM +0100, Alan Jenkins wrote: > Without this, the hard-blocked state will be reported incorrectly if > the hardware switch is changed while the laptop is suspended. > > Signed-off-by: Alan Jenkins <alan-jenkins@xxxxxxxxxxxxxx> Thanks Alan. Acked-by: Mattia Dongili <malattia@xxxxxxxx> > -- > > Again, this is from code inspection only. Since suspend/resume can > be tricky, please test that this change works (and is necessary). > > > diff a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c > --- a/drivers/platform/x86/sony-laptop.c > +++ b/drivers/platform/x86/sony-laptop.c > @@ -1044,6 +1044,9 @@ static int sony_nc_resume(struct acpi_device *device) > sony_backlight_update_status(sony_backlight_device) < 0) > printk(KERN_WARNING DRV_PFX "unable to restore brightness level\n"); > > + /* re-read rfkill state */ > + sony_nc_rfkill_update(); > + > return 0; > } > > > -- mattia :wq! -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html