Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5145234pxj; Wed, 9 Jun 2021 10:08:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAncKxX+lXfJvITT9W417yKeOHe+kcJIy1AZg/0b5MkORgFjN5Uc+xErQAaglGCu5Ih4U/ X-Received: by 2002:a17:906:c314:: with SMTP id s20mr817270ejz.355.1623258499373; Wed, 09 Jun 2021 10:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623258499; cv=none; d=google.com; s=arc-20160816; b=lGNvBH7rvGvQp1j8q1MLMA2QlAqwiW3vt1eFgn97P87+Ct2LdfQQwpL/HdncEdMDn2 iHmIbf/j9x5jjaMyEgPQub6eDgSF28Qao88AoTLXcOUrvimrSWa0nCYrQkwBC4K0GAtm yD9AxHaqyXVQcmt5PldmjHRMCfeVsUuHDgRB07Ij2x/rNHnXPcBQFF39va0WzQCr5Zjj 21Np/c2Vh/+HbVhk7yX5HvUB7sbP02ueXdscmyWs+7xZAWIqn5aNMAwf9V/TMLhuoC5l yQJkW73r+w5TH6QJ0o8ZVjGo2qgxDcNy0iUSWjg/+nF3b5AZLZqWWCuuRib0A5GLX7Uu zcxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=4fj15iHDE4EFRmdRKw+InwfdANDxyy1h2Pcw1pJ7br4=; b=UnoCsBVyROJSKu4vymJcw2tsjK1xJ5N/cT0RbHTutwNVSgU6GqG81QW/XvOZhFmJWI 3Xwdv2SH7eqttk7L+bN90yxqZ0nBs4J0M2yh4olBMmqOeQ8PbUOVAk2eUEAu7L0huFut qKFTStRutxziGADTz9zcZRfZmhScDUtt6aja3s6jJfbzezGSAv/6tv6so5eMBb/Z6qFP MOh7xmica9dnhNwZziGJzmuC1gf3MvZbLjFU9NeDb7xZ8MyvnGLuj6XMWQVDd5WySxZw bzZJJnrNXi0pXeuA3507Rro7IAHW/ftQborHw3PG46KYQuaPP1FMC6AB3hDeuTSb/qy5 LjAA== 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 r18si190276edd.158.2021.06.09.10.07.55; Wed, 09 Jun 2021 10:08:19 -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 S232979AbhFIG3P (ORCPT + 99 others); Wed, 9 Jun 2021 02:29:15 -0400 Received: from mail-ua1-f46.google.com ([209.85.222.46]:41948 "EHLO mail-ua1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232540AbhFIG3O (ORCPT ); Wed, 9 Jun 2021 02:29:14 -0400 Received: by mail-ua1-f46.google.com with SMTP id g34so12483490uah.8; Tue, 08 Jun 2021 23:27:10 -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=4fj15iHDE4EFRmdRKw+InwfdANDxyy1h2Pcw1pJ7br4=; b=dhR7hrvEl626d/YKTal/evaxZoWoX6ItbhFB/BdrkKJY3hpgLyz6LO1/ze76iX0wgp oEv2jR57AG+bcXkiCxt0PVF/HrZ5f36fuZZa+aCN/cAXHPh2Cpa6CMIxAA5b755aPwKm Aior0Htc0ilOAtLVmyqCZtwnFBd8IlBZyFK81DY2WsIvb+IqD2xpsrPkbP4IVungfvQz hpNSYWRAWD5g68dIFGwpoIIP3NsAJPPPymA6BWqfve0wCRLRUuoZl/L1ivhPZCRVdBli j0R2sp213MwE3ZVF09j75fRzSNg1XEmYsO7NTfDUkfbKNBmTYu5xVCnP+QkuPtglnjA+ pSkA== X-Gm-Message-State: AOAM530HUOH1saFNYi88NeMgxaxSG9qiWNMnFzKPt8N+oyHNyUzfNyuL RZfSWUMET5T3lY/fQEW3zI97MxTXaPc/Kw15NMMf5S8G91HOQw== X-Received: by 2002:ab0:63d9:: with SMTP id i25mr14918511uap.106.1623220030058; Tue, 08 Jun 2021 23:27:10 -0700 (PDT) MIME-Version: 1.0 References: <8ec3037e69f5ec9f7dbbafc642638f03eff29927.1623131194.git.fthain@linux-m68k.org> In-Reply-To: <8ec3037e69f5ec9f7dbbafc642638f03eff29927.1623131194.git.fthain@linux-m68k.org> From: Geert Uytterhoeven Date: Wed, 9 Jun 2021 08:26:58 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] m68k/mac: Replace macide driver with generic platform drivers To: Finn Thain Cc: Jens Axboe , "David S. Miller" , Michael Schmitz , Joshua Thompson , linux-m68k , Linux Kernel Mailing List , linux-ide@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 8, 2021 at 8:04 AM Finn Thain wrote: > This allows m68k mac systems to switch from the deprecated IDE subsystem > to libata. > > 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. It appears that 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 have unintended side effects as it > may alter other flag bits. Fortunately, all of the other bits are unused > by Linux. When tested on my Quadra 630, the assignment *ide_ifr &= ~0x20 > was observed to have no effect on bit 5, so it may be redundant anyway. > > Cc: Michael Schmitz > Cc: Joshua Thompson > Reviewed-by: Michael Schmitz > Signed-off-by: Finn Thain Thanks for your patch! > arch/m68k/configs/mac_defconfig | 1 - > arch/m68k/configs/multi_defconfig | 1 - > arch/m68k/mac/config.c | 24 +++-- > drivers/ide/Kconfig | 14 --- > drivers/ide/Makefile | 1 - > drivers/ide/macide.c | 161 ------------------------------ > 6 files changed, 14 insertions(+), 188 deletions(-) > delete mode 100644 drivers/ide/macide.c Acked-by: Geert Uytterhoeven 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