1. 23 Jul, 2008 4 commits
  2. 15 Jul, 2008 1 commit
  3. 27 Apr, 2008 1 commit
    • Bartlomiej Zolnierkiewicz's avatar
      ide: add struct ide_io_ports (take 3) · 4c3032d8
      Bartlomiej Zolnierkiewicz authored
      
      
      * Add struct ide_io_ports and use it instead of `unsigned long io_ports[]`
        in ide_hwif_t.
      
      * Rename io_ports[] in hw_regs_t to io_ports_array[].
      
      * Use un-named union for 'unsigned long io_ports_array[]' and 'struct
        ide_io_ports io_ports' in hw_regs_t.
      
      * Remove IDE_*_OFFSET defines.
      
      v2:
      * scc_pata.c build fix from Stephen Rothwell.
      
      v3:
      * Fix ctl_adrr typo in Sparc-specific part of ns87415.c.
        (Noticed by Andrew Morton)
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      4c3032d8
  4. 26 Apr, 2008 8 commits
  5. 17 Apr, 2008 2 commits
  6. 26 Feb, 2008 1 commit
    • Sam Ravnborg's avatar
      hpt366: fix section mismatch warnings · b66cae76
      Sam Ravnborg authored
      
      
      hpt366: fix section mismatch warnings
      
      Fix following warnings:
      WARNING: o-sparc64/vmlinux.o(.data+0x195a38): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt370
      WARNING: o-sparc64/vmlinux.o(.data+0x195a40): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt370a
      WARNING: o-sparc64/vmlinux.o(.data+0x195a48): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt372
      WARNING: o-sparc64/vmlinux.o(.data+0x195a50): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt372n
      
      Replace a static array with a small switch resulting in
      more readable code.
      Mark the pci table __devinitconst.
      
      A lot of variables are const but annotated __devinitdata.
      Annotating them __devinitconst would cause a section type
      conflict error when build for 64 bit powerpc.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      b66cae76
  7. 02 Feb, 2008 2 commits
  8. 01 Feb, 2008 3 commits
  9. 26 Jan, 2008 1 commit
    • Bartlomiej Zolnierkiewicz's avatar
      ide: merge ->fixup and ->quirkproc methods · f01393e4
      Bartlomiej Zolnierkiewicz authored
      
      
      * Assign drive->quirk_list in ->quirkproc implementations:
        - hpt366.c::hpt3xx_quirkproc()
        - pdc202xx_new.c::pdcnew_quirkproc()
        - pdc202xx_old.c::pdc202xx_quirkproc()
      
      * Make ->quirkproc void.
      
      * Move calling ->quirkproc from do_identify() to probe_hwif().
      
      * Convert it821x_fixups() to it821x_quirkproc() in it821x.c.
      
      * Convert siimage_fixup() to sil_quirkproc() in siimage.c, also remove
        no longer needed drive->present check from is_dev_seagate_sata().
      
      * Convert ide_undecoded_slave() to accept 'drive' instead of 'hwif'
        as an argument.  Then convert ide_register_hw() to accept 'quirkproc'
        argument instead of 'fixup' one.
      
      * Remove no longer needed ->fixup method.
      Acked-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      f01393e4
  10. 25 Jan, 2008 6 commits
  11. 12 Dec, 2007 1 commit
    • Sergei Shtylyov's avatar
      hpt366: fix HPT37x PIO mode timings (take 2) · 809b53c4
      Sergei Shtylyov authored
      
      
      After looking into the HPT370 manual (now that I have it) and re-checking all
      the timing tables, here's what I have discovered:
      
      - at 33 MHz clock, PIO mode 0 timings turned to be overclocked, and all other
        PIO modes underclocked;
      
      - at 50 MHz clock, PIO modes 0 to 2 turned to be overclocked;
      
      - at 66 MHz clock, PIO mode 0 was overclocked too.
      
      Finally, the taskfile timing (matching PIO mode 0) turned to be overclocked at
      all clock frequencies (and in all manuals)...
      
      The new timings have been tested on HPT370 chip (at 33 MHz PCI clock) and on
      HPT371N chip (at both 50 and 66 MHz DPLL clock).
      Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      809b53c4
  12. 26 Oct, 2007 1 commit
    • Bartlomiej Zolnierkiewicz's avatar
      hpt366: fix build for CONFIG_HOTPLUG=n · 282037f1
      Bartlomiej Zolnierkiewicz authored
      On Saturday 20 October 2007, Avuton Olrich wrote:
      
      > My randconfig script the attached config caught an error on:
      > drivers/ide/pci/cy82c693.c:439: error: primary causes a section type conflict
      >
      > My git tree: c00046c2
      >
      > Bisected to:
      > 85620436 is first bad commit
      > commit 85620436
      
      
      > Author: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      > Date:   Sat Oct 20 00:32:34 2007 +0200
      >
      >     ide: constify struct ide_port_info
      >
      >     Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      
      It turns out that const and __{dev}initdata cannot be mixed currently
      and that hpt366 host driver is also affected by the same issue:
      
      > drivers/ide/pci/hpt366.c:1428: error: hpt366_chipsets causes a section type
      > conflict
      
      This patch workarounds the problem by making static struct hpt_info instances
      const.  Now all __devinitdata data in hpt366 host driver are read-only so it
      builds again (driver's .init.data section gets marked as READONLY).
      
      While at it:
      
      * Bump driver version.
      
      Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: "Avuton Olrich" <avuton@gmail.com>
      Cc: Randy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      282037f1
  13. 19 Oct, 2007 2 commits
  14. 18 Oct, 2007 7 commits