summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/mec1322/flash.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/chip/mec1322/flash.c b/chip/mec1322/flash.c
index 92a7dacb33..343258e811 100644
--- a/chip/mec1322/flash.c
+++ b/chip/mec1322/flash.c
@@ -21,7 +21,7 @@
*
* @param offset Flash offset to write.
* @param size Number of bytes to write.
- * @param data Destination buffer for data. Must be 32-bit aligned.
+ * @param data Destination buffer for data.
*/
int flash_physical_read(int offset, int size, char *data)
{
@@ -29,10 +29,6 @@ int flash_physical_read(int offset, int size, char *data)
offset += CONFIG_FLASH_BASE_SPI;
- /* Fail if offset, size, and data aren't at least word-aligned */
- if ((offset | size | (uint32_t)(uintptr_t)data) & 3)
- return EC_ERROR_INVAL;
-
spi_enable(1);
ret = spi_flash_read((uint8_t *)data, offset, size);
spi_enable(0);