Commit 8a10180d authored by Luka Perkov's avatar Luka Perkov Committed by Tom Rini
Browse files

ide: Correct IDE_BUS(dev) macro

The IDE_BUS(dev) macro was previously doing dev >> 1.  This however is a
mis-match of the usage in common/cmd_ide.c and would cause boards with
multiple ports / devices to not correctly detect all devices.  For more
details please see:

[Tom Rini: Reword commit message only]
Tested-by: default avatarLuka Perkov <>
Signed-off-by: default avatarSimon Baatz <>
Signed-off-by: default avatarTom Rini <>
parent 633efe9c
......@@ -24,7 +24,7 @@
#ifndef _IDE_H
#define _IDE_H
#define IDE_BUS(dev) (dev >> 1)
#define ATA_CURR_BASE(dev) (CONFIG_SYS_ATA_BASE_ADDR+ide_bus_offset[IDE_BUS(dev)])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment