]> pilppa.com Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
16 years agoV4L/DVB (10291): em28xx: fix VIDIOC_G_CTRL when there is no msp34xx device.
Hans Verkuil [Wed, 21 Jan 2009 20:06:42 +0000 (17:06 -0300)]
V4L/DVB (10291): em28xx: fix VIDIOC_G_CTRL when there is no msp34xx device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10286): af9015: add new USB ID for KWorld DVB-T 395U
Antti Palosaari [Tue, 13 Jan 2009 15:47:28 +0000 (12:47 -0300)]
V4L/DVB (10286): af9015: add new USB ID for KWorld DVB-T 395U

Add new USB ID 1b80:e39b for KWorld DVB-T 395U. This device revision does
have Quantek QT1010 silicon tuner.

Thanks-to: Ray Chen <swyear@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10284): cx18: Add initial entry for a Leadtek DVR3100 H hybrid card
Andy Walls [Mon, 19 Jan 2009 21:31:22 +0000 (18:31 -0300)]
V4L/DVB (10284): cx18: Add initial entry for a Leadtek DVR3100 H hybrid card

Card report provided by Patryk on the ivtv-devel list:
http://ivtvdriver.org/pipermail/ivtv-devel/2009-January/005922.html

Reported-by: Pat <tatyrza@mm.pl>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10283): cx18: Call request_module() with proper argument types.
Andy Walls [Sat, 17 Jan 2009 16:37:36 +0000 (13:37 -0300)]
V4L/DVB (10283): cx18: Call request_module() with proper argument types.

request_module() needs to be called with a string literal for a
format string or with 1 or more variable arguments to avoid
compiler warnings and possible exploits, if someone could cause
us to get a format string with a '%' code in the format string
when we make the call.

Reported-by: Brandon Jenkins <bcjenkins@tvwhere.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10281): cx18: Conversion to new V4L2 framework: use v4l2_device object
Andy Walls [Sun, 11 Jan 2009 18:08:53 +0000 (15:08 -0300)]
V4L/DVB (10281): cx18: Conversion to new V4L2 framework: use v4l2_device object

First step in conversion to the new V4L2 framework.  Added per cx18 device
instance of the v4l2_device and its registration.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10280): cx18: Rename structure members: dev to pci_dev and v4l2dev to video_dev
Andy Walls [Sun, 11 Jan 2009 00:54:39 +0000 (21:54 -0300)]
V4L/DVB (10280): cx18: Rename structure members: dev to pci_dev and v4l2dev to video_dev

Renamed structure member name to be more specific to type in anticipation
of updating to the v4l2_device/v4l2_subdev framework.  Too many objects named
"dev" and /v4l2_\{0,1\}dev/ would be to confusing.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10279): cx18: Print driver version number when logging status
Andy Walls [Sat, 10 Jan 2009 17:13:46 +0000 (14:13 -0300)]
V4L/DVB (10279): cx18: Print driver version number when logging status

Make sure v4l2-ctl --log-status outputs the driver version.

Reported-by: David Dombroski <davedom@optonline.net>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10278): cx18: Fix bad audio in first analog capture.
Andy Walls [Mon, 5 Jan 2009 00:51:17 +0000 (21:51 -0300)]
V4L/DVB (10278): cx18: Fix bad audio in first analog capture.

Normalize the APU state before the second firmware load so that audio
for the first analog capture is correct.

Many thanks to Conexant for supporting me in finding a solution for this
problem.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10277): cx18, cx2341x: Fix bugs in cx18 AC3 control and comply with V4L2...
Andy Walls [Sat, 3 Jan 2009 17:21:30 +0000 (14:21 -0300)]
V4L/DVB (10277): cx18, cx2341x: Fix bugs in cx18 AC3 control and comply with V4L2 spec

Fix bugs in the cx18 AC3 control implementation that would have affected
ivtv and other drivers via the cx2341x module.  Bring AC3 controls
behavior into comliance with V4L2 specification.  Thanks to Hans Verkuil
for reviewing the previous patch and pointing out the problems.

Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10276): cx18, cx2341x, ivtv: Add AC-3 audio encoding control to cx18
Andy Walls [Thu, 1 Jan 2009 22:02:31 +0000 (19:02 -0300)]
V4L/DVB (10276): cx18, cx2341x, ivtv: Add AC-3 audio encoding control to cx18

Initial addition of controls to set AC-3 audio encoding for the CX23418 - it
does not work yet due to firmware or cx18 driver issues.  This change affects
the common cx2341x and ivtv modules due to shared structures and
common functions.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10275): cx18: Additional debug to display outgoing mailbox parameters
Andy Walls [Thu, 1 Jan 2009 15:35:06 +0000 (12:35 -0300)]
V4L/DVB (10275): cx18: Additional debug to display outgoing mailbox parameters

Added debug display of outgoing mailbox arguments.  Fixed a minor problem
with display of stale incoming mailbox contents, when user was not looking for
debug warnings.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10274): cx18: Fix a PLL divisor update for the I2S master clock
Andy Walls [Thu, 1 Jan 2009 14:09:24 +0000 (11:09 -0300)]
V4L/DVB (10274): cx18: Fix a PLL divisor update for the I2S master clock

