]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years agoi2c: Add info->archdata field
Anton Vorontsov [Wed, 22 Oct 2008 18:21:33 +0000 (20:21 +0200)]
i2c: Add info->archdata field

If present the info->archdata is copied into the dev->archdata.
Some (OpenFirmware) platforms need it.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c: Inform about deprecated chips directory
Wolfram Sang [Wed, 22 Oct 2008 18:21:33 +0000 (20:21 +0200)]
i2c: Inform about deprecated chips directory

The chips directory under drivers/i2c is deprecated. Spread the word!

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c: Use pci_ioremap_bar()
Arjan van de Ven [Wed, 22 Oct 2008 18:21:32 +0000 (20:21 +0200)]
i2c: Use pci_ioremap_bar()

Use the newly introduced pci_ioremap_bar() function in drivers/i2c.
pci_ioremap_bar() just takes a pci device and a bar number, with the goal
of making it really hard to get wrong, while also having a central place
to stick sanity checks.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoSchedule removal of the legacy i2c device driver binding model
Jean Delvare [Wed, 22 Oct 2008 18:21:32 +0000 (20:21 +0200)]
Schedule removal of the legacy i2c device driver binding model

The legacy i2c device driver binding model is superseded by the
standard model, so it's time to deprecate it and schedule it for
removal.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c: Clean up <linux/i2c.h>
Jean Delvare [Wed, 22 Oct 2008 18:21:32 +0000 (20:21 +0200)]
i2c: Clean up <linux/i2c.h>

Fix most checkpatch.pl errors and warnings. This includes replacing
spaces with tabs in many places, adding and removing spaces, and
folding long lines.

Also complete a couple prototypes to make it clearer what the
parameters represent.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c: Update and clean up writing-clients document
Jean Delvare [Wed, 22 Oct 2008 18:21:32 +0000 (20:21 +0200)]
i2c: Update and clean up writing-clients document

* Strip trailing white space.
* Remove out-of-date or irrelevant parts.
* Insist on the fact that command is deprecated.
* Fix spelling mistakes and typos.
* Reformat code examples and function prototypes to comply with the
  kernel coding style.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c: Drop 2-byte address block transfer defines
Jean Delvare [Wed, 22 Oct 2008 18:21:31 +0000 (20:21 +0200)]
i2c: Drop 2-byte address block transfer defines

We have no users and no implementers for these transfer types so it
makes little sense to define functionality bits for them.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c: Delete legacy model documentation
Jean Delvare [Wed, 22 Oct 2008 18:21:31 +0000 (20:21 +0200)]
i2c: Delete legacy model documentation

The legacy i2c binding model is deprecated and will be removed soon,
so we no longer need to document it.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c: Constify i2c_get_clientdata's parameter
Jean Delvare [Wed, 22 Oct 2008 18:21:31 +0000 (20:21 +0200)]
i2c: Constify i2c_get_clientdata's parameter

i2c_get_clientdata doesn't change the i2c_client it is passed as a
parameter, so it can be constified. Same for i2c_get_adapdata.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c: Delete outdated client porting guide
Jean Delvare [Wed, 22 Oct 2008 18:21:30 +0000 (20:21 +0200)]
i2c: Delete outdated client porting guide

The document describing how to port i2c chip drivers from Linux 2.4 to
Linux 2.6 is outdated. As I suspect that most drivers that had to be
ported have already been by now, I do not want to spend time updating
it. Let's just delete it instead.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c: Make clear what the class field of i2c_adapter is good for
Wolfram Sang [Wed, 22 Oct 2008 18:21:30 +0000 (20:21 +0200)]
i2c: Make clear what the class field of i2c_adapter is good for

Make clear what the class field of i2c_adapter is good for.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c-algo-pcf: Fix typo in debugging log message
David Miller [Wed, 22 Oct 2008 18:21:30 +0000 (20:21 +0200)]
i2c-algo-pcf: Fix typo in debugging log message

Fix typo in debugging log message.

deteted --> detected

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c-algo-pcf: Add adapter hooks around xfer begin and end
David Miller [Wed, 22 Oct 2008 18:21:30 +0000 (20:21 +0200)]
i2c-algo-pcf: Add adapter hooks around xfer begin and end

Some I2C bus implementations need to synchronize with external
entities, such as system firmware, which might also be programming the
same I2C bus.

In order to facilitate this add ->xfer_begin() and ->xfer_end() hooks
which are invoked around pcf_xfer().

[JD: Make these hooks optional.]

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c-algo-pcf: Pass adapter data into ->waitforpin() method
David Miller [Wed, 22 Oct 2008 18:21:29 +0000 (20:21 +0200)]
i2c-algo-pcf: Pass adapter data into ->waitforpin() method

Pass adapter data into ->waitforpin() method.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agoi2c-i801: Add support for Intel Ibex Peak
Seth Heasley [Wed, 22 Oct 2008 18:21:29 +0000 (20:21 +0200)]
i2c-i801: Add support for Intel Ibex Peak

Adds the Intel Ibex Peak (PCH) SMBus Controller Device IDs.

Signed-off-by: Seth Heasley <seth.heasley@intel.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
17 years agonfsd: clean up expkey_parse error cases
J. Bruce Fields [Mon, 20 Oct 2008 20:34:21 +0000 (16:34 -0400)]
nfsd: clean up expkey_parse error cases

We might as well do all of these at the end.  Fix up a couple minor
style nits while we're there.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agonfsd: Drop reference in expkey_parse error cases
Krishna Kumar [Mon, 20 Oct 2008 06:14:40 +0000 (11:44 +0530)]
nfsd: Drop reference in expkey_parse error cases

