Commit Graph

159117 Commits

Author SHA1 Message Date
Matt Sealey
192faac49c put back accidentially removed original spi chipselect code for SPI_MXC 2010-12-03 01:27:44 -06:00
Matt Sealey
3488bb1604 NOR/PMIC add support for all 3 possible SPI drivers 2010-12-03 00:40:51 -06:00
Matt Sealey
bfb9c91d83 Add support for all 3 possible SPI drivers 2010-12-03 00:33:17 -06:00
Matt Sealey
fcde2d5221 Drop in spi_imx from mainline. Not enabled in any config. 2010-12-03 00:32:16 -06:00
Marek Szyprowski
03e7116c64 spi/bitbang: add support for SPI_MASTER_NO_{TX, RX} modes
This patch adds a new flags argument to bitbang_txrx_be_cpha0 and
bitbang_txrx_be_cpha1 transfer functions. This enables support for
SPI_MASTER_NO_{TX,RX} transfer modes. The change should have no impact
on speed of the existing drivers. bitbank_txrx_* functions are usually
inlined into the drivers. When the argument is equal to constant zero,
the optimizer would be able to eliminate the dead code (flags checks)
easily. Tested on ARM and GCC 4.4.x and in all cases the checks were
eliminated in the inlined function.

Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2010-12-03 00:02:40 -06:00
hartleys
66552f8908 spi: move bitbang txrx utility functions to private header
A number of files in drivers/spi fail checkincludes.pl due to the double
include of <linux/spi/spi_bitbang.h>.

The first include is needed to get the struct spi_bitbang definition and
the spi_bitbang_* function prototypes.

The second include happens after defining EXPAND_BITBANG_TXRX to get the
inlined bitbang_txrx_* utility functions.

The <linux/spi/spi_bitbang.h> header is also included by a number of other
spi drivers, as well as some arch/ code, in order to use struct spi_bitbang
and the associated functions.

To fix the double include, and remove any potential confusion about it, move
the inlined bitbang_txrx_* functions to a new private header in drivers/spi
and also remove the need to define EXPAND_BITBANG_TXRX.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2010-12-03 00:01:39 -06:00
Brian Niebuhr
287f9b787f spi/bitbang: reinitialize transfer parameters for every message
This patch fixes the setup_transfer logic to account for the case where
multiple messages to different SPI devices are in the queue simultaneously.
With the current logic, the second message in the queue will end up
using the transfer parameters for the previous message in the queue.

The fix is to reinitialize the transfer parameters for each message
rather than only once on the first message.

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2010-12-02 23:59:26 -06:00
Marc Kleine-Budde
07be632436 i2c-imx: do not allow interruptions when waiting for I2C to complete
The i2c_imx_trx_complete() function is using
wait_event_interruptible_timeout() to wait for the I2C controller to
signal that it has completed an I2C bus operation. If the process that
causes the I2C operation receives a signal, the wait will be
interrupted, returning an error. It is better to let the I2C operation
finished before handling the signal (i.e. returning into userspace).

It is safe to use wait_event_timeout() instead, because the timeout
will allow the process to exit if the I2C bus hangs. It's also better
to allow the I2C operation to finish, because unacknowledged I2C
operations can cause the I2C bus to hang.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
2010-12-02 23:51:35 -06:00
Matt Sealey
2b6144da0f udlfb: update to the version in linus' repo. modified for usb on 2.6.31. 2010-12-02 15:26:28 -06:00
Matt Sealey
3ce62020bc config (mx): oldconfig tweaks to stop it stopping compiles. checked in the wrong one last night. 2010-12-02 12:39:58 -06:00
Matt Sealey
d3ff8eb59e bump to .12 2010-12-02 01:06:45 -06:00
Matt Sealey
1b81f6305a config (mx): sync with smartbook 2010-12-02 01:06:23 -06:00
Matt Sealey
f14b542bdc config (sb): put networking options back in. sync ubuntu config for bsd ptys. bluetooth cleanup. 2010-12-02 00:30:55 -06:00
Matt Sealey
dbd056381a config (sb): fill out crypto 2010-12-01 23:17:42 -06:00
Kay Sievers
98ec231ac0 vfs: get_sb_single() - do not pass options twice
Filesystem code usually destroys the option buffer while
parsing it. This leads to errors when the same buffer is
passed twice. In case we fill a new superblock do not call
remount.

