From: Paolo Pisati <p.pisati@gmail.com>
To: Damien Le Moal <dlemoal@kernel.org>
Cc: Paolo Pisati <p.pisati@gmail.com>,
Niklas Cassel <cassel@kernel.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
linux-ide@vger.kernel.org, linux-m68k@lists.linux-m68k.org
Subject: Re: [PATCH 2/3] amiga: cslab ata support
Date: Mon, 24 Mar 2025 09:11:29 +0100 [thread overview]
Message-ID: <Z+ETsTZviQP9y9Ff@amaterasu.local> (raw)
In-Reply-To: <f9d2da13-1179-483f-a685-fa67d7abd367@kernel.org>
On Sat, Mar 22, 2025 at 09:41:44AM -0400, Damien Le Moal wrote:
> > + ap->ioaddr.data_addr = base;
> > + ap->ioaddr.error_addr = base + 1 * 4;
> > + ap->ioaddr.feature_addr = base + 1 * 4;
> > + ap->ioaddr.nsect_addr = base + 2 * 4;
> > + ap->ioaddr.lbal_addr = base + 3 * 4;
> > + ap->ioaddr.lbam_addr = base + 4 * 4;
> > + ap->ioaddr.lbah_addr = base + 5 * 4;
> > + ap->ioaddr.device_addr = base + 6 * 4;
> > + ap->ioaddr.status_addr = base + 7 * 4;
> > + ap->ioaddr.command_addr = base + 7 * 4;
> > +
> > + ap->ioaddr.altstatus_addr = base + (0x1000 | (6UL << 2));
> > + ap->ioaddr.ctl_addr = base + (0x1000 | (6UL << 2));
>
> It would be nice to have macro definitions for all the magic numbers you use for
> offsets into base, to document these values.
Thanks for the review Damien, unfortunately the original firmware this driver is
based off doesn't define any macro for these regs/bits meaning.
Other than that, i'll fix the rest and send a v2.
--
bye,
p.
next prev parent reply other threads:[~2025-03-24 8:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-21 15:14 [PATCH 0/3] m68k: amiga: CS-Lab Warp ata support (and a small zorro id refactor) Paolo Pisati
2025-03-21 15:14 ` [PATCH 1/3] include/uapi/linux/zorro_ids.h: add more cslab warp id Paolo Pisati
2025-03-24 8:03 ` Geert Uytterhoeven
2025-03-21 15:14 ` [PATCH 2/3] amiga: cslab ata support Paolo Pisati
2025-03-22 13:41 ` Damien Le Moal
2025-03-24 8:11 ` Paolo Pisati [this message]
2025-03-24 8:17 ` Geert Uytterhoeven
2025-03-24 9:10 ` Paolo Pisati
2025-03-24 9:38 ` Geert Uytterhoeven
2025-03-21 15:14 ` [PATCH 3/3] m68k: amiga_defconfig: enable PATA_CSWARP Paolo Pisati
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=Z+ETsTZviQP9y9Ff@amaterasu.local \
--to=p.pisati@gmail.com \
--cc=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=geert@linux-m68k.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.