Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1513917

[PATCH v2 0/2] mmc: sdhci: Fix sdhci caps register bits with corrections provided by dt

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Zach Brown <zach.brown@ni.com>
Newsgroups linux.kernel
Subject [PATCH v2 0/2] mmc: sdhci: Fix sdhci caps register bits with corrections provided by dt
Date Wed, 02 Nov 2016 16:30:01 +0100
Message-ID <sz5Ed-80I-1@gated-at.bofh.it> (permalink)
X-Original-To <ulf.hansson@linaro.org>
X-Mailer git-send-email 2.7.4
X-Mimetrack Itemize by SMTP Server on US-AUS-MGWOut2/AUS/H/NIC(Release 8.5.3FP6 HF1218|December 12, 2014) at 11/02/2016 10:26:06 AM, Serialize by Router on US-AUS-MGWOut2/AUS/H/NIC(Release 8.5.3FP6 HF1218|December 12, 2014) at 11/02/2016 10:26:06 AM, Serialize complete at 11/02/2016 10:26:06 AM
MIME-Version 1.0
Content-Type text/plain
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10432:,, definitions=2016-11-02_03:,, signatures=0
X-Proofpoint-Spam-Details rule=notspam policy=default score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611020288
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 30
Organization linux.* mail to news gateway
X-Original-Cc <adrian.hunter@intel.com>, <robh+dt@kernel.org>, <mark.rutland@arm.com>, <linux-mmc@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <zach.brown@ni.com>
X-Original-Date Wed, 2 Nov 2016 10:26:14 -0500
X-Original-Message-ID <1478100376-602-1-git-send-email-zach.brown@ni.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1513917

Show key headers only | View raw


For various reasons the sdhci caps register can be incorrect. This patch set
introduces a general way to correct the bits when they are read to accurately
reflect the capabilties of the controller/board combo.

The first patch creates sdhci-caps and sdhci-caps-mask dt properties that
combined represent the correction to the sdhci caps register.

The second patch uses the new dt properties to correct the caps from the
register as they read during __sdhci_read_caps.

Changes from RFC:
 * /s/registers/register
 * Moved sdhci dt properties into new documentation file sdhci.txt
v2:
 * Fixed style issue, all branches of 'if' should have {}


Zach Brown (2):
  mmc: sdhci: dt: Add device tree properties sdhci-caps and
    sdhci-caps-mask
  mmc: sdhci: Use sdhci-caps-mask and sdhci-caps to change the caps read
        during __sdhci_read_caps

 Documentation/devicetree/bindings/mmc/sdhci.txt | 14 ++++++++++++++
 drivers/mmc/host/sdhci.c                        | 24 ++++++++++++++++++++++--
 2 files changed, 36 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mmc/sdhci.txt

-- 
2.7.4

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] mmc: sdhci: Fix sdhci caps register bits with corrections provided by dt Zach Brown <zach.brown@ni.com> - 2016-11-02 16:30 +0100
  [PATCH v2 2/2] mmc: sdhci: Use sdhci-caps-mask and sdhci-caps to change the caps read during __sdhci_read_caps Zach Brown <zach.brown@ni.com> - 2016-11-02 16:30 +0100
  Re: [PATCH v2 0/2] mmc: sdhci: Fix sdhci caps register bits with  corrections provided by dt Ulf Hansson <ulf.hansson@linaro.org> - 2016-11-07 13:50 +0100

csiph-web