Drop reference to export key on error. Compile tested.

Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agonfsd: Fix memory leak in nfsd_getxattr
Krishna Kumar [Wed, 22 Oct 2008 09:18:36 +0000 (14:48 +0530)]
nfsd: Fix memory leak in nfsd_getxattr

Fix a memory leak in nfsd_getxattr. nfsd_getxattr should free up memory
that it allocated if vfs_getxattr fails.

Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agomlx4_core: Get ethernet MTU and default address from firmware
Yevgeny Petrilin [Wed, 22 Oct 2008 17:56:48 +0000 (10:56 -0700)]
mlx4_core: Get ethernet MTU and default address from firmware

Get maximum ethernet MTU and default MAC address from the firmware
QUERY_DEV_CAP command.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoNFSD: Fix BUG during NFSD shutdown processing
Chuck Lever [Wed, 22 Oct 2008 17:12:36 +0000 (13:12 -0400)]
NFSD: Fix BUG during NFSD shutdown processing

The Linux NFS server can be started via a user-space write to
/proc/fs/nfs/threads or to /proc/fs/nfs/portlist.  In the first case,
all default listeners are started (both UDP and TCP).  In the second,
a listener is started only for one specified transport.

The NFS server has to make sure lockd stays up until the last listener
transport goes away.  To support both start-up interfaces, it should
do one lockd_up() for each NFSD listener.

The nfsd_init_socks() function used to do one lockd_up() call for each
svc_create_xprt().  Recently commit
26a414092353590ceaa5955bcb53f863d6ea7549 mistakenly changed
nfsd_init_socks() to do only one lockd_up() call even though it still
does two svc_create_xprt() calls.

The end result is a lockd_down() BUG during NFSD shutdown processing
because nfsd_last_threads() does a lockd_down() call for each entry
on the sv_permsocks list, but the start-up code doesn't do a matching
number of lockd_up() calls.

Add a second lockd_up() in nfsd_init_socks() to make sure the number
of lockd_up() calls matches the number of entries on the NFS servers's
sv_permsocks list.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
17 years agomlx4_core: Support multiple pre-reserved QP regions
Yevgeny Petrilin [Wed, 22 Oct 2008 17:25:29 +0000 (10:25 -0700)]
mlx4_core: Support multiple pre-reserved QP regions

For ethernet support, we need to reserve QPs for the ethernet and
fibre channel driver.  The QPs are reserved at the end of the QP
table.  (This way we assure that they are aligned to their size)

We need to consider these reserved ranges in bitmap creation, so we
extend the mlx4 bitmap utility functions to allow reserved ranges at
both the bottom and the top of the range.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
17 years agoUSB: don't rebind drivers after failed resume or reset
Alan Stern [Tue, 21 Oct 2008 19:40:03 +0000 (15:40 -0400)]
USB: don't rebind drivers after failed resume or reset

This patch (as1152) may help prevent some problems associated with the
new policy of unbinding drivers that don't support suspend/resume or
pre_reset/post_reset.  If for any reason the resume or reset fails, and
the device is logically disconnected, there's no point in trying to
rebind the driver.  So the patch checks for success before carrying
out the unbind/rebind.

There was a report from one user that this fixed a problem he was
experiencing, but the details never became fully clear.  In any case,
adding these tests can't hurt.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUSB: fix memory leak in cdc-acm
Oliver Neukum [Tue, 21 Oct 2008 08:39:04 +0000 (10:39 +0200)]
USB: fix memory leak in cdc-acm

This fixes a memory leak on disconnect in cdc-acm

Thanks to 施金前 for finding it.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUSB: Unusual dev for Mio moov 330 gps
Frédéric Marchal [Mon, 13 Oct 2008 12:00:11 +0000 (14:00 +0200)]
USB: Unusual dev for Mio moov 330 gps

Here is an entry for the unusual_devs.h file to handle a Mio Moov 330 GPS that
stops responding when it is requested to transfer more than 64KB. The patch is
taken against kernel-2.6.27-git3.

Signed-off-by: Frédéric Marchal <frederic.marchal@wowcompany.co
Signed-off-by: Phil Dibowitz <phil@ipom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUSB: cdc-wdm: make module autoload work
Oliver Neukum [Mon, 13 Oct 2008 12:05:20 +0000 (14:05 +0200)]
USB: cdc-wdm: make module autoload work

this fixes an omission that led to no alias being computed for the
cdc-wdm module.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUSB: Fix unneeded endpoint check in pxa27x_udc
Robert Jarzmik [Mon, 13 Oct 2008 18:06:00 +0000 (20:06 +0200)]
USB: Fix unneeded endpoint check in pxa27x_udc

The request allocation code doesn't need to check if the
endpoint is not NULL, as the only caller in
include/linux/usb/gadget.h, usb_ep_alloc_request() needs the
endpoint pointer to have a correct value to trigger the
allocation code.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agousb/gadget: fix kernel-doc warning
Randy Dunlap [Mon, 13 Oct 2008 16:14:52 +0000 (09:14 -0700)]
usb/gadget: fix kernel-doc warning

Fix kernel-doc warning, wrong parameter name listed:

