lkml.org 
[lkml]   [2002]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH] 2.5.3-dj5 synclink.c fix so that it compiles
    On Mon, Feb 11 2002, reddog83 wrote:
    > Paul-
    > That is understandable. I had the same guess as you when I made this patch.
    > Why is ths synclink.c driver using DMA Mapping. After I took that line out I
    > was fine becuase my system is fine.

    The "real" fix for synclink is just something like this, afaics.

    # This is a BitKeeper generated patch for the following project:
    # Project Name: Linux kernel tree
    # This patch format is intended for GNU patch command version 2.5 or higher.
    # This patch includes the following deltas:
    # ChangeSet 1.275 -> 1.276
    # drivers/char/synclink.c 1.11 -> 1.12
    #
    # The following is the BitKeeper ChangeSet Log
    # --------------------------------------------
    # 02/02/12 axboe@burns.home.kernel.dk 1.276
    # synclink is an ISA-only driver, so just use isa_virt_to_bus to make
    # it work
    # --------------------------------------------
    #
    diff -Nru a/drivers/char/synclink.c b/drivers/char/synclink.c
    --- a/drivers/char/synclink.c Tue Feb 12 07:55:54 2002
    +++ b/drivers/char/synclink.c Tue Feb 12 07:55:54 2002
    @@ -60,8 +60,6 @@
    # define BREAKPOINT() { }
    #endif

    -#error Please convert me to Documentation/DMA-mapping.txt
    -
    #define MAX_ISA_DEVICES 10
    #define MAX_PCI_DEVICES 10
    #define MAX_TOTAL_DEVICES 20
    @@ -3985,7 +3983,7 @@
    if ( info->buffer_list == NULL )
    return -ENOMEM;

    - info->buffer_list_phys = virt_to_bus(info->buffer_list);
    + info->buffer_list_phys = isa_virt_to_bus(info->buffer_list);
    }

    /* We got the memory for the buffer entry lists. */
    @@ -4096,7 +4094,7 @@
    kmalloc(DMABUFFERSIZE, GFP_KERNEL | GFP_DMA);
    if ( BufferList[i].virt_addr == NULL )
    return -ENOMEM;
    - phys_addr = virt_to_bus(BufferList[i].virt_addr);
    + phys_addr = isa_virt_to_bus(BufferList[i].virt_addr);
    }
    BufferList[i].phys_addr = phys_addr;
    }
    --
    Jens Axboe

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:24    [W:2.880 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site