From patchwork Thu Aug 19 19:31:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mario 'BitKoenig' Holbe X-Patchwork-Id: 120394 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7JJWqAU028114 for ; Thu, 19 Aug 2010 19:32:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751018Ab0HSTcw (ORCPT ); Thu, 19 Aug 2010 15:32:52 -0400 Received: from piggy.rz.tu-ilmenau.de ([141.24.4.8]:39273 "EHLO piggy.rz.tu-ilmenau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750999Ab0HSTcv (ORCPT ); Thu, 19 Aug 2010 15:32:51 -0400 Received: from p4FD56534.dip.t-dialin.net (vpn3.rz.tu-ilmenau.de [141.24.172.3]) by piggy.rz.tu-ilmenau.de (8.13.7/8.13.7/Debian-2) with ESMTP id o7JJVpt7014175; Thu, 19 Aug 2010 21:31:51 +0200 Received: from darkside.kls.lan (root@darkside.kls.lan [IPv6:2001:6f8:90c:12:21e:8cff:fecf:cfad]) by p4FD56534.dip.t-dialin.net (8.14.3/8.14.3) with ESMTP id o7JJVqNO025712; Thu, 19 Aug 2010 21:31:52 +0200 Received: from darkside.kls.lan (holbe@localhost [IPv6:::1]) by darkside.kls.lan (8.14.3/8.14.3) with ESMTP id o7JJVpq3011113; Thu, 19 Aug 2010 21:31:51 +0200 Received: (from holbe@localhost) by darkside.kls.lan (8.14.3/8.14.3) id o7JJVkTH011102; Thu, 19 Aug 2010 21:31:46 +0200 Date: Thu, 19 Aug 2010 21:31:46 +0200 From: "Mario 'BitKoenig' Holbe" To: Ike Panhc Cc: David Woodhouse , "platform-driver-x86@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" , Thomas Renninger , Alan Cox , Andrew Morton , Corentin Chary , Randy Dunlap , "Brown, Len" , Matthew Garrett Subject: Re: [PATCH 0/8] [Resend] ideapad: using EC command to control rf/camera power Message-ID: <20100819193146.GB32665@darkside.kls.lan> Mail-Followup-To: Mario 'BitKoenig' Holbe , Ike Panhc , David Woodhouse , "platform-driver-x86@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" , Thomas Renninger , Alan Cox , Andrew Morton , Corentin Chary , Randy Dunlap , "Brown, Len" , Matthew Garrett References: <1282120564-11324-1-git-send-email-ike.pan@canonical.com> <1282127719.2747.211.camel@localhost> <20100818155128.GA24363@darkside.kls.lan> <4C6CA31D.6030407@canonical.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4C6CA31D.6030407@canonical.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 19 Aug 2010 19:32:54 +0000 (UTC) --- ideapad_laptop.c.orig 2010-08-18 13:35:36.087735426 +0200 +++ ideapad_laptop.c 2010-08-19 20:06:59.762979357 +0200 @@ -279,11 +279,19 @@ if (read_method_int(adevice->handle, "_CFG", &cfg)) return -ENODEV; + printk(KERN_INFO "ideapad_acpi_add(): cfg=0x%x\n", cfg); + for (i = IDEAPAD_DEV_CAMERA; i < IDEAPAD_DEV_KILLSW; i++) { - if (test_bit(ideapad_rfk_data[i].cfgbit, (unsigned long *)&cfg)) + if (test_bit(ideapad_rfk_data[i].cfgbit, (unsigned long *)&cfg)) { devs_present[i] = 1; - else - devs_present[i] = 0; + printk(KERN_INFO "ideapad_acpi_add(): found: %s\n", ideapad_rfk_data[i].name); + } else { + if(ideapad_rfk_data[i].type == RFKILL_TYPE_BLUETOOTH) { + devs_present[i] = 1; + printk(KERN_INFO "ideapad_acpi_add(): forced: %s\n", ideapad_rfk_data[i].name); + } else + devs_present[i] = 0; + } } /* The hardware switch is always present */