android_kernel_xiaomi_sm8350/drivers/ide/pci
Sergei Shtylyov 30dfd12f53 piix: tuneproc() fixes/cleanups
Fix/cleanup the driver's tuneproc() and ratemask() methods:

- PPE, IE, and TIME bits need to be cleared beforehand for the slave drive as
  well as master (Alan probably just forgot about it);

- this driver only supports PIO modes up to 4, so must pass the correct limit
  to ide_get_best_pio_mode();

- use min_t() macro instead of min();

- simplify slave vs master drive evaluation;

- do come coding and formatting cleanups...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2007-02-07 18:18:28 +01:00
..
aec62xx.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
alim15x3.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
amd74xx.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
atiixp.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
cmd64x.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
cmd640.c
cs5520.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
cs5530.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
cs5535.c
cy82c693.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
generic.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
hpt34x.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
hpt366.c hpt366: HPT36x PCI clock detection fix 2007-02-07 18:18:20 +01:00
it821x.c
jmicron.c [PATCH] jmicron: 40/80pin primary detection 2007-01-30 16:01:35 -08:00
Makefile [MIPS] Remove IT8172-based platforms, ITE 8172G and Globespan IVR support. 2006-10-03 17:59:17 +01:00
ns87415.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
opti621.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
pdc202xx_new.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
pdc202xx_old.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
piix.c piix: tuneproc() fixes/cleanups 2007-02-07 18:18:28 +01:00
rz1000.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sc1200.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
serverworks.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sgiioc4.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
siimage.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sis5513.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
sl82c105.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
slc90e66.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
triflex.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
trm290.c ide: add missing __init tags to IDE PCI host drivers 2007-01-27 13:46:56 +01:00
via82cxxx.c [PATCH] via82cxxx: fix typo ("cx7000" should be corrected to "cx700") 2007-02-01 16:24:03 -08:00