]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years agoV4L/DVB (9429): Add support for the Satelco Easywatch DVB-S2 PCI card
Arvo Jarve [Thu, 25 Oct 2007 16:25:23 +0000 (13:25 -0300)]
V4L/DVB (9429): Add support for the Satelco Easywatch DVB-S2 PCI card

Signed-off-by: Arvo Jarve <arvo@softshark.ee>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9428): Fix: assignment of wrong values
Marko Schluessler [Tue, 23 Oct 2007 22:56:18 +0000 (19:56 -0300)]
V4L/DVB (9428): Fix: assignment of wrong values

Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9427): Code simplification: Sleep only for the required time interval.
Manu Abraham [Fri, 19 Oct 2007 09:27:56 +0000 (06:27 -0300)]
V4L/DVB (9427): Code simplification: Sleep only for the required time interval.

* Saves 70 mS LOCK time on the STB6100 based
* Saves 100 mS LOCK time on the TDA8261 based

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9426): Add a missing break
Manu Abraham [Thu, 18 Oct 2007 15:03:40 +0000 (12:03 -0300)]
V4L/DVB (9426): Add a missing break

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9425): Initialize at 90MHz itself
Manu Abraham [Thu, 18 Oct 2007 09:25:51 +0000 (06:25 -0300)]
V4L/DVB (9425): Initialize at 90MHz itself

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9424): Deviation from the reference, pullup is 12k instead
Manu Abraham [Thu, 18 Oct 2007 09:13:04 +0000 (06:13 -0300)]
V4L/DVB (9424): Deviation from the reference, pullup is 12k instead

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9423): Though insignificant, removes an unnecessary read of the LOCK_LOSS...
Manu Abraham [Mon, 15 Oct 2007 17:39:58 +0000 (14:39 -0300)]
V4L/DVB (9423): Though insignificant, removes an unnecessary read of the LOCK_LOSS register,

which should have happenend in the DVB-S2 mode only, but reading it as it is
for the other delivery systems causes nothing to say but LOCK_LOST, which
just causes confusion amongst users.

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9422): Bug: Fix a typo
Manu Abraham [Mon, 15 Oct 2007 16:07:16 +0000 (13:07 -0300)]
V4L/DVB (9422): Bug: Fix a typo

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9421): We must wait for the PLL to stabilize
Manu Abraham [Mon, 15 Oct 2007 15:08:20 +0000 (12:08 -0300)]
V4L/DVB (9421): We must wait for the PLL to stabilize

Thanks to Peter for the in depth explanation

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9420): return -EINVAL for invalid parameters
Manu Abraham [Wed, 10 Oct 2007 09:12:13 +0000 (06:12 -0300)]
V4L/DVB (9420): return -EINVAL for invalid parameters

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9419): Bug: unnecessary large current causes large phasor errors
Manu Abraham [Mon, 8 Oct 2007 22:04:03 +0000 (19:04 -0300)]
V4L/DVB (9419): Bug: unnecessary large current causes large phasor errors

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9418): DVB_ATTACH for STB0899, STB6100, TDA8261
Manu Abraham [Mon, 8 Oct 2007 21:51:54 +0000 (18:51 -0300)]
V4L/DVB (9418): DVB_ATTACH for STB0899, STB6100, TDA8261

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9417): DVB_ATTACH for STB0899, STB6100, TDA8261
Manu Abraham [Mon, 8 Oct 2007 21:51:54 +0000 (18:51 -0300)]
V4L/DVB (9417): DVB_ATTACH for STB0899, STB6100, TDA8261

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9416): Hmmph, a proper calculation broke the working behaviour.
Manu Abraham [Sat, 6 Oct 2007 12:41:16 +0000 (09:41 -0300)]
V4L/DVB (9416): Hmmph, a proper calculation broke the working behaviour.

