Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1168976pxp; Sat, 12 Mar 2022 03:41:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvzImy//AVgOhSo95E6Jc0sHLqMx9zPGfzefxKwggMyOg0e94QMOeo7sJhv8urCNlvBXIW X-Received: by 2002:a05:6402:4382:b0:418:4e43:b77e with SMTP id o2-20020a056402438200b004184e43b77emr4980120edc.80.1647085319322; Sat, 12 Mar 2022 03:41:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647085319; cv=none; d=google.com; s=arc-20160816; b=pRTK5lxyW/l8MKjBwjTSFvXcABNQWKLICpz8ItBE3IY/1lo9Z4D1C5Tw5fJWXhsaWA np5dwTFtwmi9J2PgJEfctvlXSDx/XgTAPDyqolXR52MjqRiIGitBEp3ZyE8NbSEcrn5P iQuChWmf1jMWuyzf1x7QIP2UmXcUZw/F+ihg75lXUPRk9AYNdZrMCBnVqU1G+h5QqhBP ym3IdGiUbFMKwvlHzbtvLssXr0B8RXYXGugKa2F2TiC0jKV6rglMyluhhdFTfhbw7dms qXMa+4wF2ipogjj+g8eFQkvDg8lyBSODHjebMhOCnmV9WHd9Ei1PPkMZVPYBocquigZm YzVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature :wdcironportexception:ironport-sdr:ironport-sdr:dkim-signature; bh=rrWVKoYiJbEVX0ejvRh83FEAq1rHQXdUzrwgGdVdQxs=; b=NgV2qRl3+qb2eQv/5msT9xH0m7VVnDQ7mB5UYojZBgnB2VV1HqcSKTV5teDH8OmGsE renfXGmMuZffvetA1fitXghM/KU0oTDvaVYBihTuzy4nIpfhnB6LeKTh19z+AqeTkwyA v8NzQpnTQO7ywUiXtDkvPOMmMQvWUSL/JQtPiBCYRI8hHSWNYzvQKE/Pyx7BBTDu1s/7 qEPTSwijexggu+QJ+Km/qTmRanB6Y2Gxovl9EfwUCVjHHWB46M6xZoDv1VyZMtRg1w1g sVbBGN4qs7cu9aUHxa9YddhOLEjoYb6WZRzfxFRiX1pfgdgZHdz1M3ELz+0lbjPj8RA7 /YfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=dRIdZb40; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=bUlxQEyf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x20-20020a1709060a5400b006d03adbd0b3si6151851ejf.424.2022.03.12.03.41.34; Sat, 12 Mar 2022 03:41:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=dRIdZb40; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=bUlxQEyf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230313AbiCLILH (ORCPT + 99 others); Sat, 12 Mar 2022 03:11:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbiCLILF (ORCPT ); Sat, 12 Mar 2022 03:11:05 -0500 Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17C65268C2A for ; Sat, 12 Mar 2022 00:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1647072601; x=1678608601; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Xg8uSEFC4VVSOLUzy8XVH2UP2EqFKRvXohpU2kfNqDs=; b=dRIdZb40vMu+JbNYBkS/M0v2yv9tiRvcKV5EJf1h54TVgOiTniv+XnPi CxybF2BRYjry7EE7rcww1TPLY5OyOhFNp34yI1rCHwAK/jHsa7EbItNnD 1LVyNn4RcGoJKj28R53j92H/IT1z+W1MTqFa40t4HePeS6ccloX4Anprz tZmZqDIZ8vYROeIyL2BpLXV3bB22Lj6yKFa1EXonhzevnNu8gXABM1rEa io4NizQVc8QoHsjGbTByFNAsk/xi0hyARhuWfh+/Bxv6axFxNDdxVmfN+ BtMaLbqAwWB/XjK/ijBfWxixEpLuwRtL/NLMKF2thCVoX8RkkuBC1Iy5k w==; X-IronPort-AV: E=Sophos;i="5.90,175,1643644800"; d="scan'208";a="196114691" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 12 Mar 2022 16:09:59 +0800 IronPort-SDR: Xn7b5Z5GzSPfIptknokYsZLYS2eDEpTZRl/yRNv/vgc4TMKHD1W3w+JOjChRtkFW1YF4F/vhBH MEiERfifSO+r4EfkYruUz0ayKDsBD1clfBU0UOpI/3a4uK2ilXK6mTbBFhq/O1evm00HmPu8iU eptr0bFSbI0+gZQObvFUNTvEY09JE8PUgoznvu429/5oRFIVCvPRzVS18Tyuf99Jx8iwK+RABY MxwyIQ1HH3z/b/WVdr5EmtUXVeu1UIHu1xsm/ZwdtT6Ti83/7Yp9nh6yV8wnGb6ZeTK6Qm35LI NCE9HuhS4RdYS15wmzCRUMts Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2022 23:42:09 -0800 IronPort-SDR: uL72MW66rKB2MPmSUdj2IAavkwTL0EfV1ApyQmxEtKsT74ZSCNQqszc31rYn6G41TmQ7B6qJmj iwEoFoO4Wc/BbLdY0O+Kthl9ZrSR6oMb7MCrTx8MAJ7nvDlyPaPRUjfxpOm/CUcriaONKaffvb 9VFrXo9bObM7NyK20rqiI8YExmD2EIWUD14Umbk8oqPlGyXFq0AO/ege1RK7oYqng50O4BuIaX /+xVAm/HUAgSkA/Pvxh65T9kP3ouyVJ3c/m8Piuc4TAa1o07XzAfmsqOGm01eh8jB1HEb37UNy qo8= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2022 00:09:58 -0800 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4KFwT20H1tz1SVp2 for ; Sat, 12 Mar 2022 00:09:57 -0800 (PST) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:content-type :in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id; s=dkim; t= 1647072597; x=1649664598; bh=Xg8uSEFC4VVSOLUzy8XVH2UP2EqFKRvXohp U2kfNqDs=; b=bUlxQEyf5YNOaXAIzafgjDdDEvysiik5N/qu/BWRFppOCOKl54g U0to5GEf8ZHhN/O+D9vLzG0mfgJjKR9bXWbb3rFYrP6Q0SBrL5N25lX+XXAhefjQ fvj52z2ylKne9ODgq1zmVb4OS6U4UNzP7nQ+oF0R5kWYnMl98vIxC7gk/GqUMkrQ T6EVQ51rDK9YEdWD4PwFbh1tOW3ipP9QGiM/uBGGyELwIP3enFYIZ6kqLYg7Oms8 iqS4wznT2Y+keszTIPRf3h6BkRgIxpYkrLtWEynlc8jk/4QxZZj4tiUGyk85Ihf8 qTEroOPLy/xsAr2DKxjkWfYfiqDBGhnxeJQ== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Gq4uRFw9PaAc for ; Sat, 12 Mar 2022 00:09:57 -0800 (PST) Received: from [10.225.163.91] (unknown [10.225.163.91]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4KFwSz5gRXz1Rvlx; Sat, 12 Mar 2022 00:09:55 -0800 (PST) Message-ID: Date: Sat, 12 Mar 2022 17:09:54 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH v0] pata_parport: add driver (PARIDE replacement) Content-Language: en-US To: Ondrej Zary 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> <202203111955.15743.linux@zary.sk> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <202203111955.15743.linux@zary.sk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 3/12/22 03:55, Ondrej Zary wrote: > 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). So if both CONFIG_PARIDE and CONFIG_PATA_PARPORT are disabled, there should be no need to compile the core PARIDE code under block/. You should have something like: In drivers/Makefile: -obj-$(CONFIG_PARIDE) += block/paride/ +obj-$(CONFIG_PARIDE_CORE) += block/paride/ And then have CONFIG_PARIDE and CONFIG_PATA_PARPORT select PARIDE_CORE, with CONFIG_PARIDE and CONFIG_PATA_PARPORT being mutually exclusive (using "depends on" as you did). Here, I am assuming that block/paride is the core code used by both PARIDE and PATA_PARPORT. Not sure what PARPORT_PC does nor what its dependency on block/paride code is. -- Damien Le Moal Western Digital Research