From: Tuomas Tynkkynen Date: Tue, 24 Jul 2018 14:22:59 +0300 Subject: [U-Boot] [PATCH v2 6/6] mmc: arm_pl180_mmci: Add "cd_inverted" DT property read In-Reply-To: <1532425165-29027-7-git-send-email-patrice.chotard@st.com> References: <1532425165-29027-1-git-send-email-patrice.chotard@st.com> <1532425165-29027-7-git-send-email-patrice.chotard@st.com> Message-ID: <562a6f28-ee32-e30b-b1dc-df8d9140c973@iki.fi> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Patrice, On 07/24/2018 12:39 PM, Patrice Chotard wrote: > Add missing read of "cd_inverted" property in DT. > If your platform uses GPIOs for card detection, it's simpler and more readable to use GPIO_ACTIVE_(LOW|HIGH) in the gpio flags instead of using the cd-inverted property. See Linux commit 45e01f401a2a16a8d7 where this was done for sunxi). Then this commit isn't needed. - Tuomas