Need some thoughts, temporary for now ..

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9414): Initialize DiSEqC
Manu Abraham [Fri, 5 Oct 2007 14:41:19 +0000 (11:41 -0300)]
V4L/DVB (9414): Initialize DiSEqC

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9413): Bug: Set Auxilliary Clock Register correctly
Manu Abraham [Fri, 5 Oct 2007 12:04:32 +0000 (09:04 -0300)]
V4L/DVB (9413): Bug: Set Auxilliary Clock Register correctly

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9412): Fix tuner name and comment
Manu Abraham [Fri, 5 Oct 2007 04:57:59 +0000 (01:57 -0300)]
V4L/DVB (9412): Fix tuner name and comment

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9411): Bug! Timing recovery was calculated for 99MHz not 90 MHz
Manu Abraham [Thu, 4 Oct 2007 20:39:19 +0000 (17:39 -0300)]
V4L/DVB (9411): Bug! Timing recovery was calculated for 99MHz not 90 MHz

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9410): Bug: Missing reference clock definition
Manu Abraham [Thu, 4 Oct 2007 19:52:51 +0000 (16:52 -0300)]
V4L/DVB (9410): Bug: Missing reference clock definition

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9409): Bug! inverted logic
Manu Abraham [Thu, 4 Oct 2007 19:48:54 +0000 (16:48 -0300)]
V4L/DVB (9409): Bug! inverted logic

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9408): tda8261: check status to avoid lock loss
Manu Abraham [Fri, 28 Sep 2007 22:06:06 +0000 (19:06 -0300)]
V4L/DVB (9408): tda8261: check status to avoid lock loss

We need to check for tuner LOCK LOSS, especially in the case of simple PLL's

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9407): Optimizations Reduce capture range from 10MHz to 3Mhz
Manu Abraham [Wed, 26 Sep 2007 21:32:13 +0000 (18:32 -0300)]
V4L/DVB (9407): Optimizations Reduce capture range from 10MHz to 3Mhz

* Reduces szapping time a lot
* increased stability at Low Symbol rates
* overall increases reliability in tuning

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9406): Really silly bug, setting bandwidth into frequency
Marko Schluessler [Tue, 25 Sep 2007 23:13:31 +0000 (20:13 -0300)]
V4L/DVB (9406): Really silly bug, setting bandwidth into frequency

probably should stop fiddling with code late nights. :-(

Thanks to Marco for pointing it out and fixing it.

Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9405): Practical tests show that the TT S2 3200 has I/Q inputs inverted...
Manu Abraham [Tue, 25 Sep 2007 20:48:59 +0000 (17:48 -0300)]
V4L/DVB (9405): Practical tests show that the TT S2 3200 has I/Q inputs inverted, similar to the KNC1.

Don't have this hardware and cannot verify this for myself, but from the reports this
looks to be quite a reasonable and correct hypothesis.

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9404): the KNC1 and clones also don't have the I/Q inputs swapped
Manu Abraham [Tue, 25 Sep 2007 17:57:19 +0000 (14:57 -0300)]
V4L/DVB (9404): the KNC1 and clones also don't have the I/Q inputs swapped

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9403): Fix the CA module not working issue
Manu Abraham [Mon, 24 Sep 2007 22:58:24 +0000 (19:58 -0300)]
V4L/DVB (9403): Fix the CA module not working issue

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9402): TT S2 3200 shouldn't need Inversion ON and Inversion AUTO at the...
Manu Abraham [Mon, 24 Sep 2007 22:51:32 +0000 (19:51 -0300)]
V4L/DVB (9402): TT S2 3200 shouldn't need Inversion ON and Inversion AUTO at the same time

This is a racy situation.
Inversion is default OFF on the TT S2 3200 hardware,
unlike the KNC1 where it is default Inverted

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9401): Code Simplification
Manu Abraham [Mon, 24 Sep 2007 22:38:11 +0000 (19:38 -0300)]
V4L/DVB (9401): Code Simplification

Use an enumeration for I/Q Swap rather than an int,
easier to spot the nasty ones

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9400): stb6100: Code Simplification
Manu Abraham [Mon, 24 Sep 2007 22:15:41 +0000 (19:15 -0300)]
V4L/DVB (9400): stb6100: Code Simplification

The 2 callbacks created nothing more than confusion

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9399): some cleanups at budget-ci
Manu Abraham [Thu, 23 Oct 2008 21:32:50 +0000 (18:32 -0300)]
V4L/DVB (9399): some cleanups at budget-ci

Still messing up:
* Cleanup
* Use KNC1's default settings to startup with
* Add in tuner wrapper calls

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9398): Initial support for the Technotrend TT S2 3200
Marko Schluessler [Thu, 23 Oct 2008 21:16:40 +0000 (18:16 -0300)]
V4L/DVB (9398): Initial support for the Technotrend TT S2 3200

Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9397): fix some bugs at tda8261
Manu Abraham [Mon, 24 Sep 2007 16:27:06 +0000 (13:27 -0300)]
V4L/DVB (9397): fix some bugs at tda8261

Fix bug obviously, some enhancements as well

* enable i2c_gate before doing any transaction
* read is one single message with 2 words
* reduce sleep from 100mS to 20mS

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9396): Fix clocks at stb0899
Manu Abraham [Sun, 23 Sep 2007 00:39:17 +0000 (21:39 -0300)]
V4L/DVB (9396): Fix clocks at stb0899

Really silly! Disabled all clocks and expected it to run.

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9395): Add initial support for two KNC1 DVB-S2 boards
Manu Abraham [Sun, 23 Sep 2007 00:28:11 +0000 (21:28 -0300)]
V4L/DVB (9395): Add initial support for two KNC1 DVB-S2 boards

Add initial support for:
* KNC1 DVB-S2 Plus
* KNC1 DVB-S2 OEM (known as Satelco DVB-S2)

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9394): cache last successful state
Manu Abraham [Sat, 22 Sep 2007 16:36:34 +0000 (13:36 -0300)]
V4L/DVB (9394): cache last successful state

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9393): Add TDA8261 to build
Manu Abraham [Thu, 23 Oct 2008 20:56:07 +0000 (17:56 -0300)]
V4L/DVB (9393): Add TDA8261 to build

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9392): initial go at TDA8261 tuner
Manu Abraham [Sat, 22 Sep 2007 16:30:09 +0000 (13:30 -0300)]
V4L/DVB (9392): initial go at TDA8261 tuner

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9391): Register definition bugs
Marko Schluessler [Fri, 21 Sep 2007 21:59:17 +0000 (18:59 -0300)]
V4L/DVB (9391): Register definition bugs

Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9390): Offset Freq has been set in reg
Marko Schluessler [Fri, 21 Sep 2007 21:40:14 +0000 (18:40 -0300)]
V4L/DVB (9390): Offset Freq has been set in reg

Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9389): Use kzalloc instead of kmalloc
Marko Schluessler [Fri, 21 Sep 2007 21:13:30 +0000 (18:13 -0300)]
V4L/DVB (9389): Use kzalloc instead of kmalloc

Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9388): Reference Clock is in kHz
Marko Schluessler [Fri, 21 Sep 2007 21:08:01 +0000 (18:08 -0300)]
V4L/DVB (9388): Reference Clock is in kHz

Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9387): FIX: Write to the correct register
Manu Abraham [Mon, 2 Jul 2007 12:51:54 +0000 (09:51 -0300)]
V4L/DVB (9387): FIX: Write to the correct register

Thanks to Marko Schluessler <marco@lordzodiac.de> for pointing it out

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9386): FIX: Add in missing inversion (should be ideally in the config struct)
Manu Abraham [Mon, 2 Jul 2007 12:48:50 +0000 (09:48 -0300)]
V4L/DVB (9386): FIX: Add in missing inversion (should be ideally in the config struct)

