1. 25 3月, 2014 1 次提交
  2. 21 3月, 2014 9 次提交
  3. 23 2月, 2014 1 次提交
  4. 22 2月, 2014 5 次提交
  5. 21 2月, 2014 5 次提交
  6. 20 2月, 2014 11 次提交
  7. 19 2月, 2014 8 次提交
    • G
      mfd: sec-core: sec_pmic_{suspend,resume}() should depend on CONFIG_PM_SLEEP · 8321bbf8
      Geert Uytterhoeven 提交于
      If CONFIG_PM_SLEEP=n:
      
      drivers/mfd/sec-core.c:349: warning: ‘sec_pmic_suspend’ defined but not used
      drivers/mfd/sec-core.c:371: warning: ‘sec_pmic_resume’ defined but not used
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      8321bbf8
    • G
      mfd: max14577: max14577_{suspend,resume}() should depend on CONFIG_PM_SLEEP · 3edeb1e4
      Geert Uytterhoeven 提交于
      If CONFIG_PM_SLEEP=n:
      
      drivers/mfd/max14577.c:177: warning: ‘max14577_suspend’ defined but not used
      drivers/mfd/max14577.c:200: warning: ‘max14577_resume’ defined but not used
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      3edeb1e4
    • L
      mfd: tps65217: Naturalise cross-architecture discrepancies · 5c6fbd56
      Lee Jones 提交于
      If we compile the TPS65217 for a 64bit architecture we receive the following
      warnings:
      
      drivers/mfd/tps65217.c: In function ‘tps65217_probe’:
      drivers/mfd/tps65217.c:173:13:
        warning: cast from pointer to integer of different size
         chip_id = (unsigned int)match->data;
                   ^
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      5c6fbd56
    • L
      mfd: wm8994-core: Naturalise cross-architecture discrepancies · 7f8279ce
      Lee Jones 提交于
      If we compile the WM8994 for a 64bit architecture we receive the following
      warnings:
      
      drivers/mfd/wm8994-core.c: In function ‘wm8994_i2c_probe’:
      drivers/mfd/wm8994-core.c:639:19:
        warning: cast from pointer to integer of different size
          wm8994->type = (int)of_id->data;
                         ^
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      7f8279ce
    • L
      mfd: max8998: Naturalise cross-architecture discrepancies · 8bace2d5
      Lee Jones 提交于
      If we compile the MAX8998 for a 64bit architecture we receive the following
      warnings:
      
        drivers/mfd/max8998.c: In function ‘max8998_i2c_get_driver_data’:
        drivers/mfd/max8998.c:178:10:
          warning: cast from pointer to integer of different size
           return (int)match->data;
                  ^
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      8bace2d5
    • L
      mfd: max8997: Naturalise cross-architecture discrepancies · 05fb7a56
      Lee Jones 提交于
      If we compile the MAX8997 for a 64bit architecture we receive the following
      warnings:
      
        drivers/mfd/max8997.c: In function ‘max8997_i2c_get_driver_data’:
        drivers/mfd/max8997.c:173:10:
          warning: cast from pointer to integer of different size
           return (int)match->data;
                  ^
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      05fb7a56
    • S
      cpufreq: powernow-k8: Initialize per-cpu data-structures properly · c3274763
      Srivatsa S. Bhat 提交于
      The powernow-k8 driver maintains a per-cpu data-structure called
      powernow_data that is used to perform the frequency transitions.
      It initializes this data structure only for the policy->cpu. So,
      accesses to this data structure by other CPUs results in various
      problems because they would have been uninitialized.
      
      Specifically, if a cpu (!= policy->cpu) invokes the drivers' ->get()
      function, it returns 0 as the KHz value, since its per-cpu memory
      doesn't point to anything valid. This causes problems during
      suspend/resume since cpufreq_update_policy() tries to enforce this
      (0 KHz) as the current frequency of the CPU, and this madness gets
      propagated to adjust_jiffies() as well. Eventually, lots of things
      start breaking down, including the r8169 ethernet card, in one
      particularly interesting case reported by Pierre Ossman.
      
      Fix this by initializing the per-cpu data-structures of all the CPUs
      in the policy appropriately.
      
      References: https://bugzilla.kernel.org/show_bug.cgi?id=70311Reported-by: NPierre Ossman <pierre@ossman.eu>
      Signed-off-by: NSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
      Cc: All applicable <stable@vger.kernel.org>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      c3274763
    • V
      cpufreq: remove sysfs link when a cpu != policy->cpu, is removed · 6964d91d
      viresh kumar 提交于
      Commit 42f921a6 (cpufreq: remove sysfs files for CPUs which failed to
      come back after resume) tried to do this but missed this piece of code
      to fix.
      
      Currently we are getting this on suspend/resume:
      
      ------------[ cut here ]------------
      WARNING: CPU: 0 PID: 877 at fs/sysfs/dir.c:52 sysfs_warn_dup+0x68/0x84()
      sysfs: cannot create duplicate filename '/devices/system/cpu/cpu1/cpufreq'
      Modules linked in: brcmfmac brcmutil
      CPU: 0 PID: 877 Comm: test-rtc-resume Not tainted 3.14.0-rc2-00259-g9398a10c #12
      [<c0015bac>] (unwind_backtrace) from [<c0011850>] (show_stack+0x10/0x14)
      [<c0011850>] (show_stack) from [<c056e018>] (dump_stack+0x80/0xcc)
      [<c056e018>] (dump_stack) from [<c0025e44>] (warn_slowpath_common+0x64/0x88)
      [<c0025e44>] (warn_slowpath_common) from [<c0025efc>] (warn_slowpath_fmt+0x30/0x40)
      [<c0025efc>] (warn_slowpath_fmt) from [<c012776c>] (sysfs_warn_dup+0x68/0x84)
      [<c012776c>] (sysfs_warn_dup) from [<c0127a54>] (sysfs_do_create_link_sd+0xb0/0xb8)
      [<c0127a54>] (sysfs_do_create_link_sd) from [<c038ef64>] (__cpufreq_add_dev.isra.27+0x2a8/0x814)
      [<c038ef64>] (__cpufreq_add_dev.isra.27) from [<c038f548>] (cpufreq_cpu_callback+0x70/0x8c)
      [<c038f548>] (cpufreq_cpu_callback) from [<c0043864>] (notifier_call_chain+0x44/0x84)
      [<c0043864>] (notifier_call_chain) from [<c0025f60>] (__cpu_notify+0x28/0x44)
      [<c0025f60>] (__cpu_notify) from [<c00261e8>] (_cpu_up+0xf0/0x140)
      [<c00261e8>] (_cpu_up) from [<c0569eb8>] (enable_nonboot_cpus+0x68/0xb0)
      [<c0569eb8>] (enable_nonboot_cpus) from [<c006339c>] (suspend_devices_and_enter+0x198/0x2dc)
      [<c006339c>] (suspend_devices_and_enter) from [<c0063654>] (pm_suspend+0x174/0x1e8)
      [<c0063654>] (pm_suspend) from [<c00624e0>] (state_store+0x6c/0xbc)
      [<c00624e0>] (state_store) from [<c01fc200>] (kobj_attr_store+0x14/0x20)
      [<c01fc200>] (kobj_attr_store) from [<c0126e50>] (sysfs_kf_write+0x44/0x48)
      [<c0126e50>] (sysfs_kf_write) from [<c012a274>] (kernfs_fop_write+0xb4/0x14c)
      [<c012a274>] (kernfs_fop_write) from [<c00d4818>] (vfs_write+0xa8/0x180)
      [<c00d4818>] (vfs_write) from [<c00d4bb8>] (SyS_write+0x3c/0x70)
      [<c00d4bb8>] (SyS_write) from [<c000e620>] (ret_fast_syscall+0x0/0x30)
      ---[ end trace 76969904b614c18f ]---
      
      Fix this by removing sysfs link for cpufreq directory when cpu removed
      isn't policy->cpu.
      
      Revamps: 42f921a6 (cpufreq: remove sysfs files for CPUs which failed to come back after resume)
      Reported-and-tested-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      6964d91d