]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sony-laptop: fully enable SNY controlled modems
authorMattia Dongili <malattia@linux.it>
Thu, 20 Dec 2012 22:21:08 +0000 (07:21 +0900)
committerMatthew Garrett <matthew.garrett@nebula.com>
Wed, 26 Dec 2012 16:07:31 +0000 (11:07 -0500)
The call to handlers 0x124 and 0x135 (rfkill control) seems to take a
bitmask to control various states of the device. For our rfkill we need
a fully on/off. SVZ1311Z9R/X's LTE modem needs more bits up.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=47751
Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/sony-laptop.c

index daaddec68def7e1c7cb11e4fe6d54e4193943c55..b0e1180b3342ce7c220b3ef40ed561f5471acdf2 100644 (file)
@@ -1533,7 +1533,7 @@ static int sony_nc_rfkill_set(void *data, bool blocked)
        int argument = sony_rfkill_address[(long) data] + 0x100;
 
        if (!blocked)
-               argument |= 0x030000;
+               argument |= 0x070000;
 
        return sony_call_snc_handle(sony_rfkill_handle, argument, &result);
 }