Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp756327pxp; Fri, 11 Mar 2022 14:17:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyno68tmi6hiY6MYn98BEUaEudfYAO7YaiD8KmzUSX+KG3WTPq1wmvSkbJKR1kbBrrbCcgP X-Received: by 2002:a62:1a53:0:b0:4f7:69d:9731 with SMTP id a80-20020a621a53000000b004f7069d9731mr12087330pfa.31.1647037070852; Fri, 11 Mar 2022 14:17:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647037070; cv=none; d=google.com; s=arc-20160816; b=u76R8FJAWPB54cNA3nMyn9WzXL0RIwWrrz0Aj9v/S8v0MIsnVDFw6yzcHhhGUDDbAC LUBYrdUa9gx6KyN46YK5bnOHUHWAgovBA/PGTnxg3pKTBl1dD1RvHzcaYLNgHiJ5Tcwj 7DwtHzw/bP7az5cIWn6I0KZ9R9avvULRP1I/zJt3eXPwnVAz3Y9KIUIfXA0IYbKqwdDp VM/V/0756VOs+o1eNF7ZfymFL4k3TbDJfzwOap7mMzv1ODhvzBaNKxjiLzpMRalQq1j2 M3sT5mIrAzM1VEoxGyINui5lrIVnrwbKlNVYCUE46OILl8Ki2o9gUX270P4KbgQQxQZj 2qvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references:cc :user-agent:date:subject:to:from; bh=w07KZa+jnSl545h9g3r3Gg3fCqLJPFIP2YVtVizwqKQ=; b=NoliXonuQupO3A2TjJmpd2zvZzyVmvc9uX2ueMDXMdVh9+vz/eSXPzGyYPm+bI6BjQ DYo/rue5tpctkK6hBd6PAAXB50UWG+PGGk1dBTKrlLb4k2bNM/mXM4+hkxNZU8EwqzUn 9tdhg990P/I6aYtJXWUr6UscdYTz46EDiUw7OVcg1Om7Z8npu99+zlVKuEp8aJ7V1Bzt ZtvSViGmYJwR5iduqIWxCOrsNGoUieQZK2xNxeuIw2bRDYPdVxbzO6ws0hIspL1LoE50 r452uSJB7j5vqVziyTHpNDTZ79XOgZl7YUPgilKIYy8nvdXFAMIf9JqARvTySezUjnNh Cv1g== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k2-20020a170902ce0200b00151c3f9e42fsi9225804plg.437.2022.03.11.14.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:17:50 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EB0D82CF4DB; Fri, 11 Mar 2022 13:27:20 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351002AbiCKS43 (ORCPT + 99 others); Fri, 11 Mar 2022 13:56:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345153AbiCKS41 (ORCPT ); Fri, 11 Mar 2022 13:56:27 -0500 Received: from hosting.gsystem.sk (hosting.gsystem.sk [212.5.213.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4086B25E8A; Fri, 11 Mar 2022 10:55:20 -0800 (PST) Received: from [192.168.0.2] (chello089173232159.chello.sk [89.173.232.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hosting.gsystem.sk (Postfix) with ESMTPSA id 49C957A025E; Fri, 11 Mar 2022 19:55:19 +0100 (CET) From: Ondrej Zary To: Damien Le Moal Subject: Re: [PATCH v0] pata_parport: add driver (PARIDE replacement) Date: Fri, 11 Mar 2022 19:55:15 +0100 User-Agent: KMail/1.9.10 Cc: Christoph Hellwig , Jens Axboe , Tim Waugh , linux-block@vger.kernel.org, linux-parport@lists.infradead.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220310212812.13944-1-linux@zary.sk> In-Reply-To: X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <202203111955.15743.linux@zary.sk> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 11 March 2022 00:59:20 Damien Le Moal wrote: > On 3/11/22 06:28, Ondrej Zary wrote: > > Add pata_parport (PARIDE replacement) core libata driver. > > > > The original paride protocol modules are used for now so allow them to > > be compiled without old PARIDE core. > > > > Signed-off-by: Ondrej Zary > > --- > > drivers/Makefile | 2 +- > > drivers/ata/Kconfig | 22 + > > drivers/ata/Makefile | 2 + > > drivers/ata/parport/Makefile | 3 + > > drivers/ata/parport/pata_parport.c | 805 +++++++++++++++++++++++++++++ > > drivers/ata/parport/pata_parport.h | 108 ++++ > > drivers/block/paride/Kconfig | 32 +- > > drivers/block/paride/paride.h | 5 + > > 8 files changed, 962 insertions(+), 17 deletions(-) > > create mode 100644 drivers/ata/parport/Makefile > > create mode 100644 drivers/ata/parport/pata_parport.c > > create mode 100644 drivers/ata/parport/pata_parport.h > > > > diff --git a/drivers/Makefile b/drivers/Makefile > > index a110338c860c..8ec515f3614e 100644 > > --- a/drivers/Makefile > > +++ b/drivers/Makefile > > @@ -98,7 +98,7 @@ obj-$(CONFIG_DIO) += dio/ > > obj-$(CONFIG_SBUS) += sbus/ > > obj-$(CONFIG_ZORRO) += zorro/ > > obj-$(CONFIG_ATA_OVER_ETH) += block/aoe/ > > -obj-$(CONFIG_PARIDE) += block/paride/ > > +obj-y += block/paride/ > > obj-$(CONFIG_TC) += tc/ > > obj-$(CONFIG_USB_PHY) += usb/ > > obj-$(CONFIG_USB) += usb/ > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > > index e5641e6c52ee..671c27b77a48 100644 > > --- a/drivers/ata/Kconfig > > +++ b/drivers/ata/Kconfig > > @@ -1161,6 +1161,28 @@ config PATA_WINBOND_VLB > > Support for the Winbond W83759A controller on Vesa Local Bus > > systems. > > > > +config PATA_PARPORT > > + tristate "Parallel port IDE device support" > > + depends on PARPORT_PC && PARIDE=n > > This is very confusing. The change above this one switch paride > compilation to be unconditional, regardless of CONFIG_PARIDE value, but > here, you have the dependency to PARIDE=n. I do not understand... Please > clarify. pata_parport will use existing paride protocol modules. So the paride/ directory must be processed to compile the protocol modules (if they're enabled) even if paride is not enabled. pata_parport and paride are mutually exclusive because the binary protocol modules are incompatible (the struct pi_adapter is different). -- Ondrej Zary