aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s0i3: Make sure the PMU is idle before issuing the *initial* commandnew-s0i3-2H. Peter Anvin2011-01-101-0/+1
| | | | If the PMU somehow is occupied we could otherwise miss a command.
* s0i3: Suppress S0i3 if a PMU command is hangingH. Peter Anvin2011-01-101-5/+6
| | | | | It's unclear if it's safe to try to enter S0i3 if there is already pending PMU command, so assume it is not.
* s0i3: Add a few more APIC registersH. Peter Anvin2011-01-101-1/+6
| | | | Add a few more local APIC registers which should probably be saved.
* s0i3: add __init to appropriate functionsH. Peter Anvin2010-12-221-2/+2
| | | | | | Add __init to a handful of early functions. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Revert "x86, smpboot: unstatic wake_secondary_cpu_via_init()"H. Peter Anvin2010-12-222-2/+1
| | | | | | | | | | | This reverts commit d8f2d950c7a4b073521a4022ba0ad2c814bda3b5. We don't actually need wakeup_secondary_cpu_via_init() global, only wakeup_secondary_cpu_via_init_delays(); this avoids a function call in the common case since wakeup_secondary_cpu_via_init() can be trivially inlined. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* intel_idle: fix building without CONFIG_MRST_S0I3H. Peter Anvin2010-12-221-2/+4
|
* x86, mrst: do state demotions in prepare callbackYong Wang2010-12-223-19/+46
| | | | | | | | | Check state availability and do state demotions in cpuidle_device's prepare callback function so that state statistics data gets accounted on the right state. Signed-off-by: Yong Wang <yong.y.wang@intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* s0i3: add help text to the configurationH. Peter Anvin2010-12-141-1/+5
| | | | | | Add help text to the S0i3 Kconfig entry. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* s0i3: add missing config dependencyJacob Pan2010-12-141-1/+1
| | | | | | | Needs CONFIG_SUSPEND to use suspend code Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* s0i3: avoid the "S0i3 hangfire" problem by demoting C6 to C4 if neededH. Peter Anvin2010-12-143-13/+46
| | | | | | | | | | If we tried to enter S0i3, and it failed for some reason, then we have a PMU command live which will cause C6 to be promoted to S0i3. Therefore it is unsafe to enter conventional C6 until this command has timed out, which takes about a millisecond. Accordingly, keep a state flag and demote conventional C6 to C4 during that interval. The PMU interrupt handler will clear this flag when the completion interrupt comes in.
* s0i3: allow break events, but do not STI the processorH. Peter Anvin2010-12-141-3/+18
| | | | | | We want interrupts to be break events, but we do not want them to wake us up just yet; remove sti/cli but enable them to be interrupt break events via ECX=1.
* s0i3: parameterize the delays in wakeup_secondary_cpu_via_init()H. Peter Anvin2010-12-143-4/+35
| | | | | | | | Moorestown wants shorter delays in wakeup_secondary_cpu_via_init() when used for S0i3, so parameterize them. We should probably wrap this into a mrst_wakeup_secondary_cpu() and just use that one. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* s0i3: do a cli before looping the second threadH. Peter Anvin2010-12-141-0/+2
| | | | | | No need for interrupts on an offlined processor... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* s0i3: remove simulation codeH. Peter Anvin2010-12-141-25/+0
| | | | | | We got entry working properly, no need to simulate further. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* s0i3: add support for putting the secondary thread back into C6H. Peter Anvin2010-12-143-4/+61
| | | | | | | | | | We need to SIPI the secondary thread just in order to put it back into C6, in order for S0i3 to be possible again. Sigh. Note: this really should be done on top of the unified trampoline patchset; that will cut the number of lines roughly in half. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* x86, smpboot: unstatic wake_secondary_cpu_via_init()H. Peter Anvin2010-12-142-1/+2
| | | | | | Export wake_secondary_cpu_via_init() so we can use it for S0i3. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* s0i3: set up auto clock gating during initializationH. Peter Anvin2010-12-141-0/+4
| | | | | | For s0i3 to work, and for power levels to be acceptable, we need to enable auto clock gating during initialization. The code had auto clock gating set up after transition, but not initially.
* s0i3: slightly more realistic timingsH. Peter Anvin2010-12-141-2/+2
|
* s0i3: delay the PM_CMD write until immediately before MWAITH. Peter Anvin2010-12-143-17/+21
| | | | PM_CMD has a timeout, make sure it doesn't get triggered by WBINVD.
* s0i3: don't simulate by defaultH. Peter Anvin2010-12-141-1/+1
| | | | Stub out the simulated return hack.
* s0i3: remove cpu_up/cpu_down in s0i3_poke_other_cpu()H. Peter Anvin2010-12-141-0/+2
| | | | | Until we have a proper implementation of s0i3_poke_other_cpu(), stub out the code entirely.
* s0i3: Make assembly code save and restore actually matchH. Peter Anvin2010-12-142-67/+87
| | | | | | | | Make sure we save and restore the same things ;) and that we actually restore what we thing we should be restoring. Remove the stack image definition in a header file; C code doesn't need to know about this stuff.
* s0i3: add interrupt handlerH. Peter Anvin2010-12-141-30/+70
|
* s0i3: set the wakeup pointer, kernel_fpu_end() on S0i3 failureH. Peter Anvin2010-12-142-2/+41
| | | | | | | | Set the wakeup pointer using SFI. If we fail to enter S0i3 we need to kernel_fpu_end() since save_processor_state() will have called kernel_fpu_begin(). save/restore_processor_state might still be too heavyweight.
* Initial S0i3 code testH. Peter Anvin2010-12-146-11/+591
|
* i2c_intel_mid: Fix slash in sysfs nameAlan Cox2010-12-141-1/+1
| | | | | | | | | | | | This gets caught by the new sanity check code. Instead of the slash use a different symbol. This was originally found by Major Lee who proposed a rather more complex patch which changed the name according to the chip type. On the basis that we are in a late -rc and making Linus grumpy isn't always a good idea (however fun) this is a simple alternative. Signed-off-by: Alan Cox <alan@linux.intel.com>
* x86,mrst: Intel Medfield over-current detection patchDurgadoss R2010-12-134-0/+734
| | | | | | | | | | | | This patch enables over current detection on the Intel Medfield Platform. This driver provides sysfs interfaces to configure current thresholds. When the current being drawn on the platform exceeds the configured threshold, an interrupt is generated. This interrupt can be used to bring the current consumption down by taking necessary hardware or software actions. Signed-off-by: Durgadoss R <durgadoss.r@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Return-Path: <meego-kernel-bounces@lists.meego.com>Alan Cox2010-12-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | X-Original-To: alan@linux.intel.com Delivered-To: alan@linux.intel.com Received: from orsmga001.jf.intel.com (orsmga001.jf.intel.com [10.7.209.18]) by linux.intel.com (Postfix) with ESMTP id E8FCC6A447F; Mon, 6 Dec 2010 16:31:39 -0800 (PST) Received: from orsmga102-1.jf.intel.com (HELO mga09.intel.com) ([10.7.208.27]) by orsmga001-1.jf.intel.com with ESMTP; 06 Dec 2010 16:31:39 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtMAAKQO/UzQKylBmWdsb2JhbACVJo4SFQEBAQEBCAsKBxEivyGFSQSEX4UehAoJBQ X-IronPort-AV: E=Sophos;i="4.59,308,1288594800"; d="scan'208";a="843959646" Received: from mail.meego.com ([208.43.41.65]) by mtab.intel.com with ESMTP; 06 Dec 2010 16:27:57 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.meego.com (Postfix) with ESMTP id 39CB910AFA6; Mon, 6 Dec 2010 16:27:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at mail.moblin.org Received: from mail.meego.com ([127.0.0.1]) by localhost (mail.moblin.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JsoPdIdPFqdY; Mon, 6 Dec 2010 16:27:56 -0800 (PST) Received: from otc01.sl.ssgisp.com (localhost [127.0.0.1]) by mail.meego.com (Postfix) with ESMTP; Mon, 6 Dec 2010 16:27:56 -0800 (PST) X-Original-To: meego-kernel@meego.com Delivered-To: meego-kernel@meego.com Received: from localhost (localhost [127.0.0.1]) by mail.meego.com (Postfix) with ESMTP id C9BAD10AF9C for <meego-kernel@meego.com>; Mon, 6 Dec 2010 16:27:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at mail.moblin.org Received: from mail.meego.com ([127.0.0.1]) by localhost (mail.moblin.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a1KIaCGW2w+Y for <meego-kernel@meego.com>; Mon, 6 Dec 2010 16:27:46 -0800 (PST) Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.meego.com (Postfix) with ESMTP for <meego-kernel@meego.com>; Mon, 6 Dec 2010 16:27:45 -0800 (PST) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id oB70RjQB008851 for <meego-kernel@meego.com>; Mon, 6 Dec 2010 16:27:45 -0800 (PST) Received: from ala-mail06.corp.ad.wrs.com ([147.11.57.147]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 6 Dec 2010 16:27:45 -0800 Received: from localhost6.localdomain6 ([10.3.1.103]) by ala-mail06.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 6 Dec 2010 16:27:45 -0800 To: meego-kernel@meego.com From: Ken Lierman <ken.lierman@windriver.com> Date: Mon, 06 Dec 2010 16:30:08 -0800 Message-ID: <20101207003008.12500.61165.stgit@localhost6.localdomain6> User-Agent: StGit/0.15 MIME-Version: 1.0 X-OriginalArrivalTime: 07 Dec 2010 00:27:45.0487 (UTC) FILETIME=[919625F0:01CB95A5] Subject: [Meego-kernel] [PATCH] Change the clock divider to slow the polling X-BeenThere: meego-kernel@lists.meego.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: "MeeGo kernel discussions and patches." <meego-kernel.lists.meego.com> List-Unsubscribe: <http://lists.meego.com/options/meego-kernel>, <mailto:meego-kernel-request@lists.meego.com?subject=unsubscribe> List-Archive: <http://lists.meego.com/pipermail/meego-kernel> List-Post: <mailto:meego-kernel@lists.meego.com> List-Help: <mailto:meego-kernel-request@lists.meego.com?subject=help> List-Subscribe: <http://lists.meego.com/listinfo/meego-kernel>, <mailto:meego-kernel-request@lists.meego.com?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: meego-kernel-bounces@lists.meego.com Errors-To: meego-kernel-bounces@lists.meego.com On some hardware, getting double keys for single keypresses. Slow the clock slightly (rate requested by the customer) to avoid double key detects on formfactor hardware that has higher capacitance across the lines. Signed-off-by: Ken Lierman <ken.lierman@windriver.com>
* Medfield platform integration for TC35894XBG keypad controller.Charlie Paul2010-12-131-0/+188
| | | | Signed-off-by: Andy Ross <andy.ross@windriver.com>
* Driver for TC35894XBG keypad controllerCharlie Paul2010-12-105-0/+2329
| | | | Signed-off-by: Andy Ross <andy.ross@windriver.com>
* emc1403: added emc1423 supportJekyll Lai2010-12-102-10/+16
| | | | | | | | | | | emc1423 uses the similar register and adds a hardware shutdown pin to protect exceed temperature. This function is set by resistor; it's not necessary to do anything in the driver except add the emc1423 pid of 0x23. Signed-off-by: Jekyll Lai <jekyll_lai@wistron.com> [Updated Kconfig/comments and minor further changes asked for by the hwmon maintainers] Signed-off-by: Alan Cox <alan@linux.intel.com>
* There is a possiblity that the last word of a transaction will be lost ifMajor Lee2010-12-101-0/+5
| | | | | | | | | | | data is not ready. Re-read in poll_transfer() to solve this issue when poll_mode is enabled. Patch is against mainline (2.6.37-rc5). Verified on SPI touch screen device. Signed-off-by: Major Lee <major_lee@wistron.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Cleaned Nested LockingRamakrishna Pallala2010-12-091-22/+29
| | | | | Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Added Charger Type SupportRamakrishna Pallala2010-12-091-0/+10
| | | | | Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Emergency Call Charging FixRamakrishna Pallala2010-12-091-11/+17
| | | | | Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* x86, mrst: Some drivers need to known when an SCU is availableAlan Cox2010-12-092-1/+29
| | | | | | | | | | Add a notifier so that drivers can hook into SCU availability in order to take actions post initialisation when/if the SCU becomes available. In the ideal world we wouldn't need this and we could avoid any init dependancies of this form, but in practice we can't do it for some cases. Signed-off-by: Alan Cox <alan@linux.intel.com>
* Added Support for SW Charge TerminationRamakrishna Pallala2010-12-091-36/+189
| | | | | | | | | | Check_charge_full function is added to determine the charge full condition. Added a function calculate the charge cycles. Temperature based charging worker is modified according to support SW charge termination and maintenance charging. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Added Support for Fuel GaugingRamakrishna Pallala2010-12-091-6/+190
| | | | | | | | | | To support fuel gauging Energy now, Energy full, charge counter and capacity level Sysfs Interfaces are added to driver. A table is added to look up voltage against charge. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Added Support for status monitoringRamakrishna Pallala2010-12-091-85/+163
| | | | | | | | | | | Added a worker function to monitor status if any fault conditions like Over Voltage, Over Temperature, etc.. happens. Removed most of the code from threaded IRQ function and improved exception handling code. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Added support for Emergency call ChargingRamakrishna Pallala2010-12-091-0/+103
| | | | | | | | | | Added a sysfs interface for enabling/disabling Emergency call support. During the charge cycle depending on the temperature and emergency charge enablement parameters we set the current limit value accordingly. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Register Initialization and conversion of coulombs to amphrsRamakrishna Pallala2010-12-091-20/+66
| | | | | | | | | | cc_to_coloumbs/ msic_get_charge_now functions are added to return charge in mAhrs. Init_msic_regs function modified to add two more registers initialization. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Intel MID I2S fix i2s_int to avoid Fabric Error When runtime_pm is ON.Selma Bensaid2010-12-091-3/+3
| | | | | | | | In function i2s_int, the read of the SSR register has to be performed only if the SSP is not SUSPENDED. Signed-off-by: Selma Bensaid <selma.bensaid@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Intel MID I2S set the SSP0/SSP1 in supsended state after bootSelma Bensaid2010-12-091-2/+1
| | | | | | | | In the function intel_mid_i2s_probe the pm_runtime functions are not called in the right order so SSP0 and SSP1 are not suspended after probe. Signed-off-by: Selma Bensaid <selma.bensaid@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* Intel MID I2S: improve intel_mid_i2s_flush by removing unnecessary dev_warnSelma Bensaid2010-12-091-2/+1
| | | | | | | | When Intel MID I2S is flushing the SSP due to de-synchronization with the Modem we observed a lot of unnecessary logs Signed-off-by: Selma Bensaid <selma.bensaid@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
* intel_mid: Medfield battery driver tidy upAlan Cox2010-12-093-258/+218
| | | | | | | | | - Fix kfifo build problem - Clean up printing to debug level for the most part - Remove an impossible NULL check - Clean up all the ipc writing loops using a single helper Signed-off-by: Alan Cox <alan@linux.intel.com>
* intel_mid: Intel MSIC battery driverRamakrishna Pallala2010-12-093-0/+2166
| | | | | | | Battery driver for the Intel MID platform devices based on the Medfield chipset. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
* usb: penwell_otg: put back PHY to normal mode before charger detectionHao Wu2010-12-091-0/+2
| | | | | | | This patch puts PHY back to normal mode before access MSIC register for charger detection. This fixed issue, boot up with connected to PC case. Signed-off-by: Hao Wu <hao.wu@intel.com>
* usb: langwell_udc: add runtime pm support for otgJiebing Li2010-12-091-0/+77
| | | | | | | This patch enables runtime pm support for langwell_udc controller driver. Signed-off-by: Jiebing Li <jiebing.li@intel.com> Signed-off-by: Hao Wu <hao.wu@intel.com>
* usb: langwell_udc: add runtime pm support for otgHao Wu2010-12-091-18/+98
| | | | | | | This patch contains update on transceiver driver interfaces. Mainly to support runtime pm for OTG. Signed-off-by: Hao Wu <hao.wu@intel.com>
* usb: core: add runtime pm support for Intel Medfield platformAndy Luo2010-12-091-7/+22
| | | | | | | This patch enables runtime pm support for usb host driver Signed-off-by: Andy Luo <yifei.luo@intel.com> Signed-off-by: Hao Wu <hao.wu@intel.com>