diff options
author | gber <gber@FreeBSD.org> | 2013-05-27 06:24:31 +0000 |
---|---|---|
committer | gber <gber@FreeBSD.org> | 2013-05-27 06:24:31 +0000 |
commit | 2ed2ec066062b8067971d284fd1a77af06937b49 (patch) | |
tree | fb3893db3d1ab2b9f6f3ecb67f6fb21ef612001a /sys | |
parent | e9921ddb7e5a366a8201bc3a8b8d747df66e39cd (diff) | |
download | FreeBSD-src-2ed2ec066062b8067971d284fd1a77af06937b49.zip FreeBSD-src-2ed2ec066062b8067971d284fd1a77af06937b49.tar.gz |
Fix ONFI chip detection.
Submitted by: Alexander Fedorov <alexander.fedorov@rtlservice.com>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/nand/nand.h | 2 | ||||
-rw-r--r-- | sys/dev/nand/nandbus.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/nand/nand.h b/sys/dev/nand/nand.h index 05101ac..0d6d7b4 100644 --- a/sys/dev/nand/nand.h +++ b/sys/dev/nand/nand.h @@ -219,7 +219,7 @@ struct onfi_params { uint16_t vendor_rev; uint8_t vendor_spec[8]; uint16_t crc; -}; +}__attribute__((packed)); struct nand_ecc_data { int eccsize; /* Number of data bytes per ECC step */ diff --git a/sys/dev/nand/nandbus.c b/sys/dev/nand/nandbus.c index 322d708..a79cd4d 100644 --- a/sys/dev/nand/nandbus.c +++ b/sys/dev/nand/nandbus.c @@ -331,7 +331,7 @@ static int nand_probe_onfi(device_t bus, uint8_t *onfi_compliant) { device_t nfc; - char onfi_id[] = {'o', 'n', 'f', 'i', '\0'}; + char onfi_id[] = {'O', 'N', 'F', 'I', '\0'}; int i; nand_debug(NDBG_BUS,"probing ONFI"); |