Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2764136pxy; Sun, 25 Apr 2021 03:27:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP8ycMn2YUBddo6hBkf7QUv7w/uK/hg9SCzXJJkS/URgPBIjAFSWMkcB1tVSwbmkb2vxvr X-Received: by 2002:a62:33c6:0:b029:225:5266:28df with SMTP id z189-20020a6233c60000b0290225526628dfmr12518275pfz.7.1619346454012; Sun, 25 Apr 2021 03:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619346454; cv=none; d=google.com; s=arc-20160816; b=yt8CS/41izBDOdphmmW4SkVQpNHJp0Etn53RmIwq8f4nFAERJ+GuLqgsNPuX9BBQUL ob1qsSF+dQYIuDPi71yQ7lmESCFaPiUaa3drpq63jDmfOj0U0mT04VWn1KOr3iVucUjT fKw9rcuTnimoU6nTTWHS5gvhvTyOcIF6qZEI12TOY2lC8QVh8E3vTRRILe2B6eEo+FgH xHwnYUdQTaR4kIVNStWyccRAso5d7TWc9jwY1m89qpbU5yoDkJWsE5LrJaQ1h6Ynzp8Q 9AyuWpZqkjM1qTppqxg3kM7fwPSO7CWN+BQIYGMR6WpJESGgnZlObkFO2aSPlVSpny+t bzoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=JgS/fvv+uDD8eAcUhBeTA0amJ6gJsIat1X5l/U0tuyk=; b=WgQrZOXiL6GvaI3v4x3u2g2TDDLGerit9HCYgUn2mGjcjjzbJXGx//HPbniO/HBXf3 DxpB1DcVUMEVzlUEjkIw+0qLFcd323DZ9yKqf+r+oQWV8QmzSWbkw6ZS6LKJxqP0HXJR 8LLcGLfp61c0lBOBU5XvMHxM+q2Bknz/h/9af2f92vFo8k3lQjitzqtTZ/JTW3ZapXxl FxGvGMQIVKeh8i5exDNY1QOjuYIUtwsvnHYzIQTOkZS6saJRF82ItBKFHQNR26saXi2P FneugCNpqNjNkf/SKWfDb9vhLwj1HEQn2/LcBZ6c5P91SSFvD2Im4T5wGf6FNKCb9Kfa 7Iyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d27si17353187pgd.141.2021.04.25.03.27.22; Sun, 25 Apr 2021 03:27:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229915AbhDYK0e (ORCPT + 99 others); Sun, 25 Apr 2021 06:26:34 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:35957 "EHLO outpost1.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229466AbhDYK0d (ORCPT ); Sun, 25 Apr 2021 06:26:33 -0400 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1labxY-002Ytb-3m; Sun, 25 Apr 2021 12:25:52 +0200 Received: from port-92-195-56-233.dynamic.as20676.net ([92.195.56.233] helo=[192.168.178.129]) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (envelope-from ) id 1labxX-003D7W-NG; Sun, 25 Apr 2021 12:25:52 +0200 Subject: Re: [PATCH] m68k/mac: Replace macide driver with generic platform driver To: Finn Thain , Geert Uytterhoeven Cc: Michael Schmitz , Christoph Hellwig , Joshua Thompson , "David S. Miller" , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org References: <793432cca963b632709c4d1312baa9874d73e1d8.1619341585.git.fthain@telegraphics.com.au> From: John Paul Adrian Glaubitz Message-ID: Date: Sun, 25 Apr 2021 12:25:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <793432cca963b632709c4d1312baa9874d73e1d8.1619341585.git.fthain@telegraphics.com.au> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 92.195.56.233 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/25/21 11:06 AM, Finn Thain wrote: > This was tested on my Quadra 630. I haven't tested it on my PowerBook 150 > because I don't have a RAM adapter board for it. > > Apparently, the hardware I tested doesn't need macide_clear_irq() or > macide_test_irq() -- if it did, the generic driver would not have worked. > It's possible that those routines are needed for the PowerBook 150 but > we can cross that bridge if and when we come to it. > > BTW, macide_clear_irq() appears to suffer from a race condition. The write > to the interrupt flags register could easily have unintended side effects > as it may alter other flag bits. Fortunately, all of the other bits are > unused by Linux. Moreover, when tested on my Quadra 630, that assignment > (*ide_ifr &= ~0x20) was observed to have no effect on bit 5. Shouldn't we switch to a libata driver instead with legacy IDE been slated for removal from the Linux kernel? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913