1. 17 7月, 2008 40 次提交
    • B
      Make GPE disable more robust · e38e8a07
      Bob Moore 提交于
      Implemented another change for the GPE disable. We now perform a
      read-change-write of the enable register instead of simply writing out the
      cached enable mask. This will prevent inadvertent enabling of GPEs if a rogue
      GPE is received during initialization (before GPE handlers are installed.)
      
      http://bugzilla.kernel.org/show_bug.cgi?id=6217Signed-off-by: NBob Moore <robert.moore@intel.com>
      Signed-off-by: NLin Ming <ming.m.lin@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      e38e8a07
    • C
    • R
      acpi: fix printk format warning · 12b2b34e
      Randy Dunlap 提交于
      Fix printk format warning:
      
      linux-next-20080617/drivers/acpi/processor_throttling.c:1258: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      12b2b34e
    • Y
      ACPI: fix processor throttling set error · 3d532d5e
      Yi Yang 提交于
      http://bugzilla.kernel.org/show_bug.cgi?id=9704
      
      When echo some invalid values to /proc/acpi/processor/*/throttling,
      there isn't any error info returned, on the contray, it sets
      throttling value to some T* successfully, obviously, this is incorrect,
      a correct way should be to let it fail and return error info.
      
      This patch fixed the aforementioned issue, it also enables
      /proc/acpi/processor/*/throttling to accept such values as 't0' and 'T0',
      it also strictly limits /proc/acpi/processor/*/throttling only to accept
       "*", "t*" and "T*", "*" is the throttling state value the processor can
      support, current, it is 0 - 7.
      
      Before applying this patch, the test result is below:
      
      [root@localhost acpi]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T1
      state available: T0 to T7
      states:
          T0:                  100%
         *T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
          T7:                  12%
      [root@localhost acpi]# echo "1xxxxxx" > /proc/acpi/processor/CPU0/throttling
      [root@localhost acpi]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T1
      state available: T0 to T7
      states:
          T0:                  100%
         *T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
          T7:                  12%
      [root@localhost acpi]# echo "0" > /proc/acpi/processor/CPU0/throttling
      [root@localhost acpi]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T0
      state available: T0 to T7
      states:
         *T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
          T7:                  12%
      [root@localhost acpi]# cd /
      [root@localhost /]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T0
      state available: T0 to T7
      states:
         *T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
          T7:                  12%
      [root@localhost /]# echo "T0" > /proc/acpi/processor/CPU0/throttling
      [root@localhost /]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T0
      state available: T0 to T7
      states:
         *T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
          T7:                  12%
      [root@localhost /]# echo "T7" > /proc/acpi/processor/CPU0/throttling
      [root@localhost /]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T0
      state available: T0 to T7
      states:
         *T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
          T7:                  12%
      [root@localhost /]# echo "T100" > /proc/acpi/processor/CPU0/throttling
      [root@localhost /]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T0
      state available: T0 to T7
      states:
         *T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
          T7:                  12%
      [root@localhost /]# echo "xxx" > /proc/acpi/processor/CPU0/throttling
      [root@localhost /]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T0
      state available: T0 to T7
      states:
         *T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
          T7:                  12%
      [root@localhost /]# echo "2xxxx" > /proc/acpi/processor/CPU0/throttling
      [root@localhost /]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T2
      state available: T0 to T7
      states:
          T0:                  100%
          T1:                  87%
         *T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
          T7:                  12%
      [root@localhost /]# echo "" > /proc/acpi/processor/CPU0/throttling
      [root@localhost /]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T0
      state available: T0 to T7
      states:
         *T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
          T7:                  12%
      [root@localhost /]# echo "7777" > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost /]# echo "7xxx" > /proc/acpi/processor/CPU0/throttling
      [root@localhost /]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T7
      state available: T0 to T7
      states:
          T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
         *T7:                  12%
      [root@localhost /]#
      
      After applying this patch, the test result is below:
      
      [root@localhost linux-2.6.24-rc6]# echo > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]# echo "" > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]# echo "0" > /proc/acpi/processor/CPU0/throttling
      [root@localhost linux-2.6.24-rc6]# echo "t0" > /proc/acpi/processor/CPU0/throttling
      [root@localhost linux-2.6.24-rc6]# echo "T0" > /proc/acpi/processor/CPU0/throttling
      [root@localhost linux-2.6.24-rc6]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T0
      state available: T0 to T7
      states:
         *T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
          T7:                  12%
      [root@localhost linux-2.6.24-rc6]# echo "T7" > /proc/acpi/processor/CPU0/throttling
      [root@localhost linux-2.6.24-rc6]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T7
      state available: T0 to T7
      states:
          T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
         *T7:                  12%
      [root@localhost linux-2.6.24-rc6]# echo "T8" > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]# vi drivers/acpi/processor_throttling.c
      [root@localhost linux-2.6.24-rc6]# echo "T8" > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]# echo "t7" > /proc/acpi/processor/CPU0/throttling
      [root@localhost linux-2.6.24-rc6]# echo "t70" > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]# echo "70" > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]# echo "7000" > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]# echo "70" > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]# echo "xxx" > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]# echo > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]# echo -n > /proc/acpi/processor/CPU0/throttling
      [root@localhost linux-2.6.24-rc6]# echo -n "" > /proc/acpi/processor/CPU0/throttling
      [root@localhost linux-2.6.24-rc6]# echo $?
      0
      [root@localhost linux-2.6.24-rc6]# echo -n "" > /proc/acpi/processor/CPU0/throttling
      [root@localhost linux-2.6.24-rc6]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T7
      state available: T0 to T7
      states:
          T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
         *T7:                  12%
      [root@localhost linux-2.6.24-rc6]# echo -n "" > /proc/acpi/processor/CPU0/throttling
      [root@localhost linux-2.6.24-rc6]# cat /proc/acpi/processor/CPU0/throttling
      state count:             8
      active state:            T7
      state available: T0 to T7
      states:
          T0:                  100%
          T1:                  87%
          T2:                  75%
          T3:                  62%
          T4:                  50%
          T5:                  37%
          T6:                  25%
         *T7:                  12%
      [root@localhost linux-2.6.24-rc6]# echo t0 > /proc/acpi/processor/CPU0/throttling
      [root@localhost linux-2.6.24-rc6]# echo T0 > /proc/acpi/processor/CPU0/throttling
      [root@localhost linux-2.6.24-rc6]# echo Tt0 > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]# echo T > /proc/acpi/processor/CPU0/throttling
      -bash: echo: write error: Invalid argument
      [root@localhost linux-2.6.24-rc6]#
      Signed-off-by: NYi Yang <yi.y.yang@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      3d532d5e
    • Y
      ACPI: fix acpi fan state set error · 6594d87e
      Yi Yang 提交于
      Under /proc/acpi, there is a fan control interface, a user can
      set 0 or 3 to /proc/acpi/fan/*/state, 0 denotes D0 state, 3
      denotes D3 state, but in current implementation, a user can
      set a fan to D1 state by any char excluding '1', '2' and '3'.
      
      For example:
      
      [root@localhost acpi]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost acpi]# echo "" > /proc/acpi/fan/C31B/state
      [root@localhost acpi]# cat /proc/acpi/fan/C31B/state
      status:                  on
      [root@localhost acpi]# echo "3" > /proc/acpi/fan/C31B/state
      [root@localhost acpi]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost acpi]# echo "xxxxx" > /proc/acpi/fan/C31B/state
      [root@localhost acpi]# cat /proc/acpi/fan/C31B/state
      status:                  on
      
      Obviously, such inputs as "" and "xxxxx" are invalid for fan state.
      
      This patch fixes this issue, it strictly limits fan state only to
      accept 0, 1, 2 and 3, any other inputs are invalid.
      
      Before applying this patch, the test result is:
      
      [root@localhost acpi]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost acpi]# echo "" > /proc/acpi/fan/C31B/state
      [root@localhost acpi]# cat /proc/acpi/fan/C31B/state
      status:                  on
      [root@localhost acpi]# echo "3" > /proc/acpi/fan/C31B/state
      [root@localhost acpi]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost acpi]# echo "xxxxx" > /proc/acpi/fan/C31B/state
      [root@localhost acpi]# cat /proc/acpi/fan/C31B/state
      status:                  on
      [root@localhost acpi]# echo "3" > /proc/acpi/fan/C31B/state
      [root@localhost acpi]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost acpi]# echo "3x" > /proc/acpi/fan/C31B/state
      [root@localhost acpi]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost acpi]# echo "-1x" > /proc/acpi/fan/C31B/state
      [root@localhost acpi]# cat /proc/acpi/fan/C31B/state
      status:                  on
      [root@localhost acpi]#
      
      After applying this patch, the test result is:
      
      [root@localhost ~]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost ~]# echo "" > /proc/acpi/fan/C31B/state
      -bash: echo: write error: Invalid argument
      [root@localhost ~]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost ~]# echo "3" > /proc/acpi/fan/C31B/state
      [root@localhost ~]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost ~]# echo "xxxxx" > /proc/acpi/fan/C31B/state
      -bash: echo: write error: Invalid argument
      [root@localhost ~]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost ~]# echo "-1x" > /proc/acpi/fan/C31B/state
      -bash: echo: write error: Invalid argument
      [root@localhost ~]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost ~]# echo "0" > //proc/acpi/fan/C31B/state
      [root@localhost ~]# cat /proc/acpi/fan/C31B/state
      status:                  on
      [root@localhost ~]# echo "4" > //proc/acpi/fan/C31B/state
      -bash: echo: write error: Invalid argument
      [root@localhost ~]# cat /proc/acpi/fan/C31B/state
      status:                  on
      [root@localhost ~]# echo "3" > //proc/acpi/fan/C31B/state
      [root@localhost ~]# cat /proc/acpi/fan/C31B/state
      status:                  off
      [root@localhost ~]# echo "0" > //proc/acpi/fan/C31B/state
      [root@localhost ~]# cat /proc/acpi/fan/C31B/state
      status:                  on
      [root@localhost ~]# echo "3x" > //proc/acpi/fan/C31B/state
      -bash: echo: write error: Invalid argument
      [root@localhost ~]#
      Signed-off-by: NYi Yang <yi.y.yang@intel.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      Acked-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      6594d87e
    • A
    • J
      Fujitsu-laptop update · 20b93734
      Jonathan Woithe 提交于
      Add additional capabilities to the Fujitsu-laptop driver.
      
       * Brightness hotkey actions are sent to userspace. This can be disabled
         using a module parameter if it causes issues with models which handle
         these keys transparently in the BIOS.
      
       * Actions of additional hotkeys found on some Fujitsu models (eg: the
         suspend key and the dedicated "power on passphrase" keys) are broadcast
         to userspace.
      
       * An alternative brightness control method used by some Fujitsu models
         (for example, the S6410) is now supported, enabling software brightness
         controls on models using this method.
      
       * DMI-based module aliases are configured for the S6410 and S7020.
      
       * The current LCD brightness after booting should now be reflected in the
         standard backlight interface sysfs file (previously it was always set to
         0).  The platform brightness sysfs interface has always been fine.
      
      Thanks go to Peter Gruber who provided a significant portion of this code
      and tested various iterations of the patch on his S6410.
      Signed-off-by: NPeter Gruber <nokos@gmx.net>
      Signed-off-by: NJonathan Woithe <jwoithe@physics.adelaide.edu.au>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      20b93734
    • M
      ACPI: change processors from array to per_cpu variable · 706546d0
      Mike Travis 提交于
      Change processors from an array sized by NR_CPUS to a per_cpu variable.
      Signed-off-by: NMike Travis <travis@sgi.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      706546d0
    • C
      misc,acpi,backlight: compal Laptop Extras · 5411552c
      Cezary Jackiewicz 提交于
      This is driver for Compal Laptop: FL90/IFL90, based on MSI driver.
      
      This driver exports a few files in /sys/devices/platform/compal-laptop/:
       lcd_level - screen brightness: contains a single integer in the range 0..7 (rw)
       wlan - wlan subsystem state: contains 0 or 1 (rw)
       bluetooth - bluetooth subsystem state: contains 0 or 1 (rw)
       raw - raw value taken from embedded controller register (ro)
      
      In addition to these platform device attributes the driver registers itself
      in the Linux backlight control subsystem and is available to userspace under
      /sys/class/backlight/compal-laptop/.
      Signed-off-by: NCezary Jackiewicz <cezary.jackiewicz@gmail.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Alexey Starikovskiy <aystarik@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      5411552c
    • Z
      create sysfs link from acpi device to sysdev for cpu · 9f1eb99c
      Zhang Rui 提交于
      Sys I/F under acpi device node and sysdev device node are both
      needed for cpu hot-removal. User space need this link so that
      they know they are poking the sys I/F for the same cpu.
      http://bugzilla.kernel.org/show_bug.cgi?id=9772Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      9f1eb99c
    • Z
      force offline the processor during hot-removal · b62b8ef9
      Zhang Rui 提交于
      The ACPI device node for the cpu has already been unregistered
      when acpi_processor_handle_eject is called.
      Thus we should offline the cpu and continue, rather than a failure here.
      http://bugzilla.kernel.org/show_bug.cgi?id=9772Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      b62b8ef9
    • Z
      fix a deadlock issue when poking "eject" file · 26d46867
      Zhang Rui 提交于
      "/sys/devices/LNXSYSTM:00/.../eject" is used to evaluate _EJx method
      and eject a device in user space.
      But system hangs when poking the "eject" file because that
      the device hot-removal code invoke the driver .remove method which will
      try to remove the "eject" file as a result.
      
      Queues the hot-removal function for deferred execution in this patch.
      http://bugzilla.kernel.org/show_bug.cgi?id=9772Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      26d46867
    • L
      Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6 · a3cf8593
      Linus Torvalds 提交于
      * 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6: (44 commits)
        hwmon: (w83l786ng) Convert to a new-style i2c driver
        hwmon: (w83l785ts) Convert to a new-style i2c driver
        hwmon: (w83793) Convert to a new-style i2c driver
        hwmon: (w83792d) Convert to a new-style i2c driver
        hwmon: (w83791d) Convert to a new-style i2c driver
        hwmon: (thmc50) Convert to a new-style i2c driver
        hwmon: (smsc47m192) Convert to a new-style i2c driver
        hwmon: (max6650) Convert to a new-style i2c driver
        hwmon: (max1619) Convert to a new-style i2c driver
        hwmon: (lm93) Convert to a new-style i2c driver
        hwmon: (lm92) Convert to a new-style i2c driver
        hwmon: (lm90) Convert to a new-style i2c driver
        hwmon: (lm87) Convert to a new-style i2c driver
        hwmon: (lm83) Convert to a new-style i2c driver
        hwmon: (lm80) Convert to a new-style i2c driver
        hwmon: (lm77) Convert to a new-style i2c driver
        hwmon: (lm63) Convert to a new-style i2c driver
        hwmon: (gl520sm) Convert to a new-style i2c driver
        hwmon: (gl518sm) Convert to a new-style i2c driver
        hwmon: (fscpos) Convert to a new-style i2c driver
        ...
      a3cf8593
    • R
      Fix compile issues in fs/compat_ioctl.c when CONFIG_BLOCK is disabled · 3c3622dc
      Randy Dunlap 提交于
      Fix fs/compat_ioctl.c to handle CONFIG_BLOCK=n, CONFIG_SCSI=n to avoid
      build errors:
      
      In file included from include/scsi/scsi.h:12,
                       from fs/compat_ioctl.c:71:
      include/scsi/scsi_cmnd.h:27:25: warning: "BLK_MAX_CDB" is not defined
      include/scsi/scsi_cmnd.h:28:3: error: #error MAX_COMMAND_SIZE can not be bigger than BLK_MAX_CDB
      In file included from include/scsi/scsi.h:12,
                       from fs/compat_ioctl.c:71:
      include/scsi/scsi_cmnd.h: In function 'scsi_bidi_cmnd':
      include/scsi/scsi_cmnd.h:182: error: implicit declaration of function 'blk_bidi_rq'
      include/scsi/scsi_cmnd.h:183: error: dereferencing pointer to incomplete type
      include/scsi/scsi_cmnd.h: In function 'scsi_in':
      include/scsi/scsi_cmnd.h:189: error: dereferencing pointer to incomplete type
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3c3622dc
    • K
      powerpc/ep8248e: Fix compile problem if !CONFIG_FS_ENET · e3621ee6
      Kumar Gala 提交于
      If we don't enable FS_ENET we get build issues:
      
      arch/powerpc/platforms/built-in.o: In function `ep8248e_mdio_probe':
      arch/powerpc/platforms/82xx/ep8248e.c:129: undefined reference to `alloc_mdio_bitbang'
      arch/powerpc/platforms/82xx/ep8248e.c:143: undefined reference to `mdiobus_register'
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e3621ee6
    • R
      Fix MIPS cross-compile problem · bef5b54b
      Ralf Baechle 提交于
      Crosscompiling on a Fedora 9 machine running gcc 4.3.0 as its host compiler
      and gcc 3.4.6 for the mips-linux target results in the following build
      error:
      
      $ make malta_defconfig
      $ make
      cc1: error: unrecognized command line option "-fno-stack-protector"
      scripts/kconfig/conf -s arch/mips/Kconfig
      cc1: error: unrecognized command line option "-fno-stack-protector"
      
      The arch Makefile is included too late so the host compiler is feature
      tested, not the crosscompiler as intended and thus the Makefile applies
      adds -fno-stack-protector to crosscompiler's flags which fails for gcc
      3.4.6.  The bug was introduced by e06b8b98
      in 2.6.25; 35bb5b1e did add more flags
      testing before the arch Makefile inclusion.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      bef5b54b
    • J
      hwmon: (w83l786ng) Convert to a new-style i2c driver · 33468e76
      Jean Delvare 提交于
      The new-style w83l786ng driver implements the optional detect()
      callback to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Kevin Lo <kevlo@kevlo.org>
      33468e76
    • J
      hwmon: (w83l785ts) Convert to a new-style i2c driver · dc18a418
      Jean Delvare 提交于
      The new-style w83l785ts driver implements the optional detect()
      callback to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      dc18a418
    • J
      hwmon: (w83793) Convert to a new-style i2c driver · a7f13a6e
      Jean Delvare 提交于
      The new-style w83793 driver implements the optional detect()
      callback to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      a7f13a6e
    • J
      hwmon: (w83792d) Convert to a new-style i2c driver · 31d5d275
      Jean Delvare 提交于
      The new-style w83792d driver implements the optional detect()
      callback to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      31d5d275
    • J
      hwmon: (w83791d) Convert to a new-style i2c driver · cb0c1af3
      Jean Delvare 提交于
      The new-style w83791d driver implements the optional detect()
      callback to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Marc Hulsman <m.hulsman@tudelft.nl>
      cb0c1af3
    • J
      hwmon: (thmc50) Convert to a new-style i2c driver · ccf37488
      Jean Delvare 提交于
      The new-style thmc50 driver implements the optional detect()
      callback to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Krzysztof Helt <krzysztof.h1@wp.pl>
      ccf37488
    • J
      hwmon: (smsc47m192) Convert to a new-style i2c driver · 8fb597bb
      Jean Delvare 提交于
      The new-style smsc47m192 driver implements the optional detect()
      callback to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Hartmut Rick <linux@rick.claranet.de>
      8fb597bb
    • J
      hwmon: (max6650) Convert to a new-style i2c driver · 0d57abd5
      Jean Delvare 提交于
      The new-style max6650 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Hans J. Koch <hjk@linutronix.de>
      0d57abd5
    • J
      hwmon: (max1619) Convert to a new-style i2c driver · c6d3f6fa
      Jean Delvare 提交于
      The new-style max1619 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Alexey Fisher <fishor@mail.ru>
      c6d3f6fa
    • J
      hwmon: (lm93) Convert to a new-style i2c driver · 70b72406
      Jean Delvare 提交于
      The new-style lm93 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Cc: Eric J. Bowersox <ericb@aspsys.com>
      Cc: Carsten Emde <cbe@osadl.org>
      Cc: Hans J. Koch <hjk@linutronix.de>
      70b72406
    • J
      hwmon: (lm92) Convert to a new-style i2c driver · 910e8dcf
      Jean Delvare 提交于
      The new-style lm92 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      910e8dcf
    • J
      hwmon: (lm90) Convert to a new-style i2c driver · 9b0e8526
      Jean Delvare 提交于
      The new-style lm90 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      9b0e8526
    • J
      hwmon: (lm87) Convert to a new-style i2c driver · a888420a
      Jean Delvare 提交于
      The new-style lm87 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Ben Hutchings <bhutchings@solarflare.com>
      a888420a
    • J
      hwmon: (lm83) Convert to a new-style i2c driver · b6aacdce
      Jean Delvare 提交于
      The new-style lm83 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      b6aacdce
    • J
      hwmon: (lm80) Convert to a new-style i2c driver · 8c8bacc8
      Jean Delvare 提交于
      The new-style lm80 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      8c8bacc8
    • J
      hwmon: (lm77) Convert to a new-style i2c driver · a189dd62
      Jean Delvare 提交于
      The new-style lm77 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Andras Bali <drewie@freemail.hu>
      a189dd62
    • J
      hwmon: (lm63) Convert to a new-style i2c driver · d5957be2
      Jean Delvare 提交于
      The new-style lm63 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      d5957be2
    • J
      hwmon: (gl520sm) Convert to a new-style i2c driver · a23a9fe1
      Jean Delvare 提交于
      The new-style gl520sm driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Maarten Deprez <maartendeprez@users.sourceforge.net>
      a23a9fe1
    • J
      hwmon: (gl518sm) Convert to a new-style i2c driver · 95d80e7c
      Jean Delvare 提交于
      The new-style gl518sm driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      95d80e7c
    • J
      hwmon: (fscpos) Convert to a new-style i2c driver · b9e39b1b
      Jean Delvare 提交于
      The new-style fscpos driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      b9e39b1b
    • J
      hwmon: (fschmd) Convert to a new-style i2c driver · 40ac1994
      Jean Delvare 提交于
      The new-style fschmd driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Hans de Goede <j.w.r.degoede@hhs.nl>
      40ac1994
    • J
      hwmon: (fscher) Convert to a new-style i2c driver · c2df1591
      Jean Delvare 提交于
      The new-style fscher driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Reinhard Nissl <rnissl@gmx.de>
      c2df1591
    • J
      hwmon: (f75375s) Drop legacy i2c driver · 935ada8c
      Jean Delvare 提交于
      Drop the legacy f75375s i2c driver, and add a detect callback to the
      new-style i2c driver to achieve the same functionality.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NRiku Voipio <riku.voipio@movial.fi>
      935ada8c
    • J
      hwmon: (ds1621) Convert to a new-style i2c driver · 70313eab
      Jean Delvare 提交于
      The new-style ds1621 driver implements the optional detect() callback
      to cover the use cases of the legacy driver.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      70313eab