This is needed to quite a warning that the debugfs code
causes every boot.

Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-12-01 22:15:15 -06:00
Matt Sealey
f09a124fbd rt2870: make Kconfig match mainline (superficial change) 2010-12-01 22:13:26 -06:00
Matt Sealey
0657eecfa0 config (sb): tmpfs acls, OSS compatibility enabled 2010-12-01 22:12:26 -06:00
Matt Sealey
a649174915 config (sb): cleanup input. add Android drivers. remove MXC SCC2 driver. Add cryptoloop, ram block device, cd/dvd packet writing 2010-12-01 20:08:27 -06:00
Matt Sealey
44424638d8 config (sb): bring Smartbook back from the dead. IP/INET and CRYPTO will creep back in when we work out which one of them is making boot stop working. 2010-12-01 15:35:08 -06:00
Matt Sealey
03304a1f08 Add Ralink RT2870/RT3070 binaries to shipped firmware to keep them with the kernel. 2010-12-01 15:33:23 -06:00
Matt Sealey
2a0c7a5ed0 config (mx): enable timer stats, scheduler stats (for power/latencytop), latencytop support, KGDB, cgroups 2010-11-30 13:35:29 -06:00
Matt Sealey
3097dbf09f config: enable timer stats, scheduler stats (for power/latencytop), latencytop support, KGDB, cgroups 2010-11-30 13:25:40 -06:00
Saleem Abdulrasool
4fcc3a542f add efikasb_batt_write 2010-11-29 18:51:51 -06:00
Saleem Abdulrasool
7379fcc430 report energy and charge full design 2010-11-29 18:50:33 -06:00
Saleem Abdulrasool
3124207d02 report energy and charge full 2010-11-29 18:50:30 -06:00
Saleem Abdulrasool
67090153be report energy and charge now 2010-11-29 18:50:27 -06:00
Saleem Abdulrasool
6b0cc6cd94 remove unnecessary goto usage in efikasb_batt_read 2010-11-29 18:50:25 -06:00
Saleem Abdulrasool
ce2529c70a fix whitespace 2010-11-29 18:50:21 -06:00
Matt Sealey
e5e65f60a5 Fix smartbook config to match PCOMP2 Kconfig fix (ccaf06fa) 2010-11-29 18:20:15 -06:00
Matt Sealey
cfc625c026 Revert "fix whitespace"
This reverts commit a8661dae7ff094ab09afba2549c6b68e15289e2c.
2010-11-29 18:20:02 -06:00
Matt Sealey
144a63e3ab Revert "remove unnecessary goto usage in efikasb_batt_read"
This reverts commit 2cdda058111fcca048027732145bbe8418edc3b8.
2010-11-29 18:19:58 -06:00
Matt Sealey
a463526930 Revert "add efikasb_batt_write"
This reverts commit 047de77e2ae0e3b382b078c264582e1e913613e0.
2010-11-29 18:19:54 -06:00
Matt Sealey
a2da6cd929 Revert "report energy and charge now"
This reverts commit fb2fa90c1143b300cf4f9ccb7a21682f413e5e91.
2010-11-29 18:19:50 -06:00
Matt Sealey
06891b63fd Revert "report energy and charge full"
This reverts commit dfb514dfb05372dc7e0a6db598e3676e6ec8fb1e.
2010-11-29 18:19:24 -06:00
Matt Sealey
f29909405d Revert "report energy and charge full design"
This reverts commit 59a6e469095668420c83cbe137dd40e0b8aa8f70.
2010-11-29 18:18:11 -06:00
Curt Wohlgemuth
a91309b622 ext4: Fix build warning in ext4_dirty_inode()
This fixes the following warning:

fs/ext4/inode.c: In function 'ext4_dirty_inode':
fs/ext4/inode.c:5615: warning: unused variable 'current_handle'

We remove the jbd_debug() statement which does use current_handle, as
it's not terribly important in the grand scheme of things.

Thanks to Stephen Rothwell for pointing this out.

Signed-off-by: Curt Wohlgemuth <curtw@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-29 17:15:56 -06:00
Dmitry Monakhov
618ef6e62c ext4: Handle non empty on-disk orphan link
In case of truncate errors we explicitly remove inode from in-core
orphan list via orphan_del(NULL, inode) without modifying the on-disk list.