A redundant PLL divisior update for the I2S master clock after AV core
firmware load was missed in earlier PLL parameter changes.  This one really
doesn't matter because it's redundant and gets overwritten, but the driver
should be self consistent in the values used.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10272): av7110: test type field in VIDIOC_G_SLICED_VBI_CAP
Hans Verkuil [Mon, 19 Jan 2009 07:14:17 +0000 (04:14 -0300)]
V4L/DVB (10272): av7110: test type field in VIDIOC_G_SLICED_VBI_CAP

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10271): saa7146: convert to video_ioctl2.
Hans Verkuil [Sun, 18 Jan 2009 22:59:11 +0000 (19:59 -0300)]
V4L/DVB (10271): saa7146: convert to video_ioctl2.

The conversion to video_ioctl2 is the first phase to converting this driver
to the latest v4l2 framework.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10269): Add support for DVBWorld DVBS2 PCI-e 2005.
Igor M. Liplianin [Sat, 17 Jan 2009 15:23:31 +0000 (12:23 -0300)]
V4L/DVB (10269): Add support for DVBWorld DVBS2 PCI-e 2005.

DVBWorld DVBS2 PCI-e 2005 card contains cx23885 PCI-e bridge
and cx24116 demodulator.
http://www.linuxtv.org/wiki/index.php/DVBWorld_DVB-S2_2005_PCI-Express_Card
The card tested by me (Igor).

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10268): Proper implement set_voltage in cx24116.
Igor M. Liplianin [Sat, 17 Jan 2009 13:16:36 +0000 (10:16 -0300)]
V4L/DVB (10268): Proper implement set_voltage in cx24116.

Now there is a card, which uses cx24116 to control LNB DC voltage.
It is DVBWorld DVBS2 PCI-e 2005.
The patch is nedded to add support for that card.
1. Rename CMD_SET_TONEPRE to CMD_LNBDCLEVEL.
2. Fill set_voltage with actually control voltage code.
3. Correct set_tone to not affect voltage.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10267): Add support for TeVii S470 DVB-S2 PCI-e card.
Igor M. Liplianin [Sat, 17 Jan 2009 15:18:26 +0000 (12:18 -0300)]
V4L/DVB (10267): Add support for TeVii S470 DVB-S2 PCI-e card.

TeVii S470 DVB-S2 PCI-e card contains cx23885 PCI-e bridge
and cx24116 demodulator.
http://www.linuxtv.org/wiki/index.php/TeVii_S470
The card tested by me (Igor).

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10266): Add support for TurboSight TBS6920 DVB-S2 PCI-e card.
Igor M. Liplianin [Sat, 17 Jan 2009 15:11:20 +0000 (12:11 -0300)]
V4L/DVB (10266): Add support for TurboSight TBS6920 DVB-S2 PCI-e card.

TurboSight TBS6920 DVB-S2 PCI-e card contains cx23885 PCI-e bridge
and cx24116 demodulator.
http://www.linuxtv.org/wiki/index.php/TBS_6920
The card tested by me (Igor).

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10263): zr364xx: add support for Aiptek DV T300
Antoine Jacquet [Sun, 18 Jan 2009 01:49:08 +0000 (22:49 -0300)]
V4L/DVB (10263): zr364xx: add support for Aiptek DV T300

Tested-by: Hámorszky Balázs <balihb@freepop.hu>
Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10259): pvrusb2: Code module name directly in printk
Mike Isely [Fri, 16 Jan 2009 06:09:34 +0000 (03:09 -0300)]
V4L/DVB (10259): pvrusb2: Code module name directly in printk

The name of the pvrusb2 module is not likely to ever change, and there
are plenty of other places where the name is directly coded, so there
is little utility in using a macro to infer the module name here.  In
addition, using that macro complicates other uses of the driver
involving older kernels where this macro works differently.  Yes I
know for many places we don't have to worry about that.  But my
alternative is that I have to build special logic in the pvrusb2
standalone driver to special-case what is otherwise costmetic and that
is just plain nuts for something as trivial as this, especially since
this change does not at all have any compile time or run time impact
on the driver.  I'm just removing a nicety that didn't have a lot of
value here to begin with.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10258): pvrusb2: Issue VIDIOC_INT_INIT to v4l2 modules when they first attach
Mike Isely [Fri, 16 Jan 2009 06:06:02 +0000 (03:06 -0300)]
V4L/DVB (10258): pvrusb2: Issue VIDIOC_INT_INIT to v4l2 modules when they first attach

It appears that various v4l-dvb drivers are changing to require
explicit initialization before use.  This change to the pvrusb2 driver
implements an automatic issuance of VIDIOC_INT_INIT when a module is
bound to the driver, thus conforming to the new behavior.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10255): em28xx: Clock (XCLK) Cleanup
Robert Krakora [Mon, 19 Jan 2009 00:44:46 +0000 (21:44 -0300)]
V4L/DVB (10255): em28xx: Clock (XCLK) Cleanup

