From patchwork Sun Aug 2 15:57:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Jenkins X-Patchwork-Id: 38768 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n72FnJdq005313 for ; Sun, 2 Aug 2009 15:57:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752919AbZHBP5F (ORCPT ); Sun, 2 Aug 2009 11:57:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752960AbZHBP5F (ORCPT ); Sun, 2 Aug 2009 11:57:05 -0400 Received: from mail-ew0-f214.google.com ([209.85.219.214]:35842 "EHLO mail-ew0-f214.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752919AbZHBP5E (ORCPT ); Sun, 2 Aug 2009 11:57:04 -0400 Received: by mail-ew0-f214.google.com with SMTP id 10so2535576ewy.37 for ; Sun, 02 Aug 2009 08:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=0D5ESGM+ADc6DHjwvURAsHOMSRKM2cYW1/iVTm2oE2U=; b=CqmPwE4P96oPgRe25eNXZ4BxFz2L/IWLKBeX8+YIbM1a4MopDB5/3jZDQ2kvCNEQSU u8xt54mlaA8v2XkZFWpXGRrkwtDQfgfx+iQvMG3CQoNa/bk2nsyV1foop9RwtEfh6e/Q FQTuujfu02sR+l7Q7HBJukVCbTZ9oy2zOgNzg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=xoKtNZLpnLZhI4nTQKaqeW3Q5yWg2RoLs3x6GGQEBEPeeQ8kUXR4h2PTGUeuiu14j3 7Y5KsRhM+uWUHib3Tlx9cMPqDk5eyQyQElpYE2bSMIbe3eyPdce7l9cL0UM4Jl0ak99w baTmZMHC5fxoDBFopr2DjCgi3JF9ujyMIVr0Q= Received: by 10.210.57.15 with SMTP id f15mr6144857eba.14.1249228624562; Sun, 02 Aug 2009 08:57:04 -0700 (PDT) Received: from ?192.168.0.2? ([86.53.68.233]) by mx.google.com with ESMTPS id 7sm7300968eyg.45.2009.08.02.08.57.03 (version=SSLv3 cipher=RC4-MD5); Sun, 02 Aug 2009 08:57:04 -0700 (PDT) Message-ID: <4A75B74E.1070309@tuffmail.co.uk> Date: Sun, 02 Aug 2009 16:57:02 +0100 From: Alan Jenkins User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: Corentin Chary CC: acpi4asus-user@lists.sourceforge.net, linux-acpi@vger.kernel.org Subject: [PATCH 6/8] eeepc-laptop: check the 3G rfkill state on resume Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org All the rfkill devices are treated as "persistent", 3G is no exception. This means their state may change over hibernation. Signed-off-by: Alan Jenkins --- drivers/platform/x86/eeepc-laptop.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 7f7573a..8a32004 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c @@ -842,6 +842,9 @@ static int eeepc_hotk_resume(struct acpi_device *device) if (ehotk->bluetooth_rfkill) rfkill_set_sw_state(ehotk->bluetooth_rfkill, get_acpi(CM_ASL_BLUETOOTH) != 1); + if (ehotk->wwan3g_rfkill) + rfkill_set_sw_state(ehotk->wwan3g_rfkill, + get_acpi(CM_ASL_3G) != 1); return 0; }