Thanks to Marco Schluessler <marco@lordzodiac.de> for pointing it out

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9384): FIX: register value is not reset to 0 after write
Manu Abraham [Mon, 2 Jul 2007 12:36:47 +0000 (09:36 -0300)]
V4L/DVB (9384): FIX: register value is not reset to 0 after write

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9383): Let's neither sleep nor wakeup for now
Manu Abraham [Mon, 2 Jul 2007 12:08:23 +0000 (09:08 -0300)]
V4L/DVB (9383): Let's neither sleep nor wakeup for now

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9382): Use a delay for tracking acquisition status
Manu Abraham [Mon, 2 Jul 2007 12:01:48 +0000 (09:01 -0300)]
V4L/DVB (9382): Use a delay for tracking acquisition status

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9381): On the KNC1 cards the CLOCK is clamped to a maximum limit of 90MHz...
Manu Abraham [Mon, 2 Jul 2007 11:44:32 +0000 (08:44 -0300)]
V4L/DVB (9381): On the KNC1 cards the CLOCK is clamped to a maximum limit of 90MHz, eventhough

not limited in hardware, this causes instabilities at a higher clock due to
issues such as thermal, also the divider wraps around, which causes the
demodulator core to actually run at a lower frequency. This needs to be
empirically tested whether it affects other cards. If found necessary, this
parameter needs to be moved out to the config struct such that it can be made
hardware dependant.

Reducing the CLOCK from 99MHz to 90MHz improved the acquisition time taken on
the KNC1 cards and hence such a change.

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9380): FIX: a possible division by zero
Manu Abraham [Sat, 24 Feb 2007 12:14:39 +0000 (09:14 -0300)]
V4L/DVB (9380): FIX: a possible division by zero

Thanks to Marko Schluessler <marco@lordzodiac.de>

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9379): FIX: fix a bug in the charge pump setting
Manu Abraham [Tue, 3 Jul 2007 12:58:57 +0000 (09:58 -0300)]
V4L/DVB (9379): FIX: fix a bug in the charge pump setting

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9378): Add STB6100 Support
Manu Abraham [Sat, 24 Feb 2007 11:31:40 +0000 (08:31 -0300)]
V4L/DVB (9378): Add STB6100 Support

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9377): Add STB6100 Support
Manu Abraham [Sat, 24 Feb 2007 11:31:40 +0000 (08:31 -0300)]
V4L/DVB (9377): Add STB6100 Support

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9376): Add STB0899 to build
Manu Abraham [Tue, 3 Jul 2007 12:53:42 +0000 (09:53 -0300)]
V4L/DVB (9376): Add STB0899 to build

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9375): Add STB0899 support
Manu Abraham [Tue, 3 Jul 2007 12:53:42 +0000 (09:53 -0300)]
V4L/DVB (9375): Add STB0899 support

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9370): Update README.cx88 with the current status
Mauro Carvalho Chehab [Sat, 25 Oct 2008 02:13:57 +0000 (23:13 -0300)]
V4L/DVB (9370): Update README.cx88 with the current status

README.cx88 were outdated since a long time. Update it with the current
status.

Cc: Rafael Diniz <diniz@wimobilis.com.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9367): Move lgdt3304 driver to the proper place and allow it to compile
Mauro Carvalho Chehab [Fri, 24 Oct 2008 18:06:17 +0000 (15:06 -0300)]
V4L/DVB (9367): Move lgdt3304 driver to the proper place and allow it to compile

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9366): Move S921 driver to the proper place and allow it to compile
Mauro Carvalho Chehab [Fri, 24 Oct 2008 16:44:38 +0000 (13:44 -0300)]
V4L/DVB (9366): Move S921 driver to the proper place and allow it to compile

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9365): adding lgdt3304 based driver
Markus Rechberger [Thu, 23 Oct 2008 00:08:47 +0000 (21:08 -0300)]
V4L/DVB (9365): adding lgdt3304 based driver

lgdt3304.c:
    frontend driver for the lgdt3304 chip, this driver is not compatible
    with the lgdt330x.