Clock (XCLK) Cleanup

Signed-off-by: Robert Krakora <rob.krakora@messagenetsystems.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10252): v4l2 doc: explain why v4l2_device_unregister_subdev() has to be...
Hans Verkuil [Thu, 15 Jan 2009 09:09:05 +0000 (06:09 -0300)]
V4L/DVB (10252): v4l2 doc: explain why v4l2_device_unregister_subdev() has to be called.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10251): cx25840: add comments explaining what the init() does.
Hans Verkuil [Thu, 15 Jan 2009 08:53:18 +0000 (05:53 -0300)]
V4L/DVB (10251): cx25840: add comments explaining what the init() does.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10249): v4l2-common: added v4l2_i2c_tuner_addrs()
Hans Verkuil [Sun, 18 Jan 2009 22:37:59 +0000 (19:37 -0300)]
V4L/DVB (10249): v4l2-common: added v4l2_i2c_tuner_addrs()

Add v4l2_i2c_tuner_addrs() to obtain the various I2C tuner addresses.
This will be used in several drivers, so make this a common function
as we do not want to have these I2C addresses all over the place.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10247): saa7134: convert to the new v4l2 framework.
Hans Verkuil [Sat, 17 Jan 2009 15:17:14 +0000 (12:17 -0300)]
V4L/DVB (10247): saa7134: convert to the new v4l2 framework.

Register v4l2_device and switch to v4l2_subdev to access the i2c modules.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10246): saa6752hs: convert to v4l2_subdev.
Hans Verkuil [Wed, 14 Jan 2009 09:54:38 +0000 (06:54 -0300)]
V4L/DVB (10246): saa6752hs: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10244): v4l2: replace a few snprintfs with strlcpy
Hans Verkuil [Sat, 17 Jan 2009 14:26:59 +0000 (11:26 -0300)]
V4L/DVB (10244): v4l2: replace a few snprintfs with strlcpy

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10242): pwc: add support for webcam snapshot button
Nam Phạm Thành [Mon, 12 Jan 2009 05:50:17 +0000 (02:50 -0300)]
V4L/DVB (10242): pwc: add support for webcam snapshot button

This patch adds support for Philips webcam snapshot button as an
event input device, for consistency with other webcam drivers.

Signed-off-by: Pham Thanh Nam <phamthanhnam.ptn@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10239): pvrusb2: Fix misleading comment caused by earlier commit
Mike Isely [Wed, 14 Jan 2009 07:40:57 +0000 (04:40 -0300)]
V4L/DVB (10239): pvrusb2: Fix misleading comment caused by earlier commit

Previous v4l-dvb changeset id 4cc8ed11e2e0 changed the pvrusb2-hdw
internal API regarding i2c chip debug register access.  However that
change failed to also update the corresponding function comment
describing the API.  As driver maintained I never saw a request for an
ack on that change; there probably should have been one especially
since the manner in which this API operates was changed - its
interface is now entangled with a v4l specific struct and I would have
preferred to keep this API clear of moving-target v4l-isms such as
this one if at all possible which is why I had done it the way I did
before.  But whatever.  This commit at least fixes the comment issue.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10238): pvrusb2: Change sysfs serial number handling
Mike Isely [Wed, 14 Jan 2009 07:24:20 +0000 (04:24 -0300)]
V4L/DVB (10238): pvrusb2: Change sysfs serial number handling

Use the new pvrusb2 internal API to grab the device identifier, rather
than generating it directly.  This unifies some code and make possible
use of that identifier in places other than sysfs.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10237): pvrusb2: Generate a device-unique identifier
Mike Isely [Wed, 14 Jan 2009 07:22:56 +0000 (04:22 -0300)]
V4L/DVB (10237): pvrusb2: Generate a device-unique identifier

Implement a new internal function to create a string device
identifier.  This ID stays with the specific device, making it useful
to user space to identify specific devices.  We use the serial number
if available; otherwise we give up and just spit out a unit/instance ID.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10236): pvrusb2: Stop advertising VBI capability - it isn't there
Mike Isely [Wed, 14 Jan 2009 07:21:29 +0000 (04:21 -0300)]
V4L/DVB (10236): pvrusb2: Stop advertising VBI capability - it isn't there

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10231): v4l2-subdev: add v4l2_ext_controls support
Hans Verkuil [Mon, 12 Jan 2009 21:17:14 +0000 (18:17 -0300)]
V4L/DVB (10231): v4l2-subdev: add v4l2_ext_controls support

The saa6752hs module needs this.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (10211): vivi: Implements 4 inputs on vivi
Mauro Carvalho Chehab [Sun, 11 Jan 2009 13:29:43 +0000 (10:29 -0300)]
V4L/DVB (10211): vivi: Implements 4 inputs on vivi

This patch adds the capability of selecting between 4 different inputs
on vivi driver. Input 0 is the normal color bar, while inputs 1-3 are
modified color bars.

This allows testing input selection on userspace applications and
serves as an implementation model for other drivers.

