public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ondrej Zary <linux@zary.sk>
To: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Cc: Christoph Hellwig <hch@lst.de>, Jens Axboe <axboe@kernel.dk>,
	Tim Waugh <tim@cyberelk.net>,
	linux-block@vger.kernel.org, linux-parport@lists.infradead.org,
	linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v0] pata_parport: add driver (PARIDE replacement)
Date: Fri, 11 Mar 2022 19:55:15 +0100	[thread overview]
Message-ID: <202203111955.15743.linux@zary.sk> (raw)
In-Reply-To: <e41b526d-18d4-ae05-976d-3021e739cd8e@opensource.wdc.com>

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 <linux@zary.sk>
> > ---
> >  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

  reply	other threads:[~2022-03-11 18:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-10 21:28 [PATCH v0] pata_parport: add driver (PARIDE replacement) Ondrej Zary
2022-03-10 23:59 ` Damien Le Moal
2022-03-11 18:55   ` Ondrej Zary [this message]
2022-03-12  8:09     ` Damien Le Moal
2022-03-12 11:21       ` Ondrej Zary
2022-03-15  8:23         ` Christoph Hellwig
2022-03-11  5:45 ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202203111955.15743.linux@zary.sk \
    --to=linux@zary.sk \
    --cc=axboe@kernel.dk \
    --cc=damien.lemoal@opensource.wdc.com \
    --cc=hch@lst.de \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-parport@lists.infradead.org \
    --cc=tim@cyberelk.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox