lkml.org 
[lkml]   [2018]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 04/12] m68k/mac: Place ISM IOP in bypass mode
    Date
    Some Mac models have an IOP for offloading floppy disk IO. Linux once
    had a driver for that but it got removed in commit b21a323710e7
    ("[PATCH] remove the broken BLK_DEV_SWIM_IOP driver").

    Put the ISM IOP into bypass mode so that the existing 'swim_mod' driver
    can access the controller directly. Use the appropriate macros for the
    flag bits.

    Cc: Laurent Vivier <lvivier@redhat.com>
    Tested-by: Stan Johnson <userm57@yahoo.com>
    Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
    ---
    arch/m68k/mac/iop.c | 7 +++++--
    1 file changed, 5 insertions(+), 2 deletions(-)

    diff --git a/arch/m68k/mac/iop.c b/arch/m68k/mac/iop.c
    index 9bfa17015768..7864dcca5891 100644
    --- a/arch/m68k/mac/iop.c
    +++ b/arch/m68k/mac/iop.c
    @@ -234,6 +234,7 @@ static struct iop_msg *iop_get_unused_msg(void)
    * is to find and initialize the IOPs early in the boot sequence, so that
    * the serial IOP can be placed into bypass mode _before_ we try to
    * initialize the serial console.
    + * The ISM IOP is put into bypass mode for compatibility with the swim driver.
    */

    void __init iop_preinit(void)
    @@ -244,7 +245,8 @@ void __init iop_preinit(void)
    } else {
    iop_base[IOP_NUM_SCC] = (struct mac_iop *) SCC_IOP_BASE_QUADRA;
    }
    - iop_base[IOP_NUM_SCC]->status_ctrl = 0x87;
    + iop_base[IOP_NUM_SCC]->status_ctrl = IOP_BYPASS | IOP_AUTOINC |
    + IOP_RUN | IOP_DMAINACTIVE;
    iop_scc_present = 1;
    } else {
    iop_base[IOP_NUM_SCC] = NULL;
    @@ -256,7 +258,8 @@ void __init iop_preinit(void)
    } else {
    iop_base[IOP_NUM_ISM] = (struct mac_iop *) ISM_IOP_BASE_QUADRA;
    }
    - iop_base[IOP_NUM_ISM]->status_ctrl = 0;
    + iop_base[IOP_NUM_ISM]->status_ctrl = IOP_BYPASS | IOP_AUTOINC |
    + IOP_RUN | IOP_DMAINACTIVE;
    iop_ism_present = 1;
    } else {
    iop_base[IOP_NUM_ISM] = NULL;
    --
    2.16.1
    \
     
     \ /
      Last update: 2018-04-01 03:41    [W:5.632 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site