From: Paolo Pisati <p.pisati@gmail.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Paolo Pisati <p.pisati@gmail.com>,
Damien Le Moal <dlemoal@kernel.org>,
Niklas Cassel <cassel@kernel.org>,
linux-ide@vger.kernel.org, linux-m68k@lists.linux-m68k.org
Subject: Re: [PATCH v3 1/2] ata: pata_cswarp: Add Amiga cslab ata support
Date: Tue, 25 Mar 2025 16:55:32 +0100 [thread overview]
Message-ID: <Z+LR9Glz5iV4Sjll@amaterasu.local> (raw)
In-Reply-To: <CAMuHMdW8WUyUsjG4FaT4nP82pZYVFsUpYNOg2vsPPOthf-O49A@mail.gmail.com>
On Mon, Mar 24, 2025 at 02:21:57PM +0100, Geert Uytterhoeven wrote:
> >
> > + }
> > + words++;
> > + }
> > +
> > + return words << 1;
>
> This can be one more than buflen, when the latter is odd.
> Why not just return buflen instead?
I think "every" m68k pata driver is buggy in this regard, e.g. pata_buddha,
pata_gayle, pata_falcon, etc
And words++ can go too.
> > +
> > + ata_port_desc(ap, " cmd 0x%lx ctl 0x%lx", (unsigned long)base,
> > + (unsigned long)ap->ioaddr.ctl_addr);
>
> These two printed addresses are virtual addresses.
> However, due to the use of a cast instead of ioremap(), they are identical.
> Still, I think it is better to print board + WARP_OFFSET_ATA and
> board + WARP_OFFSET_ATA + 0x1000 | (6UL << 2) instead.
Honestly i don't follow you here, but i'll ioremap() and send a v4.
--
bye,
p.
next prev parent reply other threads:[~2025-03-25 15:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-24 12:16 [PATCH v3 0/2] m68k: pata_cswarp: Add Amiga cslab ata support Paolo Pisati
2025-03-24 12:16 ` [PATCH v3 1/2] ata: " Paolo Pisati
2025-03-24 13:21 ` Geert Uytterhoeven
2025-03-25 15:55 ` Paolo Pisati [this message]
2025-03-25 15:56 ` Geert Uytterhoeven
2025-03-24 12:16 ` [PATCH v3 2/2] 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+LR9Glz5iV4Sjll@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox