From: Mattia Dongili Date: Thu, 20 Dec 2012 22:21:08 +0000 (+0900) Subject: sony-laptop: fully enable SNY controlled modems X-Git-Tag: next-20130218~32^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6f0c8ad43071841e299692ac8003119980788012;p=karo-tx-linux.git sony-laptop: fully enable SNY controlled modems 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 Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index daaddec68def..b0e1180b3342 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c @@ -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); }