Warning(lin2627-g3-kdocfixes//drivers/usb/gadget/config.c:183): No description found for parameter 'match'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUSB: Speedtouch: add pre_reset and post_reset routines
Alan Stern [Mon, 20 Oct 2008 13:52:12 +0000 (09:52 -0400)]
USB: Speedtouch: add pre_reset and post_reset routines

This patch (as1150) fixes a problem in the speedtch driver.  When it
resets the modem during probe it will be unbound from the other
interfaces it has claimed, because it doesn't define a pre_reset and a
post_reset method.

The patch defines "do-nothing" methods.  This fixes Bugzilla #11767.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUSB: usbtest.c: length, sglen and vary are unsigned, so cannot be negative
roel kluin [Tue, 21 Oct 2008 04:36:44 +0000 (00:36 -0400)]
USB: usbtest.c: length, sglen and vary are unsigned, so cannot be negative

length, sglen and vary are unsigned, so cannot be negative

see
vi drivers/usb/misc/usbtest.c +18
struct usbtest_param {
...
        unsigned                iterations;
        unsigned                length;
        unsigned                vary;
        unsigned                sglen;
...
};

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUSB: support Huawei data card product IDs
fangxiaozhi [Wed, 15 Oct 2008 06:15:36 +0000 (14:15 +0800)]
USB: support Huawei data card product IDs

In this patch, we want to do one thing: add more Huawei product IDs into the
USB driver. Then it can support  more Huawei data card devices. So to declare
the unusual device for new Huawei data card devices in unusual_devs.h and to
declare more new product IDs in option.c.

To modify the data value and length in the function of
usb_stor_huawei_e220_init in initializers.c That's because based on the USB
standard, while sending SET_FETURE_D to the device, it requires the
corresponding data to be zero, and its sending length also must be zero.  In
our old solution, it can be compatible with our WCDMA data card devices, but
can not support our CDMA data card devices.  But in this new solution, it can
be compatible with all of our data card devices.

Signed-off-by: fangxiaozhi <huananhu@huawei.com>
Signed-off-by: Phil Dibowitz <phil@ipom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUSB: add ZTE MF626 USB GSM modem entry
Mikhail Gusarov [Sat, 18 Oct 2008 11:20:02 +0000 (18:20 +0700)]
USB: add ZTE MF626 USB GSM modem entry

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUSB: storage: Avoid I/O errors when issuing SCSI ioctls to JMicron USB/ATA bridge
Phil Dibowitz [Sun, 19 Oct 2008 06:17:54 +0000 (08:17 +0200)]
USB: storage: Avoid I/O errors when issuing SCSI ioctls to JMicron USB/ATA bridge

Here's the patch that implements the fix you suggested to avoid the
I/O errors that I was running into with my new USB enclosure with a
JMicron USB/ATA bridge, while issuing scsi-io USN or other such
queries used by Fedora's mkinitrd.
http://bugzilla.kernel.org/show_bug.cgi?id=9638#c85

/proc/bus/usb/devices:
T:  Bus=01 Lev=01 Prnt=01 Port=07 Cnt=04 Dev#=  5 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=152d ProdID=2329 Rev= 1.00
S:  Manufacturer=JMicron
S:  Product=USB to ATA/ATAPI Bridge
S:  SerialNumber=DE5088854FFF
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

(patch applied and retested on a modified 2.6.27.2-libre.24.rc1.fc10)

Signed-off-by: Phil Dibowitz <phil@ipom.com>
Cc: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUSB: Fix debugfs_create_file's error checking method for usb/gadget/s3c2410_udc
Zhaolei [Mon, 20 Oct 2008 10:53:04 +0000 (18:53 +0800)]
USB: Fix debugfs_create_file's error checking method for usb/gadget/s3c2410_udc

debugfs_create_file() returns NULL if an error occurs, returns -ENODEV
when debugfs is not enabled in the kernel.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoUSB: ohci: add support for tmio-ohci cell
Dmitry Baryshkov [Wed, 8 Oct 2008 12:14:23 +0000 (16:14 +0400)]
USB: ohci: add support for tmio-ohci cell

Some Toshiba Mobile I/O chips have OHCI controller built in.
E.g. the tc6393xb chip found in several Toshiba e-Series PDAs
and in Sharp Zaurus SL-6000 PDA. This adds platform glue
to support OHCI function of the chip.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Acked-by: Ian Molton <spyro@f2s.com>
Cc: Ian Molton <spyro@f2s.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: usbip: fix build warning on 64bit kernels
Greg Kroah-Hartman [Tue, 9 Apr 2002 19:14:34 +0000 (12:14 -0700)]
Staging: usbip: fix build warning on 64bit kernels

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: me4000: remove some compiler warnings
Greg Kroah-Hartman [Tue, 21 Oct 2008 20:44:25 +0000 (15:44 -0500)]
Staging: me4000: remove some compiler warnings

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: wbusb: fix a bunch of compiler warnings
Greg Kroah-Hartman [Tue, 21 Oct 2008 17:41:45 +0000 (10:41 -0700)]
Staging: wbusb: fix a bunch of compiler warnings

First cut at removing some obvious compiler warnings.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: w35und: module init cleanup
Pekka Enberg [Tue, 21 Oct 2008 10:01:42 +0000 (13:01 +0300)]
Staging: w35und: module init cleanup

This patch cleans up the module init functions a bit and removes the redundant
device ID check from wb35_probe() function.

Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: w35und: use gotos for error handling
Pekka Enberg [Tue, 21 Oct 2008 09:14:58 +0000 (12:14 +0300)]
Staging: w35und: use gotos for error handling

The driver code uses do { } while (0) together with the break statement to
emulate gotos for error handling. Fix that up by using the goto statement
instead.

Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: w35und: remove spinlock wrappers
Pekka Enberg [Tue, 21 Oct 2008 08:45:02 +0000 (11:45 +0300)]
Staging: w35und: remove spinlock wrappers

This patch removes the OS_SPIN_LOCK and related wrappers from the driver code.

Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: sxg: fix compiler warnings.
Greg Kroah-Hartman [Tue, 21 Oct 2008 17:41:45 +0000 (10:41 -0700)]
Staging: sxg: fix compiler warnings.

sizeof() isn't an unsigned long :(

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: sxg: fix up unused function warnings
Greg Kroah-Hartman [Tue, 21 Oct 2008 17:41:45 +0000 (10:41 -0700)]
Staging: sxg: fix up unused function warnings

These functions aren't used yet, so put them behind the
proper #define so the compiler doesn't complain about them.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: sxg: clean up C99 comments
J.R. Mauro [Mon, 20 Oct 2008 23:28:58 +0000 (19:28 -0400)]
Staging: sxg: clean up C99 comments

Change  C99 comments to C89 comments

Some nested comments seem to have been missed and some blocks are redundantly
commented, but at least most of the //'s are gone

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: Lindent the echo driver
J.R. Mauro [Mon, 20 Oct 2008 23:01:31 +0000 (19:01 -0400)]
Staging: Lindent the echo driver

Lindent drivers/staging/echo*

Signed-off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: SLICOSS: Free multicast list at driver exit
Lior Dotan [Sun, 12 Oct 2008 06:43:33 +0000 (08:43 +0200)]
Staging: SLICOSS: Free multicast list at driver exit

The multicast address list is allocated in slic_mcast_add_list() but
never freed.

Signed-off-by: Lior Dotan <liodot@gmail.com>
17 years agoStaging: PCC-ACPI: Fix all checkpatch errors
Lior Dotan [Tue, 14 Oct 2008 08:43:57 +0000 (10:43 +0200)]
Staging: PCC-ACPI: Fix all checkpatch errors

Fix all complaints that checkpatch had regarding this patch

Signed-off-by: Lior Dotan <liodot@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: pcc-acpi: update to latest version
Greg Kroah-Hartman [Wed, 22 Oct 2008 05:21:51 +0000 (22:21 -0700)]
Staging: pcc-acpi: update to latest version

Import the changes from the upstream driver into this version to keep
things up to date.

Cc: Yokota Hiroshi <yokota@netlab.cs.tsukuba.ac.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: Clean up sxg driver
J.R. Mauro [Tue, 14 Oct 2008 22:00:15 +0000 (18:00 -0400)]
Staging: Clean up sxg driver

Lindent the rest of the files in drivers/staging/sxg

Signed off by: J.R. Mauro <jrm8005@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: remove remaining uses of __FUNCTION__
Harvey Harrison [Mon, 20 Oct 2008 22:45:25 +0000 (15:45 -0700)]
Staging: remove remaining uses of __FUNCTION__

__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: add poch driver
Vijay Kumar [Sun, 19 Oct 2008 03:28:46 +0000 (08:58 +0530)]
Staging: add poch driver

This is the first cut at a driver for the Redrapids Pocket Change
CardBus devices.

Receiving data seems to work properly, but overflows happen on transmit.
Still needs more hardware debugging to work properly.

(cleaned up to use proper driver core api functions by Greg)

From: Vijay Kumar <vijaykumar@bravegnu.org>
Cc: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Cc: Jaya Kumar <jayakumar.lkml@gmail.com>
Cc: Ken Sienski <sienski@redrapids.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: wlan-ng: fix build error if wireless networking is not enabled
Greg Kroah-Hartman [Mon, 20 Oct 2008 21:32:33 +0000 (14:32 -0700)]
Staging: wlan-ng: fix build error if wireless networking is not enabled

Thanks to Ingo for pointing this out.

Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: echo: remove annoying "end of function" markers
Pekka Enberg [Fri, 17 Oct 2008 17:57:08 +0000 (20:57 +0300)]
Staging: echo: remove annoying "end of function" markers

This patch removes the very noisy "end of function" markers that are
very annoying when reading the driver code.

Cc: David Rowe <david@rowetel.com>
Cc: Steve Underwood <steveu@coppice.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: echo: remove __cplusplus macro magic
Pekka Enberg [Fri, 17 Oct 2008 17:56:00 +0000 (20:56 +0300)]
Staging: echo: remove __cplusplus macro magic

The kernel is written in C, so remove the __cplusplus macro magic from the
driver.

Cc: David Rowe <david@rowetel.com>
Cc: Steve Underwood <steveu@coppice.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: echo: remove dead code
Pekka Enberg [Fri, 17 Oct 2008 17:55:32 +0000 (20:55 +0300)]
Staging: echo: remove dead code

This patch removes dead code that is wrapped in #ifndef __KERNEL__.

Cc: David Rowe <david@rowetel.com>
Cc: Steve Underwood <steveu@coppice.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: echo: fix kmalloc()/kfree() uses
Pekka Enberg [Fri, 17 Oct 2008 17:55:03 +0000 (20:55 +0300)]
Staging: echo: fix kmalloc()/kfree() uses

This patch removes the malloc()/free() macro wrappers and converts
call-sites to use kcalloc() and kzalloc() where appropriate. I also
fixed up out-of-memory error handling in couple of places where it was
broken.

Cc: David Rowe <david@rowetel.com>
Cc: Steve Underwood <steveu@coppice.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: echo: Replace __BLACKFIN__ASM__ with __bfin__
Tzafrir Cohen [Sun, 12 Oct 2008 06:13:21 +0000 (08:13 +0200)]
Staging: echo: Replace __BLACKFIN__ASM__ with __bfin__

Signed-off-by: Tzafrir Cohen <tzafrir@cohens.org.il>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: echo: Changed preffix from echo_can_ to oslec_
Tzafrir Cohen [Sun, 12 Oct 2008 05:17:26 +0000 (07:17 +0200)]
Staging: echo: Changed preffix from echo_can_ to oslec_

Signed-off-by: Tzafrir Cohen <tzafrir@cohens.org.il>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: echo: Replace echo_can_state_t with struct echo_can_state
Tzafrir Cohen [Sun, 12 Oct 2008 05:00:24 +0000 (07:00 +0200)]
Staging: echo: Replace echo_can_state_t with struct echo_can_state

Signed-off-by: Tzafrir Cohen <tzafrir@cohens.org.il>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: echo: Export interface functions. Add module headers.
Tzafrir Cohen [Sun, 12 Oct 2008 04:55:40 +0000 (06:55 +0200)]
Staging: echo: Export interface functions. Add module headers.

Signed-off-by: Tzafrir Cohen <tzafrir@cohens.org.il>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: echo: A separate oslec.h for external interface
Tzafrir Cohen [Sun, 12 Oct 2008 04:03:14 +0000 (06:03 +0200)]
Staging: echo: A separate oslec.h for external interface

Split out the external interface to a separate file called oslec.h .

Give the struct a name while we're at it.

Signed-off-by: Tzafrir Cohen <tzafrir@cohens.org.il>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: sxg: replace __FUNCTION__ with __func__
Harvey Harrison [Fri, 17 Oct 2008 21:46:10 +0000 (14:46 -0700)]
Staging: sxg: replace __FUNCTION__ with __func__

__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: w35und: remove some typedefs
Pekka Enberg [Mon, 20 Oct 2008 21:03:41 +0000 (00:03 +0300)]
Staging: w35und: remove some typedefs

This patch removes some obfuscating typedefs from the driver code.

Cc: Pavel Machek <pavel@suse.cz>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: SLICOSS: remove unused #include <version.h>
Huang Weiyi [Sat, 18 Oct 2008 04:41:57 +0000 (12:41 +0800)]
Staging: SLICOSS: remove unused #include <version.h>

The file(s) below do not use LINUX_VERSION_CODE nor KERNEL_VERSION.
  drivers/staging/slicoss/slicoss.c

This patch removes the said #include <version.h>.

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: go7007: remove unused #include <version.h>
Huang Weiyi [Sat, 18 Oct 2008 04:41:55 +0000 (12:41 +0800)]
Staging: go7007: remove unused #include <version.h>

The file(s) below do not use LINUX_VERSION_CODE nor KERNEL_VERSION.
  drivers/staging/go7007/go7007-driver.c
  drivers/staging/go7007/go7007-fw.c
  drivers/staging/go7007/go7007-i2c.c
  drivers/staging/go7007/go7007-usb.c
  drivers/staging/go7007/snd-go7007.c
  drivers/staging/go7007/wis-ov7640.c
  drivers/staging/go7007/wis-saa7113.c
  drivers/staging/go7007/wis-saa7115.c
  drivers/staging/go7007/wis-sony-tuner.c
  drivers/staging/go7007/wis-tw2804.c
  drivers/staging/go7007/wis-tw9903.c
  drivers/staging/go7007/wis-uda1342.c

This patch removes the said #include <version.h>.

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agostaging: wlan-ng: prism2: remove more duplicated #include
Huang Weiyi [Sat, 18 Oct 2008 03:53:07 +0000 (11:53 +0800)]
staging: wlan-ng: prism2: remove more duplicated #include

Removed duplicated #include "version.h" in
drivers/staging/wlan-ng/p80211wep.c.

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: wlan-ng: prism2: remove duplicated #include
Huang Weiyi [Sat, 18 Oct 2008 03:53:05 +0000 (11:53 +0800)]
Staging: wlan-ng: prism2: remove duplicated #include

Removed duplicated #include "wlan_compat.h" in
drivers/staging/wlan-ng/prism2mib.c.

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: et131x: remove duplicated #include's
Huang Weiyi [Sat, 18 Oct 2008 03:52:13 +0000 (11:52 +0800)]
Staging: et131x: remove duplicated #include's

Removed duplicated #include's in file(s) below,
 - drivers/staging/et131x/et1310_phy.c
      et1310_jagcore.h
      linux/delay.h
 - drivers/staging/et131x/et131x_debug.c
      et1310_jagcore.h
 - drivers/staging/et131x/et131x_initpci.c
      et1310_jagcore.h

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: SLICOSS: remove duplicated #include's
Huang Weiyi [Sat, 18 Oct 2008 03:52:11 +0000 (11:52 +0800)]
Staging: SLICOSS: remove duplicated #include's

Removed duplicated #include's in drivers/staging/slicoss/slicoss.c.
  linux/delay.h
  linux/etherdevice.h
  linux/init.h
  linux/netdevice.h
  linux/pci.h
  linux/skbuff.h
  linux/slab.h
  linux/string.h

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: Fixes for me4000 pci data collection driver
Lior Dotan [Fri, 17 Oct 2008 09:30:07 +0000 (11:30 +0200)]
Staging: Fixes for me4000 pci data collection driver

Following Andrew Morton's review for this patch I made a patch that
fixes most of the remarks.
I've converted the sleep_on_timeout to wait_event_timeout but I
probably not in the right way.
Also I don't know what's the problem with the calls for get_user() so
I left them untouched.

Signed-off-by: Lior Dotan <liodot@gmail.com>
Cc: Andrew Morton <akpm@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agostaging: balance parenthesis in wlan-ng headers
Mariusz Kozlowski [Sat, 18 Oct 2008 13:46:39 +0000 (15:46 +0200)]
staging: balance parenthesis in wlan-ng headers

Balance parenthesis in HFA384x_CMD_QOS_GET macro.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agostaging: fix potential build error in slicoss driver
Mariusz Kozlowski [Sat, 18 Oct 2008 13:43:27 +0000 (15:43 +0200)]
staging: fix potential build error in slicoss driver

This hides under DEBUG_REGISTER_TRACE so probably
not visible to many people.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: Fix leak in drivers/staging/at76_usb.c
Diego Calleja [Sat, 18 Oct 2008 14:53:37 +0000 (16:53 +0200)]
Staging: Fix leak in drivers/staging/at76_usb.c

Fix leak in at76_usb as reported in:
http://bugzilla.kernel.org/show_bug.cgi?id=11778

Reported-by: Daniel Marjamäki <danielm77@spray.se>
Signed-off-by: Diego Calleja <diegocg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: document 4k stack problem for winbond driver
Greg Kroah-Hartman [Mon, 20 Oct 2008 20:45:15 +0000 (13:45 -0700)]
Staging: document 4k stack problem for winbond driver

As noticed by Arjan

Cc: Arjan van de Ven <arjan@infradead.org>
Cc: Pavel Machek <pavel@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agolinux-next: build failure
Stephen Rothwell [Mon, 20 Oct 2008 11:59:18 +0000 (22:59 +1100)]
linux-next: build failure

sxghif.h has code that explicitly will not build fo other architecures.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: W35UND should depend on USB
Geert Uytterhoeven [Sat, 18 Oct 2008 20:55:41 +0000 (22:55 +0200)]
Staging: W35UND should depend on USB

W35UND should depend on USB

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoStaging: add pcc-acpi driver
Hiroshi Miura [Wed, 22 Oct 2008 16:56:28 +0000 (09:56 -0700)]
Staging: add pcc-acpi driver

Adds the pcc-acpi driver to the staging tree.

From: Hiroshi Miura <miura@da-cha.org>
Cc: YOKOTA Hiroshi <yokota@netlab.is.tsukuba.ac.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
17 years agoALSA: ASoC: OMAP: Continue fixing DSP DAI format in McBSP DAI driver
Jarkko Nikula [Wed, 22 Oct 2008 12:00:29 +0000 (15:00 +0300)]
ALSA: ASoC: OMAP: Continue fixing DSP DAI format in McBSP DAI driver

Fix "ASoC: OMAP: Fix DSP DAI format in McBSP DAI driver" was not correct
due misunderstanding of DSP_A format and similar error in TLV320AIC33
codec which was used to test the original fix.

This patch corrects now DSP_A format in OMAP McBSP DAI driver and is
verified with TLV320AIC23 codec that's implementing DSP_A correctly.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Cc: Arun KS <arunks@mistralsolutions.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agox86: fix section mismatch warning - apic_x2apic_phys
Marcin Slusarz [Sun, 12 Oct 2008 09:46:23 +0000 (11:46 +0200)]
x86: fix section mismatch warning - apic_x2apic_phys

Impact: cleanup only, no functionality changed

WARNING: vmlinux.o(.data+0xc008): Section mismatch in reference from the variable apic_x2apic_phys to the function .init.text:x2apic_acpi_madt_oem_check()
The variable apic_x2apic_phys references
the function __init x2apic_acpi_madt_oem_check()

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: fix section mismatch warning - apic_x2apic_cluster
Marcin Slusarz [Sun, 12 Oct 2008 09:44:11 +0000 (11:44 +0200)]
x86: fix section mismatch warning - apic_x2apic_cluster

Impact: cleanup only, no functionality changed

WARNING: vmlinux.o(.data+0xbf88): Section mismatch in reference from the variable apic_x2apic_cluster to the function .init.text:x2apic_acpi_madt_oem_check()
The variable apic_x2apic_cluster references
the function __init x2apic_acpi_madt_oem_check()

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: fix section mismatch warning - apic_x2apic_uv_x
Marcin Slusarz [Sun, 12 Oct 2008 09:44:10 +0000 (11:44 +0200)]
x86: fix section mismatch warning - apic_x2apic_uv_x

Impact: cleanup only, no functionality changed

WARNING: vmlinux.o(.data+0xbf08): Section mismatch in reference from the variable apic_x2apic_uv_x to the function .init.text:uv_acpi_madt_oem_check()
The variable apic_x2apic_uv_x references
the function __init uv_acpi_madt_oem_check()

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: fix section mismatch warning - apic_physflat
Marcin Slusarz [Sun, 12 Oct 2008 09:44:09 +0000 (11:44 +0200)]
x86: fix section mismatch warning - apic_physflat

Impact: cleanup only, no functionality changed

WARNING: vmlinux.o(.data+0xbe88): Section mismatch in reference from the variable apic_physflat to the function .init.text:physflat_acpi_madt_oem_check()
The variable apic_physflat references
the function __init physflat_acpi_madt_oem_check()

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: fix section mismatch warning - apic_flat
Marcin Slusarz [Sun, 12 Oct 2008 09:44:08 +0000 (11:44 +0200)]
x86: fix section mismatch warning - apic_flat

Impact: cleanup only, no functionality changed

WARNING: vmlinux.o(.data+0xbe08): Section mismatch in reference from the variable apic_flat to the function .init.text:flat_acpi_madt_oem_check()
The variable apic_flat references
the function __init flat_acpi_madt_oem_check()

This is harmless, because the .acpi_madt_oem_check is only called
during init time. But we keep the function pointer around in a .data
function pointer template, so it's better we do not keep that stale
- so mark this function non-__init.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoALSA: Ensure PXA runtime data is initialised
Mark Brown [Wed, 22 Oct 2008 12:27:49 +0000 (13:27 +0100)]
ALSA: Ensure PXA runtime data is initialised

The rest of the code relies on the runtime data being zero initialised
so we need to use kzalloc() to allocate it.

Reported-by: Oliver Ford <ipaqlinux@oliford.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agox86: memtest fix use of reserve_early()
Daniele Calore [Mon, 13 Oct 2008 08:34:12 +0000 (10:34 +0200)]
x86: memtest fix use of reserve_early()

Hi all,

Wrong usage of 2nd parameter in reserve_early call.
66/75: reserve_early(start_bad, last_bad - start_bad, "BAD RAM");
                                ^^^^^^^^^^^^^^^^^^^^

The correct way is to use 'end' address and not 'size'.
As a bonus a fix to the printk format.

Signed-off-by: Daniele Calore <orkaan@orkaan.org>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoring-buffer: fix free page
Steven Rostedt [Mon, 13 Oct 2008 14:22:06 +0000 (10:22 -0400)]
ring-buffer: fix free page

The pages of a buffer was originally pointing to the page struct, it
now points to the page address. The freeing of the page still uses
the page frame free "__free_page" instead of the correct free_page to
the address.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86 syscall.h: fix argument order
Roland McGrath [Tue, 14 Oct 2008 01:40:04 +0000 (18:40 -0700)]
x86 syscall.h: fix argument order

Petr Tesarik noticed that I'd bungled the syscall_get_arguments code for
64-bit kernels, so it inverted the order of the syscall argument registers.
Petr wrote a patch to fix that, and I've amended it to fix the same braino
in the syscall_set_arguments code.

Original-by: Petr Tesarik <ptesarik@suse.cz>
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86/tlb_uv: remove strange mc146818rtc include
Jeremy Fitzhardinge [Wed, 15 Oct 2008 04:43:43 +0000 (21:43 -0700)]
x86/tlb_uv: remove strange mc146818rtc include

For some reason tlb_uv was including linux/mc146818rtc.h.  It really
just needs linux/seq_file.h

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citix.com>
Cc: Cliff Wickman <cpw@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: remove redundant KERN_DEBUG on pr_debug
Gustavo F. Padovan [Wed, 15 Oct 2008 13:37:04 +0000 (10:37 -0300)]
x86: remove redundant KERN_DEBUG on pr_debug

pr_debug don't need KERN_DEBUG.

Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: do_boot_cpu - check if we have ESR register
Cyrill Gorcunov [Wed, 22 Oct 2008 14:00:09 +0000 (18:00 +0400)]
x86: do_boot_cpu - check if we have ESR register

Impact: fix APIC IRQ irregularities on certain older boxes

We should touch the APIC ESR register if only we have it.

The patch fixes the problem mentioned by Max Kellermann:

http://lkml.org/lkml/2008/10/17/147

Bisected-by: Max Kellermann <mk@cm4all.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
[ mingo@elte.hu: build fix ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agotracing/fastboot: fix row order in bootgraph.pl
Alan Jenkins [Tue, 14 Oct 2008 13:19:15 +0000 (14:19 +0100)]
tracing/fastboot: fix row order in bootgraph.pl

When bootgraph.pl parses a file, it gives one row for each initcall's
pid.  But they are displayed in random (perl hash) order.  Let's
sort the pids by the start time of their first initcall instead.

This helps trace module initcalls, where each has a separate pid.
bootgraph.pl will show module initcalls during the initramfs; it may
also be adapted to show subsequent module initcalls.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Acked-by: Frédéric Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agotracing/fastboot: fix bootgraph.pl to run with "use strict"
Alan Jenkins [Tue, 14 Oct 2008 13:18:07 +0000 (14:18 +0100)]
tracing/fastboot: fix bootgraph.pl to run with "use strict"

As a perl novice, I would prefer to have the benefit of the interpreters'
wisdom.  It turns out there were already some warnings, so let's fix them.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Acked-by: Frédéric Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoxen: compilation fix of drivers/xen/events.c on IA64
Isaku Yamahata [Wed, 15 Oct 2008 00:50:44 +0000 (17:50 -0700)]
xen: compilation fix of drivers/xen/events.c on IA64

use set_xen_guest_handle() instead of direct assigning.

> linux-2.6/drivers/xen/events.c: In function 'xen_poll_irq':
> linux-2.6/drivers/xen/events.c:757: error: incompatible types in assignment
> make[4]: *** [drivers/xen/events.o] Error 1

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoxen: compilation fix fo xen CPU hotplugging
Isaku Yamahata [Wed, 15 Oct 2008 00:50:43 +0000 (17:50 -0700)]
xen: compilation fix fo xen CPU hotplugging

This patch fixes compilation error on ia64.
include asm/xen/hypervisor.h instead of asm-x86/xen/hypervisor.h
use xen_pv_domain() instead of is_running_on_xen()

>   CC      drivers/xen/cpu_hotplug.o
> In file included from /linux-2.6/drivers/xen/cpu_hotplug.c:5:
> /linux-2.6/include/asm-x86/xen/hypervisor.h:44:22: error: asm/desc.h: No such file or directory
> /linux-2.6/include/asm-x86/xen/hypervisor.h:66:1: warning: "MULTI_UVMFLAGS_INDEX" redefined
> In file included from /linux-2.6/include/asm-x86/xen/hypervisor.h:52,
>                  from /linux-2.6/drivers/xen/cpu_hotplug.c:5:
> /linux-2.6/arch/ia64/include/asm/xen/hypercall.h:233:1: warning: this is the location of the previous definition
> /linux-2.6/drivers/xen/cpu_hotplug.c: In function 'setup_vcpu_hotplug_event':
> /linux-2.6/drivers/xen/cpu_hotplug.c:81: error: implicit declaration of function 'is_running_on_xen'
> make[4]: *** [drivers/xen/cpu_hotplug.o] Error 1
> make[4]: *** Waiting for unfinished jobs....

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoxen: portability clean up and some minor clean up for xencomm.c
Isaku Yamahata [Wed, 15 Oct 2008 00:50:41 +0000 (17:50 -0700)]
xen: portability clean up and some minor clean up for xencomm.c

clean up of xencomm.c. is_phys_contiguous() is arch dependent
function that depends on how virtual memory are laid out.
So split out the function into arch specific code.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: "Luck, Tony" <tony.luck@intel.com>
17 years agoxen: don't reload cr3 on suspend
Jeremy Fitzhardinge [Wed, 15 Oct 2008 00:50:40 +0000 (17:50 -0700)]
xen: don't reload cr3 on suspend

It isn't necessary, and it makes the code needlessly non-portable.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agoHID: fix hidbus/appletouch device binding regression
Jiri Slaby [Wed, 22 Oct 2008 12:47:18 +0000 (14:47 +0200)]
HID: fix hidbus/appletouch device binding regression

The appletouch mouse devices are grabbed by the hid bus and not
released even if apple driver says ENODEV (as expected) -- these
are composite USB devices, for which we only ignore the mouse
interface. This is currently not handled by hidbus code properly.

Move the ignoring one level upper to forbid the hid layer to grab the
device.

Reported-by: Justin Mattock <justinmattock@gmail.com>
Reported-by: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agoHID: add hid_type to general hid struct
Jiri Slaby [Wed, 22 Oct 2008 12:45:11 +0000 (14:45 +0200)]
HID: add hid_type to general hid struct

Add type to the hid structure to distinguish to which device type
(now only mouse) we are talking to. Needed for per device type ignore
list support.

Note: this patch leaves the type as unknown for bluetooth devices,
there is not support for this in the hidp code.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
17 years agox86: MAINTAINERS change for AMD microcode patch loader
Peter Oruba [Thu, 16 Oct 2008 16:43:48 +0000 (18:43 +0200)]
x86: MAINTAINERS change for AMD microcode patch loader

Changed MAINTAINERS entry for AMD microcode patch loader.

Signed-off-by: Peter Oruba <peter.oruba@amd.com>
Cc: Andreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86/proc: fix /proc/cpuinfo cpu offline bug
Lai Jiangshan [Wed, 22 Oct 2008 04:42:30 +0000 (12:42 +0800)]
x86/proc: fix /proc/cpuinfo cpu offline bug

Impact: fix missing CPUs in /proc/cpuinfo after CPU hotunplug/hotreplug

In my test, I found that if a cpu has been offline,
the next cpus may not be shown in the /proc/cpuinfo.

if one read() cannot consume the whole /proc/cpuinfo,
c_start() will be called again in the next read() calls.
And *pos has been increased by 1 by the caller(seq_read()).
if this time the cpu#*pos is offline, c_start() will return
NULL, and the next cpus can not be shown.

this fix use next_cpu_nr(*pos - 1, cpu_online_map) to
search the next unshown cpu.

the most easy way to reproduce this bug:
1) offline cpu#1             (cpu#0 is online)
2) dd ibs=2 if=/proc/cpuinfo
   the result is that only cpu#0 is shown.
   cpu#2 and cpu#3 .... cannot be shown in /proc/cpuinfo
   it's bug.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: call dmi-quirks for HP Laptops after early-quirks are executed
Andreas Herrmann [Wed, 22 Oct 2008 11:08:31 +0000 (13:08 +0200)]
x86: call dmi-quirks for HP Laptops after early-quirks are executed

Impact: make warning message disappear - functionality unchanged

Problems with bogus IRQ0 override of those laptops should be fixed
with commits

x86: SB600: skip IRQ0 override if it is not routed to INT2 of IOAPIC
x86: SB450: skip IRQ0 override if it is not routed to INT2 of IOAPIC

that introduce early-quirks based on chipset configuration.

For further information, see
http://bugzilla.kernel.org/show_bug.cgi?id=11516

Instead of removing the related dmi-quirks completely we'd like to
keep them for (at least) one kernel version -- to double-check whether
the early-quirks really took effect. But the dmi-quirks need to be
called after early-quirks are executed. With this patch calling
sequence for dmi-quriks is changed as follows:

 acpi_boot_table_init()   (dmi-quirks)
 ...
 early_quirks()           (detect bogus IRQ0 override)
 ...
 acpi_boot_init()         (late dmi-quirks and setup IO APIC)

Note: Plan is to remove the "late dmi-quirks" with next kernel version.

Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>