Received: by 10.213.65.68 with SMTP id h4csp1078911imn; Sat, 31 Mar 2018 18:43:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx48tWClGlh52LdHBWkULSDGg1nZ4epUb0E00Ips1CcnTwIjGWA46comWf4Rv2i4++GZRvpor X-Received: by 10.98.160.92 with SMTP id r89mr3440570pfe.235.1522547021723; Sat, 31 Mar 2018 18:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522547021; cv=none; d=google.com; s=arc-20160816; b=qKxkxaTkniFC/Ow0ParBKtzW2CZSwC7O2ktY8ZvBMEn5+gDnuxOvBy8Zbp/lssAMoi 2ci6bv/VwoSH7iUhJGV0V9GvJU60zOnwSCUlz4eHOj2HYFGdITLDtYF7YVwuZ++5KYp7 zM8aiZ9SMZh3/1M3KHbALYfkIIT2mgbj87H3rkKr/+RvB3co9d+ZyJs6CIGyW6o1GCi1 FPAqmja8qduxU2qSEhDlMAWXH1uDn24HeBRsP2ObjB/GDKkoQen/1beUInqSUFCB50lz Z/DV9GLbpq5b1/exyItXR602tu5A/IoNga9a63O+8iBZUHONM55DKaRBBVk0iqAgbDQ2 zJQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:from:references:in-reply-to :message-id:cc:to:arc-authentication-results; bh=/bZNR3c7m4c/JLdsuM1+BFAvMSPoCc9/hxPuTNUAmTg=; b=eJHPuemJ/JDZRmYRFjy+6RGLWonvnIhzWJOcBYEcBM3XpVqOQKLbCN3/QFfyeM6M0q YqUlCI1COy+FiTNw/WN5o3cJ73HdtZogfx8FYyt6sEyb8oARKoi9UBcA208AK0YPF3yE uh67RvexV44U7XcOz1BDgfGi/PZOy3ikNWvXDKKQETFrKZGEP1vz46FnVpm1VP5cxNW+ 2yaBC24pB5akGlCqpZzBHHvnGov/qRCS+jeP2wEAVjH7lyLJqCPH872FDxTvXoU2+F+1 ndoxbO5v8hX1hWwjqDwq8FMyDKhCpvXsttAy5XWVqQfHchD0PrYhS5kMQZCYOmyom1oo onXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si6727541pgv.75.2018.03.31.18.43.28; Sat, 31 Mar 2018 18:43:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753279AbeDABlN (ORCPT + 99 others); Sat, 31 Mar 2018 21:41:13 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:47332 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752919AbeDABlH (ORCPT ); Sat, 31 Mar 2018 21:41:07 -0400 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id 0258122913; Sat, 31 Mar 2018 21:41:04 -0400 (EDT) To: Geert Uytterhoeven Cc: Laurent Vivier , Jens Axboe , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Message-Id: <8b6687388074cd4be70b625f874292cd062e0b04.1522546571.git.fthain@telegraphics.com.au> In-Reply-To: References: From: Finn Thain Subject: [PATCH 04/12] m68k/mac: Place ISM IOP in bypass mode Date: Sat, 31 Mar 2018 21:41:04 -0400 (EDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Tested-by: Stan Johnson Signed-off-by: Finn Thain --- 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