The current approach allows a maximum of 10 different inputs, since the
input name generator assumes that we need just one digit to present the
input. It shouldn't be hard to modify it to present a bigger name of
inputs, but, in fact, it doesn't make much sense of doing it for this
test driver.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agofuse: fix fuse_file_lseek returning with lock held
Dan Carpenter [Fri, 27 Mar 2009 10:36:10 +0000 (13:36 +0300)]
fuse: fix fuse_file_lseek returning with lock held

This bug was found with smatch (http://repo.or.cz/w/smatch.git/).  If
we return directly the inode->i_mutex lock doesn't get released.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: stable@kernel.org
16 years agoAdd RTC support for Merisc boards
Jonas Larsson [Mon, 30 Mar 2009 15:04:53 +0000 (17:04 +0200)]
Add RTC support for Merisc boards

This patch adds RTC support for the Merisc boards.

Signed-off-by: Jonas Larsson <jonas.larsson@martinsson.se>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
16 years agosmc91c92_cs: use request_firmware
Jaswinder Singh Rajput [Mon, 30 Mar 2009 14:49:54 +0000 (20:19 +0530)]
smc91c92_cs: use request_firmware

Added osi_load_firmware() instead of copying same thing twice

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
16 years ago3C359: use request_firmware
Jaswinder Singh Rajput [Mon, 30 Mar 2009 14:14:59 +0000 (19:44 +0530)]
3C359: use request_firmware

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
16 years agoRevert "cpuacct: reduce one NULL check in fast-path"
Ingo Molnar [Mon, 30 Mar 2009 14:14:40 +0000 (16:14 +0200)]
Revert "cpuacct: reduce one NULL check in fast-path"

This reverts commit 7a46c594bf7f1f2eeb1e12d4b857d5f581957a92.

This was applied to the x86 tree mistakenly, it belongs into the
scheduler tree.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
16 years agoFix a lockdep warning in fasync_helper()
Jonathan Corbet [Fri, 27 Mar 2009 18:24:31 +0000 (12:24 -0600)]
Fix a lockdep warning in fasync_helper()

Lockdep gripes if file->f_lock is taken in a no-IRQ situation, since that
is not always the case.  We don't really want to disable IRQs for every
acquisition of f_lock; instead, just move it outside of fasync_lock.

Reported-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
16 years agoyam: use request_firmware
Jaswinder Singh Rajput [Mon, 30 Mar 2009 12:47:21 +0000 (18:17 +0530)]
yam: use request_firmware

Added predef variable in add_mcs() to support predefined mcs data

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
16 years agotrivial: Update my email address
Riku Voipio [Tue, 3 Mar 2009 19:37:17 +0000 (21:37 +0200)]
trivial: Update my email address

Update my email address.

Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: NULL noise: drivers/mtd/tests/mtd_*test.c
Hannes Eder [Thu, 5 Mar 2009 19:15:01 +0000 (20:15 +0100)]
trivial: NULL noise: drivers/mtd/tests/mtd_*test.c

Fix this sparse warnings:
  drivers/mtd/tests/mtd_oobtest.c:139:33: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_oobtest.c:192:33: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_oobtest.c:219:41: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_oobtest.c:284:25: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_oobtest.c:525:25: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_oobtest.c:545:25: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_oobtest.c:569:33: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_oobtest.c:589:33: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_oobtest.c:613:33: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_oobtest.c:633:33: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_oobtest.c:673:41: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_oobtest.c:701:33: warning: Using plain integer as NULL pointer
  drivers/mtd/tests/mtd_readtest.c:74:41: warning: Using plain integer as NULL pointer

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Acked-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: NULL noise: drivers/media/dvb/frontends/drx397xD_fw.h
Hannes Eder [Thu, 5 Mar 2009 19:14:39 +0000 (20:14 +0100)]
trivial: NULL noise: drivers/media/dvb/frontends/drx397xD_fw.h

Fix this sparse warnings:
  drivers/media/dvb/frontends/drx397xD_fw.h:21:2: warning: Using plain integer as NULL pointer
  drivers/media/dvb/frontends/drx397xD_fw.h:22:2: warning: Using plain integer as NULL pointer

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: Fix misspelling of "Celsius".
Adam Buchbinder [Fri, 13 Mar 2009 16:15:26 +0000 (12:15 -0400)]
trivial: Fix misspelling of "Celsius".

A few comments say "Celcius"; this fixes them. No code changes.

Signed-off-by: Adam Buchbinder <adam.buchbinder@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: remove unused variable 'path' in alloc_file()
Tero Roponen [Sun, 8 Mar 2009 13:29:31 +0000 (15:29 +0200)]
trivial: remove unused variable 'path' in alloc_file()

'struct path' is not used in alloc_file().

Signed-off-by: Tero Roponen <tero.roponen@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: fix a pdlfush -> pdflush typo in comment
Masatake YAMATO [Wed, 25 Feb 2009 13:51:57 +0000 (22:51 +0900)]
trivial: fix a pdlfush -> pdflush typo in comment

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: jbd header comment typo fix for JBD_PARANOID_IOFAIL
Kazuo Moriwaka [Tue, 3 Mar 2009 12:01:23 +0000 (13:01 +0100)]
trivial: jbd header comment typo fix for JBD_PARANOID_IOFAIL

jbd header comment typo fix.

Signed-off-by: Kazuo Moriwaka <moriwaka@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: wusb: Storage class should be before const qualifier
Tobias Klauser [Mon, 9 Feb 2009 22:07:35 +0000 (23:07 +0100)]
trivial: wusb: Storage class should be before const qualifier

The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature.

Acked-by: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: drivers/char/bsr.c: Storage class should be before const qualifier
Tobias Klauser [Mon, 9 Feb 2009 21:01:08 +0000 (22:01 +0100)]
trivial: drivers/char/bsr.c: Storage class should be before const qualifier

The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the
beginning of the declaration specifiers in a declaration is an
obsolescent feature.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: h8300: Storage class should be before const qualifier
Tobias Klauser [Mon, 9 Feb 2009 20:39:32 +0000 (21:39 +0100)]
trivial: h8300: Storage class should be before const qualifier

The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: fix where cgroup documentation is not correctly referred to
Thadeu Lima de Souza Cascardo [Wed, 4 Feb 2009 09:12:08 +0000 (10:12 +0100)]
trivial: fix where cgroup documentation is not correctly referred to

cgroup documentation was moved to Documentation/cgroups/. There are some
places that still refer to Documentation/controllers/,
Documentation/cgroups.txt and Documentation/cpusets.txt. Fix those.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Paul Menage <menage@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: Give the right path in Documentation example
Thadeu Lima de Souza Cascardo [Tue, 3 Feb 2009 10:57:13 +0000 (11:57 +0100)]
trivial: Give the right path in Documentation example

While the Documentation example creates /cgroup/test, it removes
/test/cgroup, which is clearly not the intended path. Change that to
/cgroup/test.

Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: MTD: remove EOL from MODULE_DESCRIPTION
Niels de Vos [Fri, 30 Jan 2009 10:08:35 +0000 (11:08 +0100)]
trivial: MTD: remove EOL from MODULE_DESCRIPTION

There is no need to have a "\n" on a MODULE_DESCRIPTION, remove it.

Signed-off-by: Niels de Vos <niels.devos@wincor-nixdorf.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: Fix typo in bio_split()'s documentation
Alberto Bertogli [Mon, 26 Jan 2009 01:36:14 +0000 (23:36 -0200)]
trivial: Fix typo in bio_split()'s documentation

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: PWM: fix of #endif comment
Mark Vels [Sun, 18 Jan 2009 17:42:45 +0000 (18:42 +0100)]
trivial: PWM: fix of #endif comment

Signed-off-by: Mark Vels <mark.vels@team-embedded.nl>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: fix typos/grammar errors in Kconfig texts
Matt LaPlante [Mon, 26 Jan 2009 10:12:25 +0000 (11:12 +0100)]
trivial: fix typos/grammar errors in Kconfig texts

Signed-off-by: Matt LaPlante <kernel1@cyberdogtech.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: Fix misspelling of firmware
Nick Andrew [Mon, 26 Jan 2009 10:06:57 +0000 (11:06 +0100)]
trivial: Fix misspelling of firmware

Fix misspelling of firmware.

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: cgroups: documentation typo and spelling corrections
Chris Samuel [Fri, 16 Jan 2009 13:01:18 +0000 (00:01 +1100)]
trivial: cgroups: documentation typo and spelling corrections

Minor typo and spelling corrections fixed whilst reading
to learn about cgroups capabilities.

Signed-off-by: Chris Samuel <chris@csamuel.org>
Acked-by: Paul Menage <menage@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: Update contact info for Jochen Hein
Jochen Hein [Mon, 19 Jan 2009 23:32:22 +0000 (00:32 +0100)]
trivial: Update contact info for Jochen Hein

I've moved again - so update my address again.

Signed-off-by: Jochen Hein <jochen@jochen.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: fix typo "resgister" -> "register"
Uwe Kleine-Koenig [Mon, 12 Jan 2009 22:35:50 +0000 (23:35 +0100)]
trivial: fix typo "resgister" -> "register"

Signed-off-by: Uwe Kleine-Koenig <ukleinek@strlen.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: fix typo "virual" -> "virtual"
Uwe Kleine-Koenig [Mon, 12 Jan 2009 22:35:49 +0000 (23:35 +0100)]
trivial: fix typo "virual" -> "virtual"

Signed-off-by: Uwe Kleine-Koenig <ukleinek@strlen.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: fix typo "varaible" -> "variable"
Uwe Kleine-Koenig [Mon, 12 Jan 2009 22:35:48 +0000 (23:35 +0100)]
trivial: fix typo "varaible" -> "variable"

This patch was created by

git grep -l '[vV]araible' | xargs -r -t perl -p -i -e 's/\b([Vv]ar)ai(bles?)\b/$1ia$2/g'

Signed-off-by: Uwe Kleine-Koenig <Uwe.Kleine-Koenig@digi.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: fix typo "kernal" -> "kernel"
Uwe Kleine-Koenig [Mon, 12 Jan 2009 22:35:47 +0000 (23:35 +0100)]
trivial: fix typo "kernal" -> "kernel"

Signed-off-by: Uwe Kleine-Koenig <Uwe.Kleine-Koenig@digi.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: fix typo "thier" -> "their"
Uwe Kleine-Koenig [Mon, 12 Jan 2009 22:35:46 +0000 (23:35 +0100)]
trivial: fix typo "thier" -> "their"

Signed-off-by: Uwe Kleine-Koenig <Uwe.Kleine-Koenig@digi.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: Fix dubious bitwise 'and' usage spotted by sparse.
Alexey Zaytsev [Fri, 9 Jan 2009 23:48:28 +0000 (02:48 +0300)]
trivial: Fix dubious bitwise 'and' usage spotted by sparse.

It doesn't change the semantics, but clearly
the logical 'and' was meant to be used here.

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: Fix dubious bitwise 'or' usage spotted by sparse.
Alexey Zaytsev [Fri, 9 Jan 2009 23:48:05 +0000 (02:48 +0300)]
trivial: Fix dubious bitwise 'or' usage spotted by sparse.

It doesn't change the semantics, but it looks like
the logical 'or' was meant to be used here.

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: Fix dubious bitwise 'or' usage spotted by sparse.
Alexey Zaytsev [Fri, 9 Jan 2009 23:47:57 +0000 (02:47 +0300)]
trivial: Fix dubious bitwise 'or' usage spotted by sparse.

It doesn't change the semantics, but it looks like
the logical 'or' was meant to be used here.

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agotrivial: document ext3 semantics of 'ro' option a bit better
Pavel Machek [Fri, 9 Jan 2009 23:47:21 +0000 (00:47 +0100)]
trivial: document ext3 semantics of 'ro' option a bit better

ext3 has quite unexpected semantics or "ro" and defaults are
not what they are documented to be, due to mkfs override.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agoMerge branch 'autosuspend' into for-next
Jiri Kosina [Mon, 30 Mar 2009 13:14:53 +0000 (15:14 +0200)]
Merge branch 'autosuspend' into for-next

Conflicts:

drivers/hid/hid-core.c

16 years agoHID: remove compat stuff
Jiri Slaby [Wed, 18 Mar 2009 08:13:37 +0000 (09:13 +0100)]
HID: remove compat stuff

This removal was scheduled and there is no problem with later
distros to adapt for the new bus, thanks to aliases.

module-init-tools map files are deprecated nowadays, so that
the patch which introduced hid ones into the m-i-t won't be
accepted and hence there is no reason for leaving compat stuff in.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agoHID: constify arrays of struct apple_key_translation
Paul Collins [Sat, 7 Mar 2009 04:07:15 +0000 (17:07 +1300)]
HID: constify arrays of struct apple_key_translation

Mark arrays of struct apple_key_translation const so that they may be placed in
.rodata, and adjust users to suit.

Signed-off-by: Paul Collins <paul@ondioline.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agoHID: add support for Kye/Genius Ergo 525V
Jiri Kosina [Wed, 11 Mar 2009 10:43:27 +0000 (11:43 +0100)]
HID: add support for Kye/Genius Ergo 525V

This device sends several buttons in a separate field, which is
wrongly described in the report descriptor. Fix it in the following
way:

- change led usage page to button
- report size 8 count 1 becomes report size 1 count 8
- the button usage range changed to 4-7 (the mouse has three buttons in
  a different field already).

Reported-by: Tomas Hanak <tomas.hanak@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agoHID: Support Apple mini aluminum keyboard
Ryan Finnie [Thu, 5 Mar 2009 09:18:01 +0000 (10:18 +0100)]
HID: Support Apple mini aluminum keyboard

New USB device ids and quirks for the "mini" Apple USB aluminum
keyboards released Tuesday, model A1242.  Note that while I own the ANSI
(0x021d) version and cannot verify that the ISO (0x021e) and JIS
(0x021f) versions exist, previous releases have followed the triple id
convention for awhile now, and the device ids fit perfectly between
USB_DEVICE_ID_APPLE_GEYSER4_* and USB_DEVICE_ID_APPLE_ALU_*.

Signed-off-by: Ryan Finnie <ryan@finnie.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agoHID: support for Kensington slimblade device
Jiri Kosina [Wed, 4 Mar 2009 15:09:40 +0000 (16:09 +0100)]
HID: support for Kensington slimblade device

0x47d/0x2041 device sends two extra buttons in 0xff00 usage
page and therefore requires special handling.

Reported-by: Jason Noble <nobleja@polezero.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agoHID: DragonRise game controller force feedback driver
Richard Walmsley [Wed, 4 Mar 2009 09:12:04 +0000 (22:12 +1300)]
HID: DragonRise game controller force feedback driver

Adds force feedback support for USB DragonRise Inc. game controllers.
These devices are mass produced in China and distributed under several vendors.

Signed-off-by: Richard Walmsley <richwalm@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agoHID: add support for another version of 0e8f:0003 device in hid-pl
Anssi Hannula [Fri, 27 Feb 2009 21:47:00 +0000 (23:47 +0200)]
HID: add support for another version of 0e8f:0003 device in hid-pl

Add support for another version of 0e8f:0003 device into hid-pl driver.
This device has the values in separate fields and resembles devices
handled by hid-zpff.

Signed-off-by: Anssi Hannula <anssi.hannula@gmail.com>
Tested-by: Pantelis Koukousoulas <pktoss@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agoHID: fix race between usb_register_dev() and hiddev_open()
Oliver Neukum [Thu, 12 Feb 2009 12:17:52 +0000 (13:17 +0100)]
HID: fix race between usb_register_dev() and hiddev_open()

upon further thought this code is still racy.

retval = usb_register_dev(usbhid->intf, &hiddev_class);

here you open a window during which open can happen

if (retval) {
err_hid("Not able to get a minor for this device.");
hid->hiddev = NULL;
kfree(hiddev);
return -1;
} else {
hid->minor = usbhid->intf->minor;
hiddev_table[usbhid->intf->minor - HIDDEV_MINOR_BASE] = hiddev;

and will fail because hiddev_table hasn't been updated

The obvious fix of using a mutex to guard hiddev_table doesn't work because
usb_open() and usb_register_dev() take minor_rwsem and we'd have an AB-BA
deadlock. We need a lock usb_open() also takes in the right order and that leaves
only one option, BKL. I don't like it but I see no alternative.

Once the usb_open() implements something better than lock_kernel(), we could also
do so.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agoHID: bring back possibility to specify vid/pid ignore on module load
Jiri Kosina [Wed, 28 Jan 2009 23:15:51 +0000 (00:15 +0100)]
HID: bring back possibility to specify vid/pid ignore on module load

When hid quirks were converted to specialized driver, the HID_QUIRK_IGNORE
has been moved completely, as the hid_ignore_list[] has been moved into the
generic code.

However userspace already got used to the possibility that modprobing
usbhid with

'quirks=vid:pid:0x4'

makes the device ignored by usbhid driver. So keep this quirk flag in place
for backwards compatibility.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agoHID: make HID_DEBUG defaults consistent
Pavel Machek [Tue, 6 Jan 2009 09:15:27 +0000 (10:15 +0100)]
HID: make HID_DEBUG defaults consistent

Make defaults consistent with help text suggestions for HID_DEBUG.

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
16 years agoMIPS: Alchemy: PB1200: use SMC91X platform data.
Manuel Lauss [Wed, 25 Mar 2009 16:49:31 +0000 (17:49 +0100)]
MIPS: Alchemy: PB1200: use SMC91X platform data.

Add platform data for the smc91x on the PB1200/DB1200, and remove the
now unused AU1X00 entry in smc91x.h.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
16 years agoMIPS: Alchemy: MIPS hazard workarounds are not required.
Manuel Lauss [Wed, 25 Mar 2009 16:49:30 +0000 (17:49 +0100)]
MIPS: Alchemy: MIPS hazard workarounds are not required.

The Alchemy manuals state:

"All pipeline hazards and dependencies are enforced by hardware interlocks
 so that any sequence of instructions is guaranteed to execute correctly.
 Therefore, it is not necessary to pad legacy MIPS hazards (such as
 load delay slots and coprocessor accesses) with NOPs."

Run-tested on Au12x0, without any ill effects.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Alchemy: provide cpu feature overrides.
Manuel Lauss [Wed, 25 Mar 2009 16:49:29 +0000 (17:49 +0100)]
MIPS: Alchemy: provide cpu feature overrides.

Add cpu feature override constants tailored for all Alchemy variants
currently in existence.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
 create mode 100644 arch/mips/include/asm/mach-au1x00/cpu-feature-overrides.h

16 years agoMIPS: Alchemy: unify CPU model constants.
Manuel Lauss [Wed, 25 Mar 2009 16:49:28 +0000 (17:49 +0100)]
MIPS: Alchemy: unify CPU model constants.

This patch removes the various CPU_AU1??? model constants in favor of
a single CPU_ALCHEMY one.

All currently existing Alchemy models are identical in terms of cpu
core and cache size/organization.  The parts of the mips kernel which
need to know the exact CPU revision extract it from the c0_prid register
already; and finally nothing else in-tree depends on those any more.

Should a new variant with slightly different "company options" and/or
"processor revision" bits in c0_prid appear, it will be supported
immediately (minus an exact model string in cpuinfo).

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Make a needlessly global symbol static in arch/mips/kernel/smp.c
Dmitri Vorobiev [Sun, 22 Mar 2009 22:12:29 +0000 (00:12 +0200)]
MIPS: Make a needlessly global symbol static in arch/mips/kernel/smp.c

The variable cpu_callin_map is needlessly defined global, so let's
make it static now.

Build-tested using malta_defconfig.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Fix global namespace pollution in arch/mips/kernel/smp-up.c
Dmitri Vorobiev [Sun, 22 Mar 2009 22:12:28 +0000 (00:12 +0200)]
MIPS: Fix global namespace pollution in arch/mips/kernel/smp-up.c

The following symbols in arch/mips/kernel/smp-up.c are needlessly
defined global:

up_send_ipi_single()
up_init_secondary()
up_smp_finish()
up_cpus_done()
up_boot_secondary()
up_smp_setup()
up_prepare_cpus()

This patch makes the symbols static.

Build-tested using malta_defconfig.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Malta: make a needlessly global integer variable static
Dmitri Vorobiev [Sun, 22 Mar 2009 22:12:27 +0000 (00:12 +0200)]
MIPS: Malta: make a needlessly global integer variable static

The variable `mips_revision_corid' is needlessly defined global in
arch/mips/mti-malta/malta-init.c, and this patch makes it static.

Build-tested with malta_defconfig.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Use BUG_ON() where possible.
Ralf Baechle [Mon, 30 Mar 2009 12:49:44 +0000 (14:49 +0200)]
MIPS: Use BUG_ON() where possible.

Based on original patch by Stoyan Gaydarov <stoyboyker@gmail.com> which
missed a few places.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Convert obsolete irq_desc_t to struct irq_desc
Thomas Gleixner [Wed, 11 Mar 2009 00:45:51 +0000 (00:45 +0000)]
MIPS: Convert obsolete irq_desc_t to struct irq_desc

Impact: cleanup

Convert the last remaining users to struct irq_desc.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Enable GENERIC_HARDIRQS_NO__DO_IRQ for all platforms
Ralf Baechle [Mon, 30 Mar 2009 12:49:44 +0000 (14:49 +0200)]
MIPS: Enable GENERIC_HARDIRQS_NO__DO_IRQ for all platforms

__do_IRQ() is deprecated and will go away.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: EMMA2RH: Set UART mapbase
Shinya Kuribayashi [Sat, 21 Mar 2009 13:11:49 +0000 (22:11 +0900)]
MIPS: EMMA2RH: Set UART mapbase

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: EMMA2RH: Use set_irq_chip_and_handler_name
Shinya Kuribayashi [Sat, 21 Mar 2009 13:08:12 +0000 (22:08 +0900)]
MIPS: EMMA2RH: Use set_irq_chip_and_handler_name

Fix two remaining set_irq_chip_and_handler() users which are encourated
to migrate to set_irq_chip_and_handler_name().

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: EMMA2RH: Use handle_edge_irq() handler for GPIO interrupts
Shinya Kuribayashi [Sat, 21 Mar 2009 13:06:14 +0000 (22:06 +0900)]
MIPS: EMMA2RH: Use handle_edge_irq() handler for GPIO interrupts

EMMA's GPIO interrupts are latched by GPIO interrupt status register.
In this case, we're encouraged to use handle_edge_irq() handler.

The following changes are made along with replacing set_irq_chip() with
set_irq_chip_and_handler_name(,,handle_edge_irq,"edge"):

* Fix emma2rh_gpio_irq_ack not to disable interrupts

  With handle_edge_irq(), we're not expected to disable interrupts
  when chip->ack is served, so fix it accordingly.  We also add a new
  emma2rh_gpio_irq_mask_ack() for chip->mask_ack operation, instead.

* Remove emma2rh_gpio_irq_end(), as chip->end is no longer served.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Mark Eins: Fix cascading interrupt dispatcher
Shinya Kuribayashi [Sat, 21 Mar 2009 13:04:21 +0000 (22:04 +0900)]
MIPS: Mark Eins: Fix cascading interrupt dispatcher

* Fix mis-calculated IRQ bitshift on cascading interrupts
* Prevent cascading interrupt from being processed afterward

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Au1000: convert to using gpiolib
Florian Fainelli [Thu, 15 Jan 2009 15:46:48 +0000 (16:46 +0100)]
MIPS: Au1000: convert to using gpiolib

This patch converts the GPIO board code to use gpiolib.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Stop using <asm-generic/int-l64.h>.
Ralf Baechle [Mon, 30 Mar 2009 12:49:41 +0000 (14:49 +0200)]
MIPS: Stop using <asm-generic/int-l64.h>.

This fixes a few warnings - and triggers a few new ones which the rest of
this patch fixes.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Cavium: Add -Werror
Ralf Baechle [Mon, 30 Mar 2009 12:49:41 +0000 (14:49 +0200)]
MIPS: Cavium: Add -Werror

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Makefile: Add simple make install target.
Ralf Baechle [Mon, 30 Mar 2009 12:49:40 +0000 (14:49 +0200)]
MIPS: Makefile: Add simple make install target.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
16 years agoMIPS: Compat: Zero upper 32-bit of offset_high and offset_low.
Ralf Baechle [Sat, 28 Mar 2009 00:36:09 +0000 (01:36 +0100)]
MIPS: Compat: Zero upper 32-bit of offset_high and offset_low.

Through sys_llseek() arguably should do exactly that it doesn't which
means llseek(2) will fail for o32 processes if offset_low has bit 31 set.

As suggested by Heiko Carstens.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>