Skip to content
Snippets Groups Projects
  • Jochen Friedrich's avatar
    504ff16c
    [PATCH] tms380tr: move to DMA API · 504ff16c
    Jochen Friedrich authored
    
    This patch makes tms380tr use the new DMA API.  Now that on Alpha, this API
    also supports bus master DMA for ISA (platform) devices, i changed the
    driver to use this new API.
    
    This also works around a bug in the firmware loader: The example provided
    in Documentation/firmware_class no longer works, as the firmware loader now
    calls get_kobj_path_length() and the kernel promptly oopses, as the
    home-grown device doesn't have a parent.  Of course, this doesn't happen
    with a "real" device which has its bus (or pseudo bus in the case of
    platform) as parent.
    
    Converted tms380tr to use new DMA API:
      - proteon.c, skisa.c: use platform pseudo bus to create a struct device
      - Space.c: delete init hooks
      - abyss.c, tmspci.c: pass struct device to tms380tr.c
      - tms380tr.c, tms380tr.h: new DMA API, use real device fo firmware loader
    
    Signed-off-by: default avatarJochen Friedrich <jochen@scram.de>
    Cc: Jeff Garzik <jgarzik@pobox.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
    504ff16c
    History
    [PATCH] tms380tr: move to DMA API
    Jochen Friedrich authored
    
    This patch makes tms380tr use the new DMA API.  Now that on Alpha, this API
    also supports bus master DMA for ISA (platform) devices, i changed the
    driver to use this new API.
    
    This also works around a bug in the firmware loader: The example provided
    in Documentation/firmware_class no longer works, as the firmware loader now
    calls get_kobj_path_length() and the kernel promptly oopses, as the
    home-grown device doesn't have a parent.  Of course, this doesn't happen
    with a "real" device which has its bus (or pseudo bus in the case of
    platform) as parent.
    
    Converted tms380tr to use new DMA API:
      - proteon.c, skisa.c: use platform pseudo bus to create a struct device
      - Space.c: delete init hooks
      - abyss.c, tmspci.c: pass struct device to tms380tr.c
      - tms380tr.c, tms380tr.h: new DMA API, use real device fo firmware loader
    
    Signed-off-by: default avatarJochen Friedrich <jochen@scram.de>
    Cc: Jeff Garzik <jgarzik@pobox.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>