Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1974589imm; Thu, 18 Oct 2018 07:14:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV61RTa1vhxndYk16kj8+v+p6l2FL3KZfDuROyLhu4kOULLfQ43jYciB7F14LzP3q+aW2Y132 X-Received: by 2002:a62:ac1:: with SMTP id 62-v6mr4849829pfk.90.1539872046642; Thu, 18 Oct 2018 07:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539872046; cv=none; d=google.com; s=arc-20160816; b=vDkEO6hS2+gtm6IpFSQHOsg05NvUHkBGGDVRMafhfZeq473mST8bBWvHQrZPFwNljf t4QI6lTMa2LlWfJZUAgIcEE3RWlZ9FvO6Q5xYwJ1Foj3d161TNF+RexmcXisJcEKz21F enXG+e8Oi1RQhpSlenOKWXUW4RAOuJSZ/d8aJdw/qSj6H7riC4DVFcPKGdl7xG35qy+0 fuiVKCP0gtJnA4R1hevDvH7uxnoKk1oGn+pdYtYLoHfuOajk0AaGe1jxcIkzfngSZyPE u14pAjaDegFlUfSvyBcKtJDlbxlqxphBaz4HPK1QeimVhALaVuoMPH8tY5kO7eUhcyCT E+LA== 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=s8l5ofKErrj4f90Fkpahh0Q67ZoqT1lt7stgTkH/ESs=; b=iNkGGPBfY+tHuOajYLm+PakShLS/ch8PmQM+dpNi8bN9/mQ0By/tR7H85ufH0rWPe2 Yh+tYzEIldaUwBPECVSkFWy0p3DREi0C5ybWnv6SyTGQSk49y2Ai3fKx9WSqC+eOnw0t s2+CMmmSk08XV1pxxnR4h1Pd0tFnUCtTKyLwPJO2q9p2FOU17AOg0LxbHPtPvceHAwPZ Xz/Pm3vYHxZj2aXv7G4e3wVT7x4ETHXOSQfEGLFaHzj2QR89bzZsPFB2l+Kc7sIs5kvm T1iA5X4DByt6oW15hCZR1iY4Zy6jmaAxRp6GWUZhq7N/N2KsG2pzvD3VxX4lTHCDW8W6 7Wlg== 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 p188-v6si23216817pfg.197.2018.10.18.07.13.48; Thu, 18 Oct 2018 07:14:06 -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 S1728227AbeJRWEn (ORCPT + 99 others); Thu, 18 Oct 2018 18:04:43 -0400 Received: from mail-vk1-f193.google.com ([209.85.221.193]:32855 "EHLO mail-vk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727333AbeJRWEn (ORCPT ); Thu, 18 Oct 2018 18:04:43 -0400 Received: by mail-vk1-f193.google.com with SMTP id l186so6663317vke.0; Thu, 18 Oct 2018 07:03:33 -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=s8l5ofKErrj4f90Fkpahh0Q67ZoqT1lt7stgTkH/ESs=; b=Epf7hODM+2qpXwISjpz7WIXpAb7iTJpMub2WtnPlYlP9jcYd84+yUN6Jhgg7UdJqF3 m0QbxHsV5nA2JWZVvEriCSLsioF/YK6PoP4DshIvP9y1WM/xbZs8lECoNYcS3E5X8T5E mA7x6VZL7dKAk8g5/yAhCpEEWpYJy/EvPmYXogfnE67vBp7N++KGestMOTJdIz8EFQeE FPpBdlXmww4oSvTEwHpM3/KW7/n/GSCmbWaVYWkfPHmeG98+jyOIgUt15wNdo0SM3jtw JG+vvAuGX/lVMtVqUcfhImqdQDXa1N777PaQjzbfFOP5VA2PyRY3F9TiiOBzLlOWL8eH WCmg== X-Gm-Message-State: ABuFfoiwbDhRXe66S1psBJgs4ZtcFa8IiIT8pIEZpZGvbDumv18A4juj vIfGEPKDeN6Ux7jIJwADEAYq5Su1exEw+1yB9iMg1sm0 X-Received: by 2002:a1f:b547:: with SMTP id e68-v6mr12652957vkf.72.1539871412397; Thu, 18 Oct 2018 07:03:32 -0700 (PDT) MIME-Version: 1.0 References: <20181018122951eucas1p2be43dc17df8d2c754e771785b3ad7457~es8dn4Tg90035600356eucas1p2H@eucas1p2.samsung.com> <20181018124118.GA10376@infradead.org> <20181018131210eucas1p14a11ec7555ca9ef3003387f1985326e6~ethZ7giWB0310803108eucas1p1X@eucas1p1.samsung.com> In-Reply-To: <20181018131210eucas1p14a11ec7555ca9ef3003387f1985326e6~ethZ7giWB0310803108eucas1p1X@eucas1p1.samsung.com> From: Geert Uytterhoeven Date: Thu, 18 Oct 2018 16:03:19 +0200 Message-ID: Subject: Re: [PATCH] ata: add Buddha PATA controller driver To: Bartlomiej Zolnierkiewicz Cc: Christoph Hellwig , John Paul Adrian Glaubitz , Michael Schmitz , Jens Axboe , linux-ide@vger.kernel.org, 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 Bartlomiej, Christoph, On Thu, Oct 18, 2018 at 3:12 PM Bartlomiej Zolnierkiewicz wrote: > On 10/18/2018 02:41 PM, Christoph Hellwig wrote: > >> +static int __init pata_buddha_init_one(void) > >> +{ > >> + struct zorro_dev *z = NULL; > >> + > >> + while ((z = zorro_find_device(ZORRO_WILDCARD, z))) { > > > > I'm not really an m68k expert, but shouldn't this implement a > > struct zorro_driver instead? (or maybe two of them as xsurf > > seems sufficiently different). > > I didn't want to introduce too many changes over old IDE's > driver in the initial version of the libata driver as > I can't test them myself. Once the new driver is verified > to work I plan to convert it into proper Zorro_driver. Unfortunately that conversion cannot happen right now, as zorro8390.c already binds against the X-Surf zorro device. I think the proper solution would be to start using MFD for multi-function Zorro devices, cfr. the work I started years ago, but never completed https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git/log/?h=zorro-mfd Then the Buddha MFD driver can instantiate 2 Buddha IDE cells, the Catweasel MFD driver can instantiate 3 Buddha IDE cells and a Catweasel floppy cell, and the X-Surf MFD driver can instantiate 2 Buddha IDE cells and a zorro8390 cell. 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