Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6463278ybi; Mon, 8 Jul 2019 03:28:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqycxgK27q8iJKaCv0VOsSWgIaReD2QqaWj5Ejvwgq2HHTciL2VZG9GDYNmXOuFO/ro7RB7b X-Received: by 2002:a17:902:bcc4:: with SMTP id o4mr23270755pls.90.1562581723181; Mon, 08 Jul 2019 03:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562581723; cv=none; d=google.com; s=arc-20160816; b=amllIXMlEIlnL9CtNlW3P4A8c8HsF4wYJnFLz8ROWvAc86IYfAO06whFwnKHwaJk5c do9Djl94u/HY5OpDCXcWIBCVJ9bLfQ1qDPweZcN7nXew0z6Crak9otFQgk3nfiTgA+iu nOVmMY2+Y+jwBcnBKmXmq5AXufcw6WOg/OkmBR2eirjVQODqraVGo5EeFmWR1YT1GR2B dv6jQ9hXSn6sVysiMMRHEUDFAmsz0izkKtyiI+PBXiR7QOHcGnp7nnyaRTX7d3khmrcU OZEEXPsoo9RWfrVrDVJFwzz2SdK5VedimLDLYywEiWPhQFit1J0fO+AYsUCgTuFBWYCy WmSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=2ZrT2N1sutRemC0ofEBvwqZxYdQwvhpPAhF5OXToKzE=; b=H+uZ2Mg+G3d5/BppYMAm7tj1HZJRF8NFmQCOanoME7/p0BgM6M++BQtFYywUFL50dw gQfE+ceAXQF35VKZjuDGcOlJZOomg6FqX6p8eYpmbgamZxTaAM+N2zB1IFDSUnV6MZii yqOu0a0uQdL1DFQPDHoxatmOQ3prZYBmy2J+UFVus1uYWF+hSqI6l5LMV3ZJMnT4Xji4 LZGok3MpqICLc23ISU0eUUj8dfg8k9IBo4psHV/sSD+dgIatGDLXmTtCIpv+PTXVajN1 FX4YOxKlpnzgtE9CIoy96RIScfEKxIbQ/QOiv5ouwFb1In8pCjgjn6cmluo6OFB+55AK jLNg== 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 f1si16531183plf.410.2019.07.08.03.28.27; Mon, 08 Jul 2019 03:28:43 -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 S1729429AbfGHH1E (ORCPT + 99 others); Mon, 8 Jul 2019 03:27:04 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:40917 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbfGHH1D (ORCPT ); Mon, 8 Jul 2019 03:27:03 -0400 Received: by mail-oi1-f196.google.com with SMTP id w196so11809944oie.7 for ; Mon, 08 Jul 2019 00:27:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2ZrT2N1sutRemC0ofEBvwqZxYdQwvhpPAhF5OXToKzE=; b=DCbHNenHLv1PS6wJAizJh4Js1ZPoRojczPMekgWngk93by09yhCD1Lt229d659Ur9g i0Vgq/+2cmcT5P65pgK1hGsMqXH2Z6iAS0Lb2TWvZOM81Kaa0aoAeYy7eTA1kpCmE3qk vTg9tp3nBSke/9LeFVcPJGnWLOhzbDjDnW/ThLIfWn/xAzQ744EafFCJeYSKOCxbdFTO g2KM+MSbkw/IjsuW1ne+Zty4IxCICGPyLoqtyIQc6Q3/W9YieExmeJ6RCJr3o/gRrv+0 DtxigZvyECrFt7udLnSI5BZez7uibHrZkUkd1BLbJwzAJmfYwy2nmhV+S9gJTvnWbLkr WLUA== X-Gm-Message-State: APjAAAXEIjxrZfYVyXmVxQ+yk9ua/n6drkLcF+OYHEZT+SwMkAmcb/5F 2y0swGwksyb0PxUpOqJafEFTbRhKbCFFlWg3TYI= X-Received: by 2002:a05:6808:3c5:: with SMTP id o5mr8625647oie.102.1562570822914; Mon, 08 Jul 2019 00:27:02 -0700 (PDT) MIME-Version: 1.0 References: <224218b529a5abb1d5dd5ce2103b685a10866577.1550182390.git.fthain@telegraphics.com.au> In-Reply-To: <224218b529a5abb1d5dd5ce2103b685a10866577.1550182390.git.fthain@telegraphics.com.au> From: Geert Uytterhoeven Date: Mon, 8 Jul 2019 09:26:51 +0200 Message-ID: Subject: Re: [PATCH] m68k/mac: Revisit floppy disc controller base addresses To: Finn Thain Cc: Joshua Thompson , Laurent Vivier , linux-m68k , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Finn, Thanks for your patch! On Thu, Feb 14, 2019 at 11:22 PM Finn Thain wrote: > Rename floppy_type macros to make them more consistent with the scsi_type > macros, which are named after classes of models with similar memory maps. > > The documentation for LC-class machines has the IO devices at offsets > from $50F0 0000. Use these addresses (consistent with mac_scsi resources) > because they may not be aliased elsewhere in the memory map, e.g. at > offsets from $5000 0000. I guess the others do have aliases at 0x50000000? ... > > Add comments with controller type information from 'Designing Cards and > Drivers for the Macintosh Family', relevant Developer Notes and > http://mess.redump.net/mess/driver_info/mac_technical_notes > > Adopt phys_addr_t to avoid type casts. > > Cc: Laurent Vivier > Tested-by: Stan Johnson > Signed-off-by: Finn Thain > Acked-by: Laurent Vivier > --- a/arch/m68k/mac/config.c > +++ b/arch/m68k/mac/config.c > @@ -973,22 +973,22 @@ int __init mac_platform_init(void) > */ > > switch (macintosh_config->floppy_type) { > - case MAC_FLOPPY_SWIM_ADDR1: > - swim_base = (u8 *)(VIA1_BASE + 0x1E000); > + case MAC_FLOPPY_QUADRA: > + swim_base = 0x5001E000; > break; > - case MAC_FLOPPY_SWIM_ADDR2: > - swim_base = (u8 *)(VIA1_BASE + 0x16000); > + case MAC_FLOPPY_OLD: > + swim_base = 0x50016000; ... so that's why you change them from 0x50fxxxxx to 0x500xxxxx? If that is correct, please mention that in the patch description. Thanks! > break; > - default: > - swim_base = NULL; > + case MAC_FLOPPY_LC: > + swim_base = 0x50F16000; > break; > } > > if (swim_base) { > struct resource swim_rsrc = { > .flags = IORESOURCE_MEM, > - .start = (resource_size_t)swim_base, > - .end = (resource_size_t)swim_base + 0x1FFF, > + .start = swim_base, > + .end = swim_base + 0x1FFF, > }; > > platform_device_register_simple("swim", -1, &swim_rsrc, 1); Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds