From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: linux-ide@vger.kernel.org, Mikael Starvik <starvik@axis.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Roman Zippel <zippel@linux-m68k.org>
Subject: Re: [PATCH 20/21] ide: fix host drivers depending on ide_generic to probe for interfaces
Date: Wed, 12 Dec 2007 22:57:05 +0100 [thread overview]
Message-ID: <200712122257.05258.bzolnier@gmail.com> (raw)
In-Reply-To: <475FE32F.2000601@ru.mvista.com>
On Wednesday 12 December 2007, Sergei Shtylyov wrote:
> Hello.
>
> Bartlomiej Zolnierkiewicz wrote:
>
> > * Add mpc8xx_ide_probe() to mpc8xx.c and call it from probe_for_hwifs().
>
> > * Convert ide_arm, ide-cris, ide-h8300, ide-pnp, buddha, falconide, gayle,
> > macide, q40ide, cmd640 and mpc8xx host drivers to use ide_device_add().
>
> > This removes dependency on ide_generic for these drivers so update
> > ide/Kconfig accordingly.
>
> > Cc: Mikael Starvik <starvik@axis.com>
> > Cc: Geert Uytterhoeven <geert@linux-m68k.org>
> > Cc: Roman Zippel <zippel@linux-m68k.org>
> > Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
>
> > Index: b/drivers/ide/arm/ide_arm.c
> > ===================================================================
> > --- a/drivers/ide/arm/ide_arm.c
> > +++ b/drivers/ide/arm/ide_arm.c
> > @@ -28,6 +28,7 @@ void __init ide_arm_init(void)
> > {
> > ide_hwif_t *hwif;
> > hw_regs_t hw;
> > + u8 idx[4] = { 0xff, 0xff, 0xff, 0xff };
> >
> > memset(&hw, 0, sizeof(hw));
> > ide_std_init_ports(&hw, IDE_ARM_IO, IDE_ARM_IO + 0x206);
> > @@ -36,5 +37,8 @@ void __init ide_arm_init(void)
> > hwif = ide_find_port(hw.io_ports[IDE_DATA_OFFSET]);
> > if (hwif) {
> > ide_init_port_hw(hwif, &hw);
> > + idx[0] = hwif->index;
> > +
> > + ide_device_idx(idx);
>
> You surely meant ide_device_add() here. Worth test compiling the files
> you're changing... ;-)
Huh? I thought this is what we have -mm for? ;-)
http://lkml.org/lkml/2007/11/28/296
Bart
prev parent reply other threads:[~2007-12-12 22:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-18 22:41 [PATCH 20/21] ide: fix host drivers depending on ide_generic to probe for interfaces Bartlomiej Zolnierkiewicz
2007-12-12 13:33 ` Sergei Shtylyov
2007-12-12 21:57 ` Bartlomiej Zolnierkiewicz [this message]
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=200712122257.05258.bzolnier@gmail.com \
--to=bzolnier@gmail.com \
--cc=geert@linux-m68k.org \
--cc=linux-ide@vger.kernel.org \
--cc=sshtylyov@ru.mvista.com \
--cc=starvik@axis.com \
--cc=zippel@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;
as well as URLs for NNTP newsgroup(s).