Signed-off-by: Markus Rechberger <mrechberger@sundtek.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9364): adding sharp s921 ISDB-T driver
Markus Rechberger [Thu, 23 Oct 2008 00:07:42 +0000 (21:07 -0300)]
V4L/DVB (9364): adding sharp s921 ISDB-T driver

s921_module.c:
    wrapper for the dvb frontend interface
    s921_core.c:
    core s921 1seg ISDB-T driver, everything is set to auto as much as possible
    in order to not require certain parameters which currently cannot be passed
    to the ISDB-T chip.

    ISDB-T support can be tested using dvbscan, dvbstream/snoop and mplayer
    Tested 1seg H264/aac stream with this driver using a custom linux
ISDB-T player

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9363): tvp5150: add support to enable raw vbi
Markus Rechberger [Fri, 24 Oct 2008 15:19:14 +0000 (12:19 -0300)]
V4L/DVB (9363): tvp5150: add support to enable raw vbi

Signed-off-by: Markus Rechberger <mrechberger@sundtek.de>
[mchehab@redhat.com: Fix bad whitespaces]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9362): zl10353: add new register configuration for zl10353/especially 6mhz...
Markus Rechberger [Fri, 24 Oct 2008 15:15:08 +0000 (12:15 -0300)]
V4L/DVB (9362): zl10353: add new register configuration for zl10353/especially 6mhz taiwan.

Signed-off-by: Markus Rechberger <mrechberger@sundtek.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9361): Dynamic DVB minor allocation
Andreas Oberritter [Thu, 23 Oct 2008 15:11:19 +0000 (12:11 -0300)]
V4L/DVB (9361): Dynamic DVB minor allocation

Implement dynamic minor allocation for DVB, to allow more than four
devices of the same type per adapter, based on drivers/usb/core/file.c.

Add a new config option, DVB_DYNAMIC_MINORS, to make use of this
feature, which defaults to no for backwards compatibility.

Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB: remove unused #include <version.h>
Huang Weiyi [Sat, 18 Oct 2008 07:41:52 +0000 (04:41 -0300)]
V4L/DVB: remove unused #include <version.h>

The file(s) below do not use LINUX_VERSION_CODE nor KERNEL_VERSION.
  drivers/media/dvb/dm1105/dm1105.c
  drivers/media/dvb/dvb-usb/dw2102.c

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

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9480): Fix frontend DVBFE_ALGO_CUSTOM Search
Marco Schluessler [Thu, 30 Oct 2008 05:38:59 +0000 (02:38 -0300)]
V4L/DVB (9480): Fix frontend DVBFE_ALGO_CUSTOM Search

Issue: Currently, the DVBFE_ALGO_CUSTOM is called only at the first tuning.
After the first call, the status is never set to force a new tuning.

Signed-off-by: Marco Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9478): Fix: parameters not supplied in the search process
Manu Abraham [Tue, 28 Oct 2008 09:11:24 +0000 (06:11 -0300)]
V4L/DVB (9478): Fix: parameters not supplied in the search process

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9477): Fix: Commit 9344 breaks tning of cx24123
Matthias Schwarzott [Tue, 28 Oct 2008 08:58:04 +0000 (05:58 -0300)]
V4L/DVB (9477): Fix: Commit 9344 breaks tning of cx24123

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9345): Add event with changed status only
Arvo Jarve [Mon, 20 Oct 2008 09:05:21 +0000 (06:05 -0300)]
V4L/DVB (9345): Add event with changed status only

Signed-off-by: Arvo Jarve <arvo@softshark.ee>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9344): DVB-Core update
Manu Abraham [Tue, 14 Oct 2008 19:34:07 +0000 (16:34 -0300)]
V4L/DVB (9344): DVB-Core update

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoV4L/DVB (9691): gspca: Some cleanups at device register
Jean-Francois Moine [Wed, 19 Nov 2008 09:37:53 +0000 (06:37 -0300)]
V4L/DVB (9691): gspca: Some cleanups at device register

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
17 years agoide-cd: remove dead dsc_overlap setting
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:38 +0000 (20:27 +0100)]
ide-cd: remove dead dsc_overlap setting

