linux-2.6
15 years agoMerge branch 'proc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/adobriyan...
Linus Torvalds [Wed, 7 Jan 2009 20:01:06 +0000 (12:01 -0800)] 
Merge branch 'proc-linus' of git://git./linux/kernel/git/adobriyan/proc

* 'proc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/adobriyan/proc:
  proc: remove write-only variable in proc_pident_lookup()
  proc: fix sparse warning
  proc: add /proc/*/stack
  proc: remove '##' usage
  proc: remove useless WARN_ONs
  proc: stop using BKL

15 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney...
Linus Torvalds [Wed, 7 Jan 2009 20:00:25 +0000 (12:00 -0800)] 
Merge branch 'for-linus' of git://git./linux/kernel/git/cooloney/blackfin-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6: (171 commits)
  Blackfin arch: fix bug - BF527 0.2 silicon has different CPUID (DSPID) value
  Blackfin arch: Enlarge flash partition for kenel for bf533/bf537 boards
  Blackfin arch: fix bug: kernel crash when enable SDIO host driver
  Blackfin arch: Print FP at level KERN_NOTICE
  Blackfin arch: drop ad73311 test code
  Blackfin arch: update board default configs
  Blackfin arch: Set PB4 as the default irq for bf548 board v1.4+.
  Blackfin arch: fix typo in early printk bit size processing
  Blackfin arch: enable reprogram cclk and sclk for bf518f-ezbrd
  Blackfin arch: add SDIO host driver platform data
  Blackfin arch: fix bug - kernel stops at initial console
  Blackfin arch: fix bug - kernel crash after config IP for ethernet port
  Blackfin arch: add sdh support for bf518f-ezbrd
  Blackfin arch: fix bug - kernel detects BF532 incorrectly
  Blackfin arch: add () to avoid warnings from gcc
  Blackfin arch: change HWTRACE Kconfig and set it on default
  Blackfin arch: Clean oprofile build path for blackfin
  Blackfin arch: remove hardware PM code, oprofile not use it
  Blackfin arch: rewrite get_sclk()/get_vco()
  Blackfin arch: cleanup and unify the ins functions
  ...

15 years agoMerge branch 'hwmon-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6
Linus Torvalds [Wed, 7 Jan 2009 19:59:51 +0000 (11:59 -0800)] 
Merge branch 'hwmon-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6

* 'hwmon-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6: (29 commits)
  hwmon: Fix various typos
  hwmon: Check for ACPI resource conflicts
  hwmon: (lm70) Add TI TMP121 support
  hwmon: (lm70) Code streamlining and cleanup
  hwmon: Deprecate the fscher and fscpos drivers
  hwmon: (fschmd) Add watchdog support
  hwmon: (fschmd) Cleanups for watchdog support
  hwmon: (i5k_amb) Load automatically on all 5000/5400 chipsets
  hwmon: (it87) Add support for the ITE IT8720F
  hwmon: Don't overuse I2C_CLIENT_MODULE_PARM
  hwmon: Add LTC4245 driver
  hwmon: (f71882fg) Fix fan_to/from_reg prototypes
  hwmon: (f71882fg) Printout fan modes
  hwmon: (f71882fg) Add documentation
  hwmon: (f71882fg) Fix auto_channels_temp temp numbering with f8000
  hwmon: (f71882fg) Add missing pwm3 attr for f71862fg
  hwmon: (f71882fg) Add F8000 support
  hwmon: (f71882fg) Remove the fan_mode module option
  hwmon: (f71882fg) Separate max and crit alarm and beep
  hwmon: (f71882fg) Check for hwmon powerdown state
  ...

15 years agoMerge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6
Linus Torvalds [Wed, 7 Jan 2009 19:59:27 +0000 (11:59 -0800)] 
Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6

* 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
  i2c: Use snprintf to set adapter names
  Input: apanel - convert to new i2c binding
  i2c: Drop I2C_CLASS_CAM_DIGITAL
  i2c: Drop I2C_CLASS_CAM_ANALOG and I2C_CLASS_SOUND
  i2c: Drop I2C_CLASS_ALL
  i2c: Get rid of remaining bus_id access
  i2c: Replace bus_id with dev_name(), dev_set_name()

15 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6
Linus Torvalds [Wed, 7 Jan 2009 19:58:30 +0000 (11:58 -0800)] 
Merge git://git./linux/kernel/git/hskinnemoen/avr32-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6:
  avr32: Move syscalls.h under arch/avr32/include/asm/
  avr32: Define DIE_OOPS
  avr32: Remove DMATEST from defconfigs
  arch/avr32: Eliminate NULL test and memset after alloc_bootmem
  avr32: data param to at32_add_device_mci() must be non-NULL
  atmel-mci: move atmel-mci.h file to include/linux
  avr32: Hammerhead board support
  avr32: Allow reserving multiple pins at once
  favr-32: Remove deprecated call
  MIMC200: Remove deprecated call
  avr: struct device - replace bus_id with dev_name(), dev_set_name()
  avr32: Introducing asm/syscalls.h

15 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes
Linus Torvalds [Wed, 7 Jan 2009 19:58:06 +0000 (11:58 -0800)] 
Merge git://git./linux/kernel/git/steve/gfs2-2.6-fixes

* git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes:
  GFS2: Fix typo in gfs_page_mkwrite()
  GFS2: LSF and LBD are now one and the same
  GFS2: Set GFP_NOFS when allocating page on write

15 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/czankel/xtensa-2.6
Linus Torvalds [Wed, 7 Jan 2009 19:56:29 +0000 (11:56 -0800)] 
Merge git://git./linux/kernel/git/czankel/xtensa-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/czankel/xtensa-2.6:
  xtensa: Update platform files to reflect new location of the header files.
  xtensa: switch to packed struct unaligned access implementation
  xtensa: Add xt2000 support files.
  xtensa: move headers files to arch/xtensa/include
  xtensa: use the new byteorder headers

15 years agostop_machine/cpu hotplug: fix disable_nonboot_cpus
Heiko Carstens [Wed, 7 Jan 2009 15:19:46 +0000 (16:19 +0100)] 
stop_machine/cpu hotplug: fix disable_nonboot_cpus

disable_nonboot_cpus calls _cpu_down. But _cpu_down requires that the
caller already created the stop_machine workqueue (like cpu_down does).
Otherwise a call to stop_machine will lead to accesses to random memory
regions.

When introducing this new interface (9ea09af3bd3090e8349ca2899ca2011bd94cda85
"stop_machine: introduce stop_machine_create/destroy") I missed the second
call site of _cpu_down.
So add the missing stop_machine_create/destroy calls to disable_nonboot_cpus
as well.

Fixes suspend-to-ram/disk and also this bug:

[  286.547348] BUG: unable to handle kernel paging request at 6b6b6b6b
[  286.548940] IP: [<c0150ca4>] __stop_machine+0x88/0xe3
[  286.550598] Oops: 0002 [#1] SMP
[  286.560580] Pid: 3273, comm: halt Not tainted (2.6.28-06127-g238c6d5
[  286.560580] EIP: is at __stop_machine+0x88/0xe3
[  286.560580] Process halt (pid: 3273, ti=f1a28000 task=f4530f30
[  286.560580] Call Trace:
[  286.560580]  [<c03d04e4>] ? _cpu_down+0x10f/0x234
[  286.560580]  [<c012a57e>] ? disable_nonboot_cpus+0x58/0xdc
[  286.560580]  [<c01360c0>] ? kernel_poweroff+0x22/0x39
[  286.560580]  [<c0136301>] ? sys_reboot+0xde/0x14c
[  286.560580]  [<c01331b2>] ? complete_signal+0x179/0x191
[  286.560580]  [<c0133396>] ? send_signal+0x1cc/0x1e1
[  286.560580]  [<c03de418>] ? _spin_unlock_irqrestore+0x2d/0x3c
[  286.560580]  [<c0133b65>] ? group_send_signal_info+0x58/0x61
[  286.560580]  [<c0133b9e>] ? kill_pid_info+0x30/0x3a
[  286.560580]  [<c0133d49>] ? sys_kill+0x75/0x13a
[  286.560580]  [<c01a06cb>] ? mntput_no_expire+ox1f/0x101
[  286.560580]  [<c019b3b3>] ? dput+0x1e/0x105
[  286.560580]  [<c018ef87>] ?  __fput+0x150/0x158
[  286.560580]  [<c0157abf>] ? audit_syscall_entry+0x137/0x159
[  286.560580]  [<c010329f>] ? sysenter_do_call+0x12/0x34

Reported-and-tested-by: "Justin P. Mattock" <justinmattock@gmail.com>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
15 years agotouchscreen: Fix build of da9034
Alan Cox [Wed, 7 Jan 2009 11:40:03 +0000 (11:40 +0000)] 
touchscreen: Fix build of da9034

Missing an include and thus breaks the x86-64 build.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
15 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
Linus Torvalds [Wed, 7 Jan 2009 19:31:52 +0000 (11:31 -0800)] 
Merge branch 'for-linus' of git://git./linux/kernel/git/jikos/trivial

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (24 commits)
  trivial: chack -> check typo fix in main Makefile
  trivial: Add a space (and a comma) to a printk in 8250 driver
  trivial: Fix misspelling of "firmware" in docs for ncr53c8xx/sym53c8xx
  trivial: Fix misspelling of "firmware" in powerpc Makefile
  trivial: Fix misspelling of "firmware" in usb.c
  trivial: Fix misspelling of "firmware" in qla1280.c
  trivial: Fix misspelling of "firmware" in a100u2w.c
  trivial: Fix misspelling of "firmware" in megaraid.c
  trivial: Fix misspelling of "firmware" in ql4_mbx.c
  trivial: Fix misspelling of "firmware" in acpi_memhotplug.c
  trivial: Fix misspelling of "firmware" in ipw2100.c
  trivial: Fix misspelling of "firmware" in atmel.c
  trivial: Fix misspelled firmware in Kconfig
  trivial: fix an -> a typos in documentation and comments
  trivial: fix then -> than typos in comments and documentation
  trivial: update Jesper Juhl CREDITS entry with new email
  trivial: fix singal -> signal typo
  trivial: Fix incorrect use of "loose" in event.c
  trivial: printk: fix indentation of new_text_line declaration
  trivial: rtc-stk17ta8: fix sparse warning
  ...

15 years agoHID: fix hid->hiddev initialization in hiddev_connect()
Jiri Kosina [Wed, 7 Jan 2009 12:25:36 +0000 (13:25 +0100)] 
HID: fix hid->hiddev initialization in hiddev_connect()

Commit 079034073fa ("HID: hiddev cleanup -- handle all error conditions
properly") by mistake removed proper initialization of hid->hiddev pointer
in hiddev_connect() in case usb_register_dev() succeeds for the hiddev node.
Put it properly back in place.

Reported-and-tested-by: Gabriel C <nix.or.die@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
15 years agolinux/types.h: Don't depend on __GNUC__ for __le64/__be64
Detlef Riekenberg [Wed, 7 Jan 2009 09:11:44 +0000 (10:11 +0100)] 
linux/types.h: Don't depend on __GNUC__ for __le64/__be64

The typedefs for __u64 and __s64 where fixed to be available for other
compiler on May 2 2008 by H.  Peter Anvin (in commit edfa5cfa3dc5)

Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
15 years agohwmon: Fix various typos
Jean Delvare [Wed, 7 Jan 2009 15:37:35 +0000 (16:37 +0100)] 
hwmon: Fix various typos

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: David Hubbard <david.c.hubbard@gmail.com>
15 years agohwmon: Check for ACPI resource conflicts
Jean Delvare [Wed, 7 Jan 2009 15:37:35 +0000 (16:37 +0100)] 
hwmon: Check for ACPI resource conflicts

Check for ACPI resource conflicts in hwmon drivers. I've included
all Super-I/O and PCI drivers.

I've voluntarily left out:
* Vendor-specific drivers: if they conflicted on any system, this would
  pretty much mean that they conflict on all systems, and we would know
  by now.
* Legacy ISA drivers (lm78 and w83781d): they only support chips found
  on old designs were ACPI either wasn't supported or didn't deal with
  thermal management.
* Drivers accessing the I/O resources indirectly (e.g. through SMBus):
  the checks are already done where they belong, i.e. in the bus drivers.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Acked-by: David Hubbard <david.c.hubbard@gmail.com>
15 years agohwmon: (lm70) Add TI TMP121 support
Manuel Lauss [Wed, 7 Jan 2009 15:37:34 +0000 (16:37 +0100)] 
hwmon: (lm70) Add TI TMP121 support

The Texas Instruments TMP121 is a SPI temperature sensor very similar
to the LM70, with slightly higher resolution.  This patch extends the
LM70 driver to support the TMP121.  The TMP123 differs in pin assign-
ment.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (lm70) Code streamlining and cleanup
Kaiwan N Billimoria [Wed, 7 Jan 2009 15:37:34 +0000 (16:37 +0100)] 
hwmon: (lm70) Code streamlining and cleanup

This fixes a byteswap bug in the LM70 temperature sensor driver,
which was previously covered up by a converse bug in the driver
for the LM70EVAL-LLP board (which is also fixed).

Other fixes:  doc updates, remove an annoying msleep(), and improve
three-wire protocol handling.

Signed-off-by: Kaiwan N Billimoria <kaiwan@designergraphix.com>
[ dbrownell@users.sourceforge.net: doc and whitespace tweaks ]
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: Deprecate the fscher and fscpos drivers
Hans de Goede [Wed, 7 Jan 2009 15:37:33 +0000 (16:37 +0100)] 
hwmon: Deprecate the fscher and fscpos drivers

Now that the new merged fschmd driver has gained support for the watchdog
integrated into these IC's, there is no more reason to keep the old fscher
and fscpos drivers around, so mark them as deprecated.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (fschmd) Add watchdog support
Hans de Goede [Wed, 7 Jan 2009 15:37:33 +0000 (16:37 +0100)] 
hwmon: (fschmd) Add watchdog support

This patch adds support for the watchdog part found in _all_ supported FSC
sensor chips.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (fschmd) Cleanups for watchdog support
Hans de Goede [Wed, 7 Jan 2009 15:37:33 +0000 (16:37 +0100)] 
hwmon: (fschmd) Cleanups for watchdog support

Various small cleanups in preparation of adding watchdog support,
mostly removing _MASK postfix from defines which are not masks.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (i5k_amb) Load automatically on all 5000/5400 chipsets
Darrick J. Wong [Wed, 7 Jan 2009 15:37:33 +0000 (16:37 +0100)] 
hwmon: (i5k_amb) Load automatically on all 5000/5400 chipsets

It turns out that we cannot create a pci_driver in this driver because PCI will
not call this module's probe function if the i5000-edac driver is already
loaded.  That said, we only want one value (AMBASE) from the PCI config space.
Neither driver alters this value, so it's safe to read it.  However, we still
want the module aliases, so provide that.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (it87) Add support for the ITE IT8720F
Jean-Marc Spaggiari [Wed, 7 Jan 2009 15:37:32 +0000 (16:37 +0100)] 
hwmon: (it87) Add support for the ITE IT8720F

Allow it87.c to handle IT8720 chipset like IT8718 in order to
retrieve voltage, temperatures and fans speed from sensors
tools. Also updating the related documentation.

Signed-off-by: Jean-Marc Spaggiari <jean-marc@spaggiari.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: Don't overuse I2C_CLIENT_MODULE_PARM
Jean Delvare [Wed, 7 Jan 2009 15:37:32 +0000 (16:37 +0100)] 
hwmon: Don't overuse I2C_CLIENT_MODULE_PARM

I2C_CLIENT_MODULE_PARM is overkill for force_subclients. We really
only use 4 out of the 48 slots, so we're better defining a custom
variable instead. This change saves 92 bytes of data for each of the
five drivers affected.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Acked-by: Marc Hulsman <m.hulsman@tudelft.nl>
Cc: Mark M. Hoffman <mhoffman@lightlink.com>
15 years agohwmon: Add LTC4245 driver
Ira Snyder [Wed, 7 Jan 2009 15:37:32 +0000 (16:37 +0100)] 
hwmon: Add LTC4245 driver

Add Linux support for the Linear Technology LTC4245 Multiple Supply Hot
Swap controller I2C monitoring interface.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Fix fan_to/from_reg prototypes
Hans de Goede [Wed, 7 Jan 2009 15:37:31 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Fix fan_to/from_reg prototypes

The RPM after conversion from / before conversion to a register value can be
much more than 65535 (up to 1500000), so putting this into an u16 can cause
overflows. This changes the functions to use an int to store / get RPM instead.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Printout fan modes
Hans de Goede [Wed, 7 Jan 2009 15:37:31 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Printout fan modes

Print the mode (duty-cycle or RPM) of each fan on driver load.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Add documentation
Hans de Goede [Wed, 7 Jan 2009 15:37:31 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Add documentation

Add some documentation about the f71882fg driver, and update the Kconfig
documentation to report the new supported models.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Fix auto_channels_temp temp numbering with f8000
Hans de Goede [Wed, 7 Jan 2009 15:37:30 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Fix auto_channels_temp temp numbering with f8000

Adjust auto_channels_temp show and store functions for different numbering of
temps between f8000 and other supported models.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Add missing pwm3 attr for f71862fg
Hans de Goede [Wed, 7 Jan 2009 15:37:30 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Add missing pwm3 attr for f71862fg

For some reason the fan_attr array for the f71862fg was missing the attr for
the 3th pwm output. This patch fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Add F8000 support
Hans de Goede [Wed, 7 Jan 2009 15:37:30 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Add F8000 support

And (finally) the patch actually adding f8000 support.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Remove the fan_mode module option
Hans de Goede [Wed, 7 Jan 2009 15:37:30 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Remove the fan_mode module option

Remove the fan_mode module option it was a monstrosity to begin with, and
when adding support for the F8000 it becomes a real pain!

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Separate max and crit alarm and beep
Hans de Goede [Wed, 7 Jan 2009 15:37:29 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Separate max and crit alarm and beep

While studying the datasheets for adding F8000 support, I noticed that the
F718x2 has separate alarms (and beep control) for its max and crit limits.

We keep the temp#_alarm attributes as they are, even though it would be more
logical to rename them to temp#_max_alarm. Because lm_sensors v2 depends
on them.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Check for hwmon powerdown state
Hans de Goede [Wed, 7 Jan 2009 15:37:29 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Check for hwmon powerdown state

More F8000 prep work. Take over the checking if the hwmon part is not
powered down from the standalone f8000 driver.

This check is valid for all supported models.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Cleanup fan and temp hyst functions
Hans de Goede [Wed, 7 Jan 2009 15:37:29 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Cleanup fan and temp hyst functions

Simplify fan and temp hyst. handling by treating the registers as an array of
nibbles instead of using switch cases. Also unify the way hysts are handled
between temp and fans, the temp code was storing the actual per temp hyst
values in 4 u8's, where as the fan code was storing actual register values.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Fix various sysfs callback function issues
Hans de Goede [Wed, 7 Jan 2009 15:37:28 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Fix various sysfs callback function issues

While working on adding F8000 support I noticed that various of the
store sysfs functions (and a few of the show also) had issues.

This patch fixes the following issues in these functions:
* store: storing the result of strto[u]l in an int, resulting in a possible
  overflow before boundary checking
* store: use of f71882fg_update_device(), we don't want to read the whole
  device in store functions, just the registers we need
* store: use of cached register values instead of reading the needed regs
  in the store function, including cases where f71882fg_update_device() was
  not used, this could cause real isues
* show: shown value is a calculation of 2 or more cached register reads,
  without locking the data struct.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Prepare for adding F8000 support
Hans de Goede [Wed, 7 Jan 2009 15:37:28 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Prepare for adding F8000 support

This patch is a preparation patch for adding F8000 support to the f71882fg
driver. If you look at the register addresses and esp, the bits used for
the temperature channels, then you will notice that it appears that they
start at 1 in a system meant to start at 0. As the F8000 actually uses the 0
addresses and bits, this patch changes the f71882fg driver to take 4
temperatures numbered 0-3 in to account, using 1-3 in this new scheme for
the temperatures actually present in the F718x2FG.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Move some io access from the detect to the probe function
Hans de Goede [Wed, 7 Jan 2009 15:37:28 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Move some io access from the detect to the probe function

The f71882fg driver did some io to ioports it hadn't reserved yet in its
find (detect) function, this patches moves this io to the probe function
where these ports are reserved and this io belongs.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Add support for the F71862FG superio sensors
Hans de Goede [Wed, 7 Jan 2009 15:37:28 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Add support for the F71862FG superio sensors

This patch adds support for the Fintek f71862fg superio monitoring
functions to the f71882fg driver.

This support has been tested without problems on a Jetway J9F2 by
Tony McConnell.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Style cleanups and put some repeating code into functions
Hans de Goede [Wed, 7 Jan 2009 15:37:27 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Style cleanups and put some repeating code into functions

Various small cleanups as preparation for adding f71862fg support to the
f71882fg driver.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Add PWM support
Mark van Doesburg [Wed, 7 Jan 2009 15:37:27 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Add PWM support

Add PWM (fan speed control) support to the f71882fg driver. Both
manual control and automatic (temperature-based) modes are supported.
Additionally, each mode has a PWM-based and an RPM-based variant. By
default we use the mode set by the BIOS.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Cc: Mark van Doesburg <mark.vandoesburg@hetnet.nl>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Misc cleanups
Mark van Doesburg [Wed, 7 Jan 2009 15:37:27 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Misc cleanups

A few cleanups that were originally part of a larger patch but are
better submitted separately.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Cc: Mark van Doesburg <mark.vandoesburg@hetnet.nl>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agohwmon: (f71882fg) Use sensor_device_attribute_2
Mark van Doesburg [Wed, 7 Jan 2009 15:37:27 +0000 (16:37 +0100)] 
hwmon: (f71882fg) Use sensor_device_attribute_2

Convert f71882fg driver from SENSOR_ATTR to SENSOR_ATTR2 use, this is a
preparation patch for adding pwm support, which is broken out to make what
changes really in the pwm support patch clear.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Cc: Mark van Doesburg <mark.vandoesburg@hetnet.nl>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
15 years agoBlackfin arch: fix bug - BF527 0.2 silicon has different CPUID (DSPID) value
Robin Getz [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: fix bug - BF527 0.2 silicon has different CPUID (DSPID) value

BF523/5/7 == 27e0 (all revs)
BF522/4/6 == 27e4 (all revs)

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Enlarge flash partition for kenel for bf533/bf537 boards
Grace Pan [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: Enlarge flash partition for kenel for bf533/bf537 boards

Signed-off-by: Grace Pan <grace.pan@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: fix bug: kernel crash when enable SDIO host driver
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: fix bug: kernel crash when enable SDIO host driver

update bfin-sdh platform data to fix this issue.

Pointed-out-by: Dominik Herwald <d.herwald@dsh-elektronik.de>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Print FP at level KERN_NOTICE
Jie Zhang [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Print FP at level KERN_NOTICE

Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: drop ad73311 test code
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: drop ad73311 test code

drop ad73311 test code, this can be done easily from userspace

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: update board default configs
Sonic Zhang [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: update board default configs

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Set PB4 as the default irq for bf548 board v1.4+.
Sonic Zhang [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Set PB4 as the default irq for bf548 board v1.4+.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: fix typo in early printk bit size processing
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: fix typo in early printk bit size processing

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: enable reprogram cclk and sclk for bf518f-ezbrd
Sonic Zhang [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: enable reprogram cclk and sclk for bf518f-ezbrd

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: add SDIO host driver platform data
Cliff Cai [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: add SDIO host driver platform data

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: fix bug - kernel stops at initial console
Sonic Zhang [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: fix bug - kernel stops at initial console

Bug: Boot kernel in BF533-EZKIT without set ip during boot,
it stops at initial console.

Restore serial platform_device data to fix this issue.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: fix bug - kernel crash after config IP for ethernet port
Michael Hennerich [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: fix bug - kernel crash after config IP for ethernet port

Fix typo - kernel crash on bf533-stamp/bf533-ezkit after config IP for ethernet port

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: add sdh support for bf518f-ezbrd
Cliff Cai [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: add sdh support for bf518f-ezbrd

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: fix bug - kernel detects BF532 incorrectly
Robin Getz [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: fix bug - kernel detects BF532 incorrectly

fix this typo in this patch

Reported-by: Ben Matthews <mben12@gmail.com>
Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: add () to avoid warnings from gcc
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: add () to avoid warnings from gcc

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: change HWTRACE Kconfig and set it on default
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: change HWTRACE Kconfig and set it on default

change the hwtrace description to be less confusing and default it to on
(since there shouldnt be any crashes in the miss handler code itself)

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Clean oprofile build path for blackfin
Graf Yang [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: Clean oprofile build path for blackfin

[Mike Frysinger <vapier.adi@gmail.com>: scrub comment header]

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: remove hardware PM code, oprofile not use it
Graf Yang [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: remove hardware PM code, oprofile not use it

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: rewrite get_sclk()/get_vco()
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: rewrite get_sclk()/get_vco()

rewrite get_sclk()/get_vco() based on the assumption sclk/vco never
changes (since today it cannot)

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: cleanup and unify the ins functions
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: cleanup and unify the ins functions

this also fixes some errors in the ipipe merge

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Make bfin_mac built for bf51x
Sonic Zhang [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Make bfin_mac built for bf51x

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: merge adeos blackfin part to arch/blackfin/
Yi Li [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch:  merge adeos blackfin part to arch/blackfin/

[Mike Frysinger <vapier.adi@gmail.com>:
 - handle bf531/bf532/bf534/bf536 variants in ipipe.h
 - cleanup IPIPE logic for bfin_set_irq_handler()
 - cleanup ipipe asm code a bit and add missing ENDPROC()
 - simplify IPIPE code in trap_c
 - unify some of the IPIPE code and fix style
 - simplify DO_IRQ_L1 handling with ipipe code
 - revert IRQ_SW_INT# addition from ipipe merge
 - remove duplicate get_{c,s}clk() prototypes
]

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Add AD7879 defaults for the Blackfin Landscape LCD EZ-Extender
Michael Hennerich [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: Add AD7879 defaults for the Blackfin Landscape LCD EZ-Extender

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: disable pthread stack check for SMP at runtime
Sonic Zhang [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: disable pthread stack check for SMP at runtime

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: merge kgdb test code using common CONFIG_KGDB_TESTS
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: merge kgdb test code using common CONFIG_KGDB_TESTS

[Grace Pan <grace.pan@analog.com>: Add case for kgdb test in l1 and l2]

Signed-off-by: Grace Pan <grace.pan@analog.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Faster C implementation of no-MPU CPLB handler
Bernd Schmidt [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: Faster C implementation of  no-MPU CPLB handler

This is a mixture ofcMichael McTernan's patch and the existing cplb-mpu code.

We ditch the old cplb-nompu implementation, which is a good example of
why a good algorithm in a HLL is preferrable to a bad algorithm written in
assembly.  Rather than try to construct a table of all posible CPLBs and
search it, we just create a (smaller) table of memory regions and
their attributes.  Some of the data structures are now unified for both
the mpu and nompu cases.  A lot of needless complexity in cplbinit.c is
removed.

Further optimizations:
  * compile cplbmgr.c with a lot of -ffixed-reg options, and omit saving
    these registers on the stack when entering a CPLB exception.
  * lose cli/nop/nop/sti sequences for some workarounds - these don't
  * make
    sense in an exception context

Additional code unification should be possible after this.

[Mike Frysinger <vapier.adi@gmail.com>:
 - convert CPP if statements to C if statements
 - remove redundant statements
 - use a do...while loop rather than a for loop to get slightly better
   optimization and to avoid gcc "may be used uninitialized" warnings ...
   we know that the [id]cplb_nr_bounds variables will never be 0, so this
   is OK
 - the no-mpu code was the last user of MAX_MEM_SIZE and with that rewritten,
   we can punt it
 - add some BUG_ON() checks to make sure we dont overflow the small
   cplb_bounds array
 - add i/d cplb entries for the bootrom because there is functions/data in
   there we want to access
 - we do not need a NULL trailing entry as any time we access the bounds
   arrays, we use the nr_bounds variable
]

Signed-off-by: Michael McTernan <mmcternan@airvana.com>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: update anomaly headers to match latest sheets
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: update anomaly headers to match latest sheets

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Fix bug - IrDA SIR build failed for BF533.
Graf Yang [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Fix bug - IrDA SIR build failed for BF533.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: panic when running on a chip rev below what we are compiled for
Robin Getz [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: panic when running on a chip rev below what we are compiled for

If we are running on a chip revision below what we are compiled for,
there will be missing anomaly workarounds, and a panic is inevitable. Do
is sooner, rather than later, so people don't look for bugs that already
have workarounds (that they turned off).

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Fix bug - wrong endpoint number and dma channels of USB
Bryan Wu [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Fix bug - wrong endpoint number and dma channels of USB

Blackfin MUSB has 8 endpoints including ep0 and 8 dma channels not 7

Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: do not allow people to pass in a diff clkin_hz value
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: do not allow people to pass in a diff clkin_hz value

do not allow people to pass in a diff clkin_hz value when
reprogramming clocks -- it is too late currently

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: allow clkin_hz to be specified on the command line
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: allow clkin_hz to be specified on the command line

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: show_cpuinfo - consolidate ugly casts
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: show_cpuinfo - consolidate ugly casts

rather than use *(unsigned int *)v everywhere, do this once with a local
cpu_num variable

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: add __init markings to Blackfin timer init functions
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: add __init markings to Blackfin timer init functions

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: add get_dma_config() func to match set_dma_config()
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: add get_dma_config() func to match set_dma_config()

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: add volatile markings to DMA MMRs
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: add volatile markings to DMA MMRs

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Make the interrupt edge and polarity type configurable based on IORESO...
Michael Hennerich [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Make the interrupt edge and polarity type configurable based on IORESOURCE_BITS

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Remove wasted SIR header files
Graf Yang [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Remove wasted SIR header files

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Modify bfin_sir device configuration to board file
Graf Yang [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Modify bfin_sir device configuration to board file

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: update header to match new location
Graf Yang [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: update header to match new location

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Fix typo (channel)
Jean Delvare [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Fix typo (channel)

Channnel -> Channel

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Replace C version of 64 bit multiply with hand optimized assembly
Bernd Schmidt [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Replace C version of 64 bit multiply with hand optimized assembly

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: remove unused members of dma_channel struct
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: remove unused members of dma_channel struct

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Update some inline assembly, tweak some register constraints
Robin Getz [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Update some inline assembly, tweak some register constraints

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: stub out pgprot_noncached() like other people seem to do on nommu
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: stub out pgprot_noncached() like other people seem to do on nommu

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: Fix incorrect use of loose in cpufreq.c
Nick Andrew [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: Fix incorrect use of loose in cpufreq.c

It should be 'lose', not 'loose'.

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: add __must_check markings to our user functions like other arches
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: add __must_check markings to our user functions like other arches

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: dma code: cannot simply OR the ndsize
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: dma code: cannot simply OR the ndsize

cannot simply OR the ndsize ... need to clear out the old value first

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: add bfin_read_MDMA_S0_CONFIG compat for dma_memcpy
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: add bfin_read_MDMA_S0_CONFIG compat for dma_memcpy

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: fix bug - crashes in tcp_v4_send_reset
Bernd Schmidt [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: fix bug - crashes in tcp_v4_send_reset

Michael says that some bugs are crashes in tcp_v4_send_reset.
There's a missing clobber of "CC" in our checksum assembly
statement; fixing this makes the generated code look much saner.

Signed-off-by: Bernd Schmidt <bernds_cb1@t-online.de>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: push cache flushing up to dma_memcpy
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: push cache flushing up to dma_memcpy

push cache flushing up to dma_memcpy() so that we call the flush
functions just once

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: request_dma() returns 0 on success, not channel
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: request_dma() returns 0 on success, not channel

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: desc_ptr is a pointer, so declare it as such
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: desc_ptr is a pointer, so declare it as such

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: move most dma functions into static inlines
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: move most dma functions into static inlines

move most dma functions into static inlines since they are vastly 1
liners that get/set a value in a structure

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: dma header file: strip down includes to only necessary ones
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: dma header file: strip down includes to only necessary ones

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: set_dma_callback: do not store .irq
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: set_dma_callback: do not store .irq

set_dma_callback: do not store .irq if request_irq() failed so we dont
turn around and attempt to free_irq() it later on in free_dma()

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: drop irq_callback from struct dma_channel
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: drop irq_callback from struct dma_channel

the irq member already serves the same purpose

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: drop custom dma_interrupt_t and just use irq_handler_t
Mike Frysinger [Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)] 
Blackfin arch: drop custom dma_interrupt_t and just use irq_handler_t

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
15 years agoBlackfin arch: include linux/mm.h since we use PAGE_ALIGN and such
Mike Frysinger [Wed, 7 Jan 2009 15:14:39 +0000 (23:14 +0800)] 
Blackfin arch: include linux/mm.h since we use PAGE_ALIGN and such

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>