Received: by 10.213.65.68 with SMTP id h4csp1078592imn; Sat, 31 Mar 2018 18:43:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx497ndLa4Ap7BodKkoU7qynDtjthS4vwEdYo9bpP+AK+G1+8lTgmbu/VdoDlL/o6w9MGtQ8d X-Received: by 10.99.175.6 with SMTP id w6mr2921820pge.186.1522546982576; Sat, 31 Mar 2018 18:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522546982; cv=none; d=google.com; s=arc-20160816; b=hyucrSvzkO7IGucxE/D5cxmz3a5IMIsprIMqKqyR2QYi0xTPdX1Wex6lh5yaNkr3QD ZZL9HfeWVT6WqteoZoToIcZdGnFm70HGIKdLEEoAYKTmsGu3jyFalVpqrSKJBGjjo7+9 7W4LuYqGOZZdLOWTHMuPTxA8NJVyyLEXfQKoR9d6MYS/gBaGgGp6cHX7FHEsxuRldQWU kmBZAUkCAlhp/RieET1pb0fOmsRUYiiQeHjny1Yfukw7yhR/B7d+ayjt+qs7exZFYzSv RpT7SNusHINZrQ/zXOOT9CqwHNINo14YNZL1doy7ZrV2tSvl+FUOAvVbFn51BziiueEl 10kg== 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=epAXLp8DM1cTuaYtlgb4/++Du3IjeOqkoOQu8GskGR8=; b=BfuO32W2s89td08DDfDXpRnLZufhTAqDLIFirICUxe6l1RWMmmUGUnFbHb/JeZNASu 5khNOZb+5ZrDaxUqBXISJcZ9E04zhqArEhoVXcsQX/BkKL8Tg3eAELR2p1+5A5hxdGgg nIB7x/Jsph0o6hzRlModIPdHi/domW87UVWqZOQzZ8r0Ant3G2nih3Sx/NtEeJ3f5Fat 5RYRF3DWQwe8Cckg0Kk6sfq5q8pv0l84cbcqJiRn+a+pecvU2EFAj1slDB1x8jzimIda 2n8Eny8RatCtNj07En21AMk6AHaU5XtsBwhqx8GJ8UDb6Sscb6VXFxj1oeeOaxdVthXT G9Vg== 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 70-v6si11783226ple.639.2018.03.31.18.42.49; Sat, 31 Mar 2018 18:43:02 -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 S1753320AbeDABle (ORCPT + 99 others); Sat, 31 Mar 2018 21:41:34 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:47452 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753208AbeDABlK (ORCPT ); Sat, 31 Mar 2018 21:41:10 -0400 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id 75F302299A; Sat, 31 Mar 2018 21:41:05 -0400 (EDT) To: Geert Uytterhoeven Cc: Laurent Vivier , Jens Axboe , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: References: From: Finn Thain Subject: [PATCH 12/12] block/swim: Select appropriate drive on device open Date: Sat, 31 Mar 2018 21:41:05 -0400 (EDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Cc: Laurent Vivier Cc: Jens Axboe Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/block/swim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/swim.c b/drivers/block/swim.c index c4eb54575574..64226c56ffb2 100644 --- a/drivers/block/swim.c +++ b/drivers/block/swim.c @@ -660,7 +660,7 @@ static int floppy_open(struct block_device *bdev, fmode_t mode) swim_write(base, setup, S_IBM_DRIVE | S_FCLK_DIV2); udelay(10); - swim_drive(base, INTERNAL_DRIVE); + swim_drive(base, fs->location); swim_motor(base, ON); swim_action(base, SETMFM); if (fs->ejected) -- 2.16.1