But later on, the same inode may be inserted in the orphan list again
which will result the on-disk linked list getting corrupted.  If inode
i_dtime contains valid value, then skip on-disk list modification.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-29 17:08:29 -06:00
Akira Fujita
d016695d8e ext4: Fix insertion point of extent in mext_insert_across_blocks()
If the leaf node has 2 extent space or fewer and EXT4_IOC_MOVE_EXT
ioctl is called with the file offset where after the 2nd extent
covers, mext_insert_across_blocks() always tries to insert extent into
the first extent.  As a result, the file gets corrupted because of
wrong extent order.  The patch fixes this problem.

Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-29 17:07:59 -06:00
Akira Fujita
f97ecea19c ext4: Fix the NULL reference in double_down_write_data_sem()
If EXT4_IOC_MOVE_EXT ioctl is called with NULL donor_fd, fget() in
ext4_ioctl() gets inappropriate file structure for donor; so we need
to do this check earlier, before calling double_down_write_data_sem().

Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-29 17:07:25 -06:00
Dmitry Monakhov
8bfd473e30 ext4: mount flags manipulation cleanup
Replace intermediate EXT4_MOUNT_XXX flags manipulation to
corresponding macro.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-29 17:06:36 -06:00
Dmitry Monakhov
aacca7b769 ext4: explicitly remove inode from orphan list after failed direct io
Otherwise non-empty orphan list will be triggered on umount.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-29 17:05:48 -06:00
Dmitry Monakhov
099087b126 ext4: deprecate obsoleted mount options
Declare following list of mount options as deprecated:
 - bsddf, miniddf
 - grpid, bsdgroups, nogrpid, sysvgroups

Declare following list of default mount options as deprecated:
 - bsdgroups

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-29 17:05:21 -06:00
Theodore Ts'o
e17d123a2a ext4: Reserve INCOMPAT_EA_INODE and INCOMPAT_DIRDATA feature codepoints
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-29 17:04:26 -06:00
Jiaying Zhang
193c53d772 ext4: Add flag to files with blocks intentionally past EOF
fallocate() may potentially instantiate blocks past EOF, depending
on the flags used when it is called.

e2fsck currently has a test for blocks past i_size, and it
sometimes trips up - noticeably on xfstests 013 which runs fsstress.

This patch from Jiayang does fix it up - it (along with
e2fsprogs updates and other patches recently from Aneesh) has
survived many fsstress runs in a row.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jiaying Zhang <jiayingz@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-29 17:03:14 -06:00
Leonard Michlmayr
42155a3ec3 ext4: correctly calculate number of blocks for fiemap
ext4_fiemap() rounds the length of the requested range down to
blocksize, which is is not the true number of blocks that cover the
requested region.  This problem is especially impressive if the user
requests only the first byte of a file: not a single extent will be
reported.

We fix this by calculating the last block of the region and then
subtract to find the number of blocks in the extents.

Signed-off-by: Leonard Michlmayr <leonard.michlmayr@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-29 16:59:43 -06:00
Roel Kluin
b50e2eaa9f ext4: add missing error checking to ext4_expand_extra_isize_ea()
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
2010-11-29 16:59:14 -06:00
Theodore Ts'o
4a7b4ab0b2 ext4: Use bitops to read/modify EXT4_I(inode)->i_state
At several places we modify EXT4_I(inode)->i_state without holding
i_mutex (ext4_release_file, ext4_bmap, ext4_journalled_writepage,
ext4_do_update_inode, ...). These modifications are racy and we can
lose updates to i_state. So convert handling of i_state to use bitops
which are atomic.

Cc: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-11-29 16:57:55 -06:00
Herbert Xu
ccaf06fab7 crypto: pcomp - Fix illegal Kconfig configuration
The PCOMP Kconfig entry current allows the following combination
which is illegal:

ZLIB=y
PCOMP=y
ALGAPI=m
ALGAPI2=y
MANAGER=m
MANAGER2=m

This patch fixes this by adding PCOMP2 so that PCOMP can select
ALGAPI to propagate the setting to MANAGER2.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2010-11-29 16:33:50 -06:00
Matt Sealey
45273d43cc bump to .11 for release 2010-11-24 16:04:20 -06:00
Matt Sealey
0b6e9f0ed7 Remove VGA GPIO (was never valid) and LCD related GPIO pin (is connected to test pad)
Make HDMI interrupt pin an input (originally an output????)
2010-11-24 15:44:41 -06:00