login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
13
Re: [git patches] IDE updates (part 2)
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Bartlomiej Zolnierkiewicz <bzolnier@...>
To: Alan Cox <alan@...>
Cc: Linus Torvalds <torvalds@...>, <linux-ide@...>, <linux-kernel@...>
Subject:
Re: [git patches] IDE updates (part 2)
Date: Saturday, October 13, 2007 - 6:09 pm
On Saturday 13 October 2007, Alan Cox wrote:
quoted text
> > Comment in pmac_ide_init_hwif_ports() is highly misleading as this function > > returns early only for "normal" IDE PCI devices (pmac_ide_init_hwif_ports() > > can be called outside ide-pmac driver through ppc_ide_md). > > Follow the code you pasted > > > pmif->regbase = (unsigned long) base + 0x2000; > > ... > > rc = pmac_ide_setup_device(pmif, hwif); > > Ok so regbase is set > > > ... > > } > > > > static int > > pmac_ide_setup_device(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif) > > { > > ... > > pmac_ide_init_hwif_ports(&hwif->hw, pmif->regbase, 0, &hwif->irq); > > Now we pass a honking great zero for the ctrl_port > > ... > > } > > > > void > > pmac_ide_init_hwif_ports(hw_regs_t *hw, > > unsigned long data_port, unsigned long ctrl_port, > > int *irq) > > { > > ... > > for (ix = 0; ix < MAX_HWIFS; ++ix)
this loop is a tricky part, regbase is set so we break out early
quoted text
> > if (data_port == pmac_ide[ix].regbase) > > break; > > ---> since pmif->regbase was set earlier ix will be < MAX_HWIFS
^^^^^^^^^^^^^^^^^^^^^^
quoted text
> > if (ix >= MAX_HWIFS) {
^^^^^^^^^^^^^^^
quoted text
> > /* Probably a PCI interface... */ > > for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; ++i) > > hw->io_ports[i] = data_port + i - IDE_DATA_OFFSET; > > hw->io_ports[IDE_CONTROL_OFFSET] = ctrl_port; > > Which is zero.. > > > See the problem ?
-
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[git patches] IDE updates (part 2)
, Bartlomiej Zolnierkiewicz...
, (Sat Oct 13, 12:25 pm)
Re: [git patches] IDE updates (part 2)
, Al Viro
, (Sat Oct 13, 8:12 pm)
Re: [git patches] IDE updates (part 2)
, Jeff Garzik
, (Thu Oct 25, 2:05 am)
Re: [git patches] IDE updates (part 2)
, Russell King
, (Tue Oct 16, 11:55 am)
Re: [git patches] IDE updates (part 2)
, Jeff Garzik
, (Mon Oct 15, 3:54 pm)
Re: [git patches] IDE updates (part 2)
, Russell King
, (Mon Oct 15, 3:58 pm)
Re: [git patches] IDE updates (part 2)
, Jeff Garzik
, (Mon Oct 15, 4:07 pm)
Re: [git patches] IDE updates (part 2)
, Russell King
, (Wed Oct 24, 8:38 am)
Re: [git patches] IDE updates (part 2)
, Jeff Garzik
, (Wed Oct 24, 8:53 am)
Re: [git patches] IDE updates (part 2)
, Russell King
, (Wed Oct 24, 9:12 am)
Re: [git patches] IDE updates (part 2)
, Jeff Garzik
, (Wed Oct 24, 9:20 am)
Re: [git patches] IDE updates (part 2)
, Bartlomiej Zolnierkiewicz...
, (Sun Oct 14, 12:21 pm)
Re: [git patches] IDE updates (part 2)
, Alan Cox
, (Sat Oct 13, 3:56 pm)
Re: [git patches] IDE updates (part 2)
, Bartlomiej Zolnierkiewicz...
, (Sat Oct 13, 4:59 pm)
Re: [git patches] IDE updates (part 2)
, Alan Cox
, (Sat Oct 13, 5:44 pm)
Re: [git patches] IDE updates (part 2)
, Bartlomiej Zolnierkiewicz...
, (Sat Oct 13, 6:09 pm)
Re: [git patches] IDE updates (part 2)
, Alan Cox
, (Sat Oct 13, 6:29 pm)
Re: [git patches] IDE updates (part 2)
, Bartlomiej Zolnierkiewicz...
, (Sat Oct 13, 6:41 pm)
Re: [git patches] IDE updates (part 2)
, Benjamin Herrenschmidt
, (Sat Oct 13, 8:08 pm)
Re: [git patches] IDE updates (part 2)
, Bartlomiej Zolnierkiewicz...
, (Sun Oct 14, 12:07 pm)
Re: [git patches] IDE updates (part 2)
, Benjamin Herrenschmidt
, (Sun Oct 14, 5:15 pm)
Re: [git patches] IDE updates (part 2)
, Bartlomiej Zolnierkiewicz...
, (Tue Oct 16, 3:41 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Davide Libenzi
[patch 7/8] fdmap v2 - implement sys_socket2
Greg Kroah-Hartman
[PATCH 018/196] coda: convert struct class_device to struct device
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
David Newall
Re: Slow DOWN, please!!!
git
:
linux-netdev
:
Christoph Lameter
Network latency regressions from 2.6.22 to 2.6.29
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Arjan van de Ven
Re: [GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
702 guests
online.
Syndicate