From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936334AbcJUVfl (ORCPT ); Fri, 21 Oct 2016 17:35:41 -0400 Received: from skprod2.natinst.com ([130.164.80.23]:59416 "EHLO ni.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933445AbcJUVfZ (ORCPT ); Fri, 21 Oct 2016 17:35:25 -0400 From: Zach Brown To: CC: , , , , , , Subject: [RFC v2 0/2] Ignore capability registers when it comes to speeds and use DT binding instead. Date: Fri, 21 Oct 2016 16:35:13 -0500 Message-ID: <1477085715-30213-1-git-send-email-zach.brown@ni.com> 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 10/21/2016 04:35:15 PM, Serialize by Router on US-AUS-MGWOut2/AUS/H/NIC(Release 8.5.3FP6 HF1218|December 12, 2014) at 10/21/2016 04:35:15 PM, Serialize complete at 10/21/2016 04:35:15 PM MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-21_12:,, 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-1610210382 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first patch add documentation about a new devicetree property sdhci-cap-speed-modes-broken. The second patch makes the sdhci use the DT binding instead of the caps register for determining which speed modes are supported by the controller. This RFC is an alternative to another patch[1] set I sent up. [1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1251944.html v2: * Removed separate OF parsing function, relying on mmc_of_parse to be called before read_caps * Moved check of sdhci-cap-speed-modes-broken into sdhci_read_caps. * Added SDHCI_SUPPORT_HS400 to list of bits to clear in sdhci cap1, not sure that's all of the them now, but I think so. Zach Brown (2): mmc: sdhci: Add device tree property sdhci-cap-speed-modes-broken mmc: sdhci: Ignore capability register when it comes to speeds and use DT binding instead when sdhci-cap-speed-modes-broken is set. Documentation/devicetree/bindings/mmc/mmc.txt | 3 +++ drivers/mmc/host/sdhci.c | 10 ++++++++++ 2 files changed, 13 insertions(+) -- 2.7.4