dsc_overlap setting is not useful anymore for ide-cd so remove
"dsc_overlap" /proc setting, disallow changing the setting through
HDIO_SET_NICE ioctl and cleanup ide_cd{rom_setup,_release}().

Cc: Borislav Petkov <petkovbb@googlemail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: push local_irq_{save,restore}() to do_identify()
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:38 +0000 (20:27 +0100)]
ide: push local_irq_{save,restore}() to do_identify()

Push local_irq_{save,restore}() from actual_try_to_identify()
to do_identify() and remove no longer needed local_irq_enable().

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: remove superfluous local_irq_{save,restore}() from ide_dump_status()
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:37 +0000 (20:27 +0100)]
ide: remove superfluous local_irq_{save,restore}() from ide_dump_status()

No reason to run this function with local IRQs off.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: move legacy ISA/VLB ports handling to ide-legacy.c (v2)
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:37 +0000 (20:27 +0100)]
ide: move legacy ISA/VLB ports handling to ide-legacy.c (v2)

* Move legacy ISA/VLB ports handling from ide-probe.c to ide-legacy.c.

* Add CONFIG_IDE_LEGACY config option to be selected by host drivers
  needing ide-legacy.c.

v2:
Fix CONFIG_IDE_LEGACY not being defined in Kconfig.
(from Takashi Iwai <tiwai@suse.de>)

There should be no functional changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: move Power Management support to ide-pm.c
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:37 +0000 (20:27 +0100)]
ide: move Power Management support to ide-pm.c

There should be no functional changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: use ATA_DMA_* defines in ide-dma-sff.c
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:37 +0000 (20:27 +0100)]
ide: use ATA_DMA_* defines in ide-dma-sff.c

In few places open-coded values were still being used.  Fix it.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: checkpatch.pl fixes for ide-lib.c
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:36 +0000 (20:27 +0100)]
ide: checkpatch.pl fixes for ide-lib.c

Fix following errors/warnings detected by checkpatch.pl:

- WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
- WARNING: space prohibited between function name and open parenthesis '('
- ERROR: trailing whitespace
- ERROR: trailing statements should be on next line
- WARNING: printk() should include KERN_ facility level

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: remove inline tags from ide-probe.c
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:36 +0000 (20:27 +0100)]
ide: remove inline tags from ide-probe.c

Let the compiler handle it.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: remove redundant code from ide_end_drive_cmd()
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:36 +0000 (20:27 +0100)]
ide: remove redundant code from ide_end_drive_cmd()

rq->errors is overwritten later in this function.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: struct device - replace bus_id with dev_name(), dev_set_name()
Kay Sievers [Mon, 29 Dec 2008 19:27:36 +0000 (20:27 +0100)]
ide: struct device - replace bus_id with dev_name(), dev_set_name()

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: rework handling of serialized ports (v2)
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:36 +0000 (20:27 +0100)]
ide: rework handling of serialized ports (v2)

* hpt366: set IDE_HFLAG_SERIALIZE in ->host_flags if needed
  in init_hwif_hpt366().  Remove HPT_SERIALIZE_IO while at it.

* Set IDE_HFLAG_SERIALIZE in ->host_flags if needed in
  ide_init_port().

* Convert init_irq() to use IDE_HFLAG_SERIALIZE together with
  hwif->host to find out ports which need to be serialized.

* Remove no longer needed save_match() and ide_hwif_t.serialized.

v2:
* Set host's ->host_flags field instead of port's copy.

This patch should fix the incorrect grouping of port(s) from
host(s) that need serialization with port(s) that happen to use
the same IRQ(s) but are from the host(s) that don't need it.

Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agocy82c693: remove superfluous ide_cy82c693 chipset type
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:34 +0000 (20:27 +0100)]
cy82c693: remove superfluous ide_cy82c693 chipset type

Since CY82C693 doesn't require serialization we may as well
use the default ide_pci chipset type.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agotrm290: add IDE_HFLAG_TRM290 host flag
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:34 +0000 (20:27 +0100)]
trm290: add IDE_HFLAG_TRM290 host flag

* Add IDE_HFLAG_TRM290 host flag and use it in ide_build_dmatable().

* Remove no longer needed ide_trm290 chipset type.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: add ->max_sectors field to struct ide_port_info
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:34 +0000 (20:27 +0100)]
ide: add ->max_sectors field to struct ide_port_info

* Add ->max_sectors field to struct ide_port_info to allow host drivers
  to specify value used for hwif->rqsize (if smaller than the default).

* Convert pdc202xx_old to use ->max_sectors and remove no longer needed
  IDE_HFLAG_RQSIZE_256 flag.

There should be no functional changes caused by this patch.

Acked-by: Sergei Shtyltov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agorz1000: apply chipset quirks early (v2)
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:33 +0000 (20:27 +0100)]
rz1000: apply chipset quirks early (v2)

* Use pci_name(dev) instead of hwif->name in init_hwif_rz1000().

* init_hwif_rz1000() -> rz1000_init_chipset().  Update rz1000_init_one()
  to use rz1000_init_chipset() and add now required rz1000_remove().

* Remove superfluous ide_rz1000 chipset type.

v2:
* unsigned int rz1000_init_chipset() -> int rz1000_disable_readahead()
  per Sergei's suggestion.

Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: always set nIEN on idle devices
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:33 +0000 (20:27 +0100)]
ide: always set nIEN on idle devices

* Set nIEN for previous port/device in ide_do_request()
  also if port uses a non-shared IRQ.

* Remove no longer needed ide_hwif_t.sharing_irq.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: fix ->quirk_list checking in ide_do_request()
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:33 +0000 (20:27 +0100)]
ide: fix ->quirk_list checking in ide_do_request()

Fix nIEN quirk check to also omit quirky devices using pdc202xx_{new,old}
host drivers for which ->quirk_list == 2.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agogayle: set IDE_HFLAG_SERIALIZE explictly
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:33 +0000 (20:27 +0100)]
gayle: set IDE_HFLAG_SERIALIZE explictly

If IDE doubler is used ports need to be serialized.  Currently
init_irq() handles it fine but lets also set IDE_HFLAG_SERIALIZE
host flag explicitly in preparation for future changes.

Also convert the driver to use struct ide_port_info while at it.

Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agocmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:32 +0000 (20:27 +0100)]
cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646

* Set IDE_HFLAG_SERIALIZE explictly for CMD646.

* Remove no longer needed ide_cmd646 chipset type (which has
  a nice side-effect of fixing handling of unexpected IRQs).

Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoali14xx: doesn't use shared IRQs
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:32 +0000 (20:27 +0100)]
ali14xx: doesn't use shared IRQs

init_irq() shouldn't use IRQF_SHARED for ali14xx IDE IRQ handler.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide-cd: remove obsolete seek optimization
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:32 +0000 (20:27 +0100)]
ide-cd: remove obsolete seek optimization

It doesn't make much sense nowadays and is problematic on some drives.

Cc: Borislav Petkov <petkovbb@googlemail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: cleanup ide_do_request()
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:32 +0000 (20:27 +0100)]
ide: cleanup ide_do_request()

Both choose_drive() and PM handling code make sure that the queue
is unplugged so no need to check it again.

Cc: Elias Oltmanns <eo@nebensachen.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: replace the global ide_lock spinlock by per-hwgroup spinlocks (v2)
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:31 +0000 (20:27 +0100)]
ide: replace the global ide_lock spinlock by per-hwgroup spinlocks (v2)

Now that (almost) all host drivers have been fixed not to abuse ide_lock
and core code usage of ide_lock has been sanitized we may safely replace
ide_lock by per-hwgroup locks.

This patch is partially based on earlier patch from Ravikiran G Thirumalai.

While at it:
- don't use deprecated HWIF() and HWGROUP() macros
- update locking documentation in ide.h

v2:
Add missing spin_lock_init(&hwgroup->lock).  (Noticed by Elias Oltmanns)

Cc: Vaibhav V. Nivargi <vaibhav.nivargi@gmail.com>
Cc: Alok N. Kataria <alokk@calsoftinc.com>
Cc: Shai Fultheim <shai@scalex86.org>
Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Cc: Elias Oltmanns <eo@nebensachen.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: use queue lock instead of ide_lock when possible
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:31 +0000 (20:27 +0100)]
ide: use queue lock instead of ide_lock when possible

This is just a preparation for future changes and there should be no
functional changes caused by this patch since ide_lock is currently
also used as queue lock.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: ide_lock + __blk_end_request() -> blk_end_request()
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:31 +0000 (20:27 +0100)]
ide: ide_lock + __blk_end_request() -> blk_end_request()

Use blk_end_request() instead of ide_lock + __blk_end_request()
in cdrom_end_request(), cdrom_newpc_intr(), __ide_end_request(),
ide_complete_pm_request() and ide_end_drive_cmd().

[ ide_lock is currently also used as queue lock ]

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: push ide_lock to __ide_end_request()
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:30 +0000 (20:27 +0100)]
ide: push ide_lock to __ide_end_request()

__ide_end_request() needs ide_lock only for __blk_end_request()
call so push ide_lock taking inside __ide_end_requests().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: ide_hwgroup_t.rq doesn't need an ide_lock held
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:30 +0000 (20:27 +0100)]
ide: ide_hwgroup_t.rq doesn't need an ide_lock held

While at it:
- no need to check for hwgroup presence in ide_dump_opcode()

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: __ide_port_unregister_devices() doesn't need an ide_lock held
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:30 +0000 (20:27 +0100)]
ide: __ide_port_unregister_devices() doesn't need an ide_lock held

[ and ide_cfg_mtx mutex provides a sufficient protection for callers ]

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: IDE settings don't need an ide_lock held
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:29 +0000 (20:27 +0100)]
ide: IDE settings don't need an ide_lock held

IDE settings are protected by ide_setting_mtx mutex so there is
no need to hold ide_lock in ide_setting_ioctl(), ide_read_setting()
and ide_proc_unregister_driver().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: unify ide_intr()'s exit points
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:29 +0000 (20:27 +0100)]
ide: unify ide_intr()'s exit points

Just a preparation for future changes.

There should be no functional changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agoide: fix IDE ACPI regression breaking suspend
Bartlomiej Zolnierkiewicz [Mon, 29 Dec 2008 19:27:29 +0000 (20:27 +0100)]
ide: fix IDE ACPI regression breaking suspend

Commit 4dde4492d850a4c9bcaa92e5bd7f4eebe3e2f5ab ("ide: make drive->id
an union (take 2)") accidentally introduced an IDE ACPI regression which
at least on some machines confuses ACPI and breaks suspend. Fix it.

Fixes kernel.org bug #12279:
http://bugzilla.kernel.org/show_bug.cgi?id=12279

[ Sorry about the bug (IDE ACPI is not used by default so it managed
  to slip in).  Still it is kind of surprising that the bug breaks
  suspend as it shouldn't impact anything except IDE ACPI (it seems
  that it uncovered either some ACPI/PM deficiency or a BIOS bug). ]

Reported-and-bisected-by: David Roka <roka@dawid.hu>
Tested-by: David Roka <roka@dawid.hu>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Len Brown <len.brown@intel.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
17 years agotx493[89]ide: Fix length for __ide_flush_dcache_range
Atsushi Nemoto [Mon, 29 Dec 2008 19:27:29 +0000 (20:27 +0100)]
tx493[89]ide: Fix length for __ide_flush_dcache_range

This fixes data corruption on PIO mode.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: stable <stable@kernel.org>
Cc: sshtylyov@ru.mvista.com
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>