1. 10 Jan, 2011 26 commits
  2. 09 Jan, 2011 8 commits
  3. 08 Jan, 2011 6 commits
    • Nick Bowler's avatar
      pata_platform: Remove CONFIG_HAVE_PATA_PLATFORM's dependencies. · 2ad2c320
      Nick Bowler authored
      CONFIG_HAVE_PATA_PLATFORM, by virtue of where its defined, has a
      dependency on CONFG_ATA and CONFIG_ATA_SFF.  This causes Kconfig
      warnings when it is selected by various architectures, such as
      
        warning: (ARCH_VEXPRESS && <choice> || ARCH_RPC && <choice> || MACH_VPAC270 && ARCH_PXA || MACH_REALVIEW_PB11MP && ARCH_REALVIEW || MACH_REALVIEW_PBA8 && ARCH_REALVIEW || MACH_REALVIEW_PBX && ARCH_REALVIEW || MACH_BAST_IDE && ARCH_S3C2410 || MACH_ANUBIS && ARCH_S3C2410) selects HAVE_PATA_PLATFORM which has unmet direct dependencies (ATA && ATA_SFF)
      
      Since this option is only used to control visibility of the
      CONFIG_PATA_PLATFORM option and isn't itself visible in the menu,
      it is straightforward to simply remove these dependencies rather
      than adjust all the architectures.
      Signed-off-by: default avatarNick Bowler <nbowler@elliptictech.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      2ad2c320
    • Sergei Shtylyov's avatar
      pata_hpt37x: actually limit HPT370 to UltraDMA/66 · fc2698d5
      Sergei Shtylyov authored
      The driver clearly tries to limit HPT370[A] to UltraDMA/66 if the PCI clock is
      less than 50 MHz but due to cut&paste type mistake this code has no effect...
      Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      fc2698d5
    • Sergei Shtylyov's avatar
      pata_hpt3x2n: coding style cleanup · b197f13b
      Sergei Shtylyov authored
      Fix 8 errors and 3 warnings given by checkpatch.pl:
      
      - *switch* and *case* not on the same indentation level;
      
      - no space between *for*/*switch*/*while* and open parenthesis;
      
      - space between an unary operator and its operand;
      
      - spaces before tabs;
      
      - lines over 80 characters.
      
      In addition to these changes, also do the following:
      
      - add new line after variable definitions;
      
      - fix the style of some multi-line comments.
      Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      b197f13b
    • Sergei Shtylyov's avatar
      pata_hpt37x: coding style cleanup · 49bfbd38
      Sergei Shtylyov authored
      Fix 12 errors and 15 warnings given by checkpatch.pl:
      
      - *switch* and *case* not on the same indentation level;
      
      - no space between *for*/*switch*/*while* and open parenthesis;
      
      - space between an unary operator and its operand;
      
      - drive blacklist arrays not being *const*;
      
      - spaces before tabs;
      
      - lines over 80 characters.
      
      In addition to these changes, also do the following:
      
      - add new line after variable definitions;
      
      - fix the style of some multi-line comments.
      Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      49bfbd38
    • Sergei Shtylyov's avatar
      pata_hpt366: coding style cleanup · 28cd4b6b
      Sergei Shtylyov authored
      Fix 2 errors and 11 warnings given by checkpatch.pl:
      
      - *switch* and *case* not on the same indentation level;
      
      - no space between *switch* and open parenthesis;
      
      - drive blacklist arrays not being *const*;
      
      - spaces before tabs;
      
      - lines over 80 characters.
      
      In addition to these changes, also add new line after variable definition in
      hpt36x_init_chipset()...
      Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      28cd4b6b
    • Sergei Shtylyov's avatar
      pata_hpt3x2n: calculate average f_CNT · dfc7e3e3
      Sergei Shtylyov authored
      Allow hpt3x2n_pci_clock() to calculate the average f_CNT register value iff
      HighPoint BIOS hasn't saved one, just like the 'pata_hpt37x' driver (reading
      the full 16-bit register, unlike what that driver does), so that this driver
      would work correctly on e.g. non-x86 machine with 66 MHz PCI.
      
      I'm not sure why Alan has only done this in one driver and not the other...
      Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      dfc7e3e3