>From 8851572a406e938f50466a98405b10529048e766 Mon Sep 17 00:00:00 2001 From: Marcin Labun <marcin.labun@xxxxxxxxx> Date: Mon, 7 Mar 2011 16:17:54 +0100 Subject: [PATCH 14/14] platform_intel: support for OROM OEM capabilities Scan memory to match $VER and $OEM. Signed-off-by: Marcin Labun <marcin.labun@xxxxxxxxx> --- platform-intel.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/platform-intel.c b/platform-intel.c index 2742305..b83a0b2 100644 --- a/platform-intel.c +++ b/platform-intel.c @@ -205,7 +205,8 @@ static int scan(const void *start, const void *end, const void *data) for (offset = 0; offset < len; offset += 4) { imsm_mem = start + offset; - if (memcmp(imsm_mem->signature, "$VER", 4) == 0) { + if ((memcmp(imsm_mem->signature, "$VER", 4) == 0) || + (memcmp(imsm_mem->signature, "$OEM", 4) == 0)) { imsm_orom[dev] = *imsm_mem; populated_orom[dev] = 1; return populated_orom[SYS_DEV_SATA] && populated_orom[SYS_DEV_SAS]; -- 1.6.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html