]> git.baikalelectronics.ru Git - arm-tf.git/commit
drivers: stm32_fmc2_nand: fix boundary check for chip select
authorLionel Debieve <lionel.debieve@st.com>
Tue, 21 Jul 2020 13:22:55 +0000 (15:22 +0200)
committerLionel Debieve <lionel.debieve@st.com>
Mon, 12 Oct 2020 12:46:31 +0000 (14:46 +0200)
commit495885bce6584f63916d7778ca000e848c939a9d
tree4f8ccd44482bb9dba65bf6f9d1c2110459f8efdf
parent0c3e8acbd6fd18c358967d79ecdb91b5bfcdc4a6
drivers: stm32_fmc2_nand: fix boundary check for chip select

Chip select is retrieved from device tree and check
must be done regarding the MAX_CS defined.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Reviewed-by: Christophe KERELLO <christophe.kerello@st.com>
Change-Id: I03144b133bd51a845a4794f0f6bbd9402fc04936
drivers/st/fmc/stm32_fmc2_nand.c