mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 08:44:14 +08:00
ssb: drop BROKEN from SSB_SFLASH
With recent patches ssb can fetch info about serial flash and register it as a platform device. No more reasons to mark it BROKEN. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Cc: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
d28e5e5d96
commit
092c46498e
@ -138,7 +138,7 @@ config SSB_DRIVER_MIPS
|
|||||||
|
|
||||||
config SSB_SFLASH
|
config SSB_SFLASH
|
||||||
bool "SSB serial flash support"
|
bool "SSB serial flash support"
|
||||||
depends on SSB_DRIVER_MIPS && BROKEN
|
depends on SSB_DRIVER_MIPS
|
||||||
default y
|
default y
|
||||||
|
|
||||||
# Assumption: We are on embedded, if we compile the MIPS core.
|
# Assumption: We are on embedded, if we compile the MIPS core.
|
||||||
|
@ -151,8 +151,8 @@ int ssb_sflash_init(struct ssb_chipcommon *cc)
|
|||||||
sflash->size = sflash->blocksize * sflash->numblocks;
|
sflash->size = sflash->blocksize * sflash->numblocks;
|
||||||
sflash->present = true;
|
sflash->present = true;
|
||||||
|
|
||||||
pr_info("Found %s serial flash (blocksize: 0x%X, blocks: %d)\n",
|
pr_info("Found %s serial flash (size: %dKiB, blocksize: 0x%X, blocks: %d)\n",
|
||||||
e->name, e->blocksize, e->numblocks);
|
e->name, sflash->size / 1024, e->blocksize, e->numblocks);
|
||||||
|
|
||||||
/* Prepare platform device, but don't register it yet. It's too early,
|
/* Prepare platform device, but don't register it yet. It's too early,
|
||||||
* malloc (required by device_private_init) is not available yet. */
|
* malloc (required by device_private_init) is not available yet. */
|
||||||
@ -160,7 +160,5 @@ int ssb_sflash_init(struct ssb_chipcommon *cc)
|
|||||||
sflash->size;
|
sflash->size;
|
||||||
ssb_sflash_dev.dev.platform_data = sflash;
|
ssb_sflash_dev.dev.platform_data = sflash;
|
||||||
|
|
||||||
pr_err("Serial flash support is not implemented yet!\n");
|
return 0;
|
||||||
|
|
||||||
return -ENOTSUPP;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user