From: b.zolnierkie@samsung.com (Bartlomiej Zolnierkiewicz)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] pata_pcmcia: add EBSA110's PCMCIA slot support
Date: Fri, 17 Mar 2017 12:59:56 +0100 [thread overview]
Message-ID: <1533391.BtkrkgvqUW@amdc3058> (raw)
In-Reply-To: <20170316212654.GD1480@htj.duckdns.org>
Hi,
On Thursday, March 16, 2017 05:26:54 PM Tejun Heo wrote:
> Hello,
>
> On Tue, Mar 14, 2017 at 06:50:43PM +0100, Bartlomiej Zolnierkiewicz wrote:
> > +static struct ata_port_operations pcmcia_ebsa110_port_ops = {
> > + .inherits = &ata_sff_port_ops,
> > + .sff_dev_select = pmcmia_ebsa110_dev_select,
> ^^^^^^
> > + .sff_set_devctl = pcmcia_ebsa110_set_devctl,
> > + .sff_check_status = pcmcia_ebsa110_check_status,
> > + .sff_check_altstatus = pcmcia_ebsa110_check_altstatus,
> > + .sff_tf_load = pcmcia_ebsa110_tf_load,
> > + .sff_tf_read = pcmcia_ebsa110_tf_read,
> > + .sff_exec_command = pcmcia_ebsa110_exec_command,
> > + .sff_data_xfer = ata_sff_data_xfer_noirq,
> > + .softreset = pata_pcmcia_ebsa110_softreset,
> > + .cable_detect = ata_cable_40wire,
> > + .set_mode = pcmcia_set_mode,
> > +};
>
> Heh, that's a fat driver for a sff device. I suppose this is mostly
> copied from the matching ide driver but it'd be nice to explain why it
> needs duplicate most standard functions. Is it because PCMCIA
> assigned address doesn't fall under the usual read/io boundary on the
> arch?
There is no support for this device in the upstream ide driver but
Russell has a hacky patch to make it work by redefining inb()/outb()
operations globally for the whole ide subsystem, please see:
https://www.spinics.net/lists/arm-kernel/msg567454.html
and
arch/arm/mach-ebsa110/io.c
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
next prev parent reply other threads:[~2017-03-17 11:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170314175046epcas1p43f98daad14a2bac7f314e7d39e120232@epcas1p4.samsung.com>
2017-03-14 17:50 ` [PATCH] pata_pcmcia: add EBSA110's PCMCIA slot support Bartlomiej Zolnierkiewicz
2017-03-16 21:26 ` Tejun Heo
2017-03-17 11:59 ` Bartlomiej Zolnierkiewicz [this message]
2017-03-17 13:39 ` Tejun Heo
2017-03-17 14:08 ` Bartlomiej Zolnierkiewicz
2017-03-17 14:13 ` Tejun Heo
2017-03-17 15:51 ` Bartlomiej Zolnierkiewicz
2017-03-20 13:00 ` Bartlomiej Zolnierkiewicz
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=1533391.BtkrkgvqUW@amdc3058 \
--to=b.zolnierkie@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).