Commit Graph

69324 Commits

Author SHA1 Message Date
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
f09a124fbd rt2870: make Kconfig match mainline (superficial change) 2010-12-01 22:13:26 -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
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
Matt Sealey
12ee5014b5 Modify IPU behavior not to try to adapt panel v_end_width since this fix
is really only for 800x600 TFT panels directly connected with weird
requirements. Make sure it's well and truly #if'd out.
2010-11-20 17:26:20 -06:00
Matt Sealey
b29b1f8cbd * Remove weird pin wiggling in EDID fetch
* Remove VGA support
* Remove HDMI customization (was for the old driver)
* Consolidate DI clock setting (view is to remove it eventually since
  the bug it was meant to work around is fixed)
* Remove mxc_ipuv3_fb.c dependency on EfikaMX includes
2010-11-20 10:46:21 -06:00
Matt Sealey
8cd135ac00 Remove VGA driver from config and build, and delete the file 2010-11-20 09:15:13 -06:00
Saleem Abdulrasool
31981681bf add rough version of new sii9022 driver
This is a new implementation of the sii9022 driver that is clearer to follow.
The missing functionality does not seem to be causing any loss of existing
functionality and helps development, so replacing it even though it is
incomplete.
2010-11-18 20:57:41 -08:00
Matt Sealey
9ad9fdb991 CONFIG_USB_STATIC_IRAM fixes: actually make it build
* usb abi changes broke it
* FSL never added use_iram to urb struct ever so it never compiled in the first place
* cleanup memcpy usage so it's more readable (breaks 80 column limit but..)

Not enabled in any config. PROBABLY DOESN'T WORK. But at least it can be built and tested now.
2010-11-18 18:30:18 -06:00
Matt Sealey
26a3feaa56 AMD GPU update 2010-11-13 10:32:27 -06:00
Matt Sealey
0616c12255 Clarify OpenVG disabled error (should be impossible with new defconfig anyway) 2010-11-13 10:32:14 -06:00
Matt Sealey
9f7220ed9a prevent kernel oops on unknown devices
If the returned value is outside of the range of the array, we could get
potential errors (#PF, #GF, etc), which are nasty to track down.  Instead,
report a bug, and report the value as unknown in those cases.

Thanks to Saleem Abdulrasool
2010-11-13 10:15:09 -06:00
Oliver Neukum
de45487165 USB: fix cdc-acm regression in open
cdc-acm needs to set a flag during open to tell the
tty layer that the device is initialized

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Paul Martin <pm@debian.org>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-11-13 10:10:03 -06:00
Jie Zhou
73685d49b8 ENGR00126565-2 GPU: Provide z160 precision info to user space libraries
MX50 Z160 has higher gradient/texture precision than MX51/53.

Signed-off-by: Jie Zhou <b30303@freescale.com>
2010-11-13 10:10:00 -06:00
Jie Zhou
ef5ea51ba2 ENGR00126064 GPU: disable mmu to pass OpenVG CTS
If enabled MMU, there is AXI read/write error on MX508 when run
OpenVG CTS.

Besides, change EMEM1 size to 10MB by default to make gpu driver
work on MX50_ARM2 board with 128MB memory installed.

Signed-off-by: Jie Zhou <b30303@freescale.com>
2010-11-13 10:09:43 -06:00
Jie Zhou
90875b3f6c ENGR00125984 GPU: enable MMU for MX508 and MX35
Remove GSL_MMU_TRANSLATION_ENABLED macro originally used for conditional
compile, and replace it with runtime check to support one mx5x image

Signed-off-by: Jie Zhou <b30303@freescale.com>
2010-11-13 10:09:41 -06:00
Jie Zhou
dd4baeffab ENGR00125615 GPU: disable z160 in gsl when X-Accel enabled
When X-accel is enabled, uio driver is used for X server to access
z160 device, so in gsl, we should not operate z160 to avoid conflicts

Signed-off-by: Jie Zhou <b30303@freescale.com>
2010-11-13 10:08:00 -06:00
Jie Zhou
373272e191 ENGR00125729-2 GPU: merge hal for MX35/MX50 and MX51/MX53
Add MX508 support, and adapt the gpu driver to one image

Signed-off-by: Jie Zhou <b30303@freescale.com>
2010-11-13 10:07:57 -06:00
Saleem Abdulrasool
bd5e72ac57 report energy and charge full design 2010-11-13 09:57:46 -06:00
Saleem Abdulrasool
46b11b0748 report energy and charge full 2010-11-13 09:57:44 -06:00
Saleem Abdulrasool
078accb95f report energy and charge now 2010-11-13 09:57:41 -06:00
Saleem Abdulrasool
56cef15721 add efikasb_batt_write 2010-11-13 09:57:38 -06:00
Saleem Abdulrasool
3445c14876 remove unnecessary goto usage in efikasb_batt_read 2010-11-13 09:57:35 -06:00
Saleem Abdulrasool
9c47932e07 fix whitespace 2010-11-13 09:57:32 -06:00
Marcin Juszkiewicz
1f4b4131ac rename hex_to_bin to get compat-wireless working 2010-11-13 09:54:37 -06:00
Matt Sealey
74488fa0f5 Fix display offset bug on the AUO panels. Might be better in the future to pull and patch EDID. 2010-11-13 09:53:31 -06:00
Matt Sealey
5b0051e382 ipu: make disable/unitialized "error" into "info" since it doesn't mean anything went wrong 2010-10-28 04:16:01 -05:00
Matt Sealey
e6abfd65bb pata_fsl: make the dma rchan/wchan message in the kernel INFO so it doesn't get printed when we want to be quiet 2010-10-28 04:15:51 -05:00
Matt Sealey
6e079ede18 pata_fsl: remove that annoying frame size error by allocating scatterlists with kzalloc instead of defining tmp[64]
Results: no more warning
Impact: no performance hit (PATA is too slow on these devices for it to matter).
2010-10-28 04:15:07 -05:00
Jason Chen
e8fe793cf5 ENGR00126156 ipuv3: check own clk count only when around clk rate
If dual display enabled, the second one may not be able to set
correct clock rate if it's from ext clk.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-10-21 13:17:58 -05:00
Dinh Nguyen
cc1ca49e78 ENGR00126861-2: ipu: pass csi clock in ipu platform data
ipu: pass csi clock in platform data
ipu: use ipu hw rev instead of chip version

Acked-by: Rob Herring <r.herring@freescale.com>
Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
2010-10-21 13:17:38 -05:00
Jie Zhou
fefd0f80de ENGR00125800 UIO: clean uioinfo when uninstall uio driver
The uioinfo should be cleaned up when uninstall, otherwise re-install
failure of uio_pdrv_genirq.ko will happen.

Signed-off-by: Jie Zhou <b30303@freescale.com>
2010-10-21 13:12:10 -05:00
Dinh Nguyen
193db12141 usb: Increase timeout value for device reset
It seems that for USB IP on Freescale MX5x processors, it needs >750
usec for the reset to complete. This change should not hurt any other
EHCI hardware.

Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-10-03 13:26:25 -05:00
Matt Sealey
81163a41f4 Smarttop: remove modes which do not match IPU restrictions (vertical border needs to be >2) in order not to have them be "reconfigured" later to be potentially incompatible with the monitor. 2010-09-28 12:15:55 -05:00
Matt Sealey
28470c09c7 Remove custom Efika Smartbook backlight driver as it duplicates code
and isn't nearly as good as the generic one now in use.
2010-09-10 18:31:34 -05:00