Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753243AbdLNOFI (ORCPT ); Thu, 14 Dec 2017 09:05:08 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:37315 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753185AbdLNOFD (ORCPT ); Thu, 14 Dec 2017 09:05:03 -0500 X-Google-Smtp-Source: ACJfBov+NacTjMiAwSMiyRrVxYgl2NEJ5Nh0OEtQZ+Y+Xsz5XbFtGoGGXR8ciO5rEMKedqakYzURLH/Uaq0WcfG+h7Q= MIME-Version: 1.0 In-Reply-To: <20171214130941.26666-9-kishon@ti.com> References: <20171214130941.26666-1-kishon@ti.com> <20171214130941.26666-9-kishon@ti.com> From: Philippe Ombredanne Date: Thu, 14 Dec 2017 15:04:22 +0100 Message-ID: Subject: Re: [PATCH 08/12] mmc: sdhci-omap: Add support to override f_max and iodelay from pdata To: Kishon Vijay Abraham I Cc: Ulf Hansson , Rob Herring , Tony Lindgren , Adrian Hunter , Mark Rutland , Russell King , linux-mmc@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , linux-omap@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , nsekhar@ti.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1934 Lines: 56 Kishon, On Thu, Dec 14, 2017 at 2:09 PM, Kishon Vijay Abraham I wrote: > DRA74x EVM Rev H EVM comes with revision 2.0 silicon. However, earlier > versions of EVM can come with either revision 1.1 or revision 1.0 of > silicon. > > The device-tree file is written to support rev 2.0 of silicon. > pdata-quirks are used to then override the settings needed for > PG 1.1 silicon. > > PG 1.1 silicon has limitations w.r.t frequencies at which MMC1/2/3 > can operate as well as different IOdelay numbers. > > Add support in sdhci-omap driver to get platform data if available > (added using pdata quirks) and override the data (max-frequency and > iodelay data) obtained from device tree. > > Signed-off-by: Kishon Vijay Abraham I > --- /dev/null > +++ b/include/linux/platform_data/sdhci-omap.h > @@ -0,0 +1,35 @@ > +/** > + * SDHCI Controller Platform Data for TI's OMAP SoCs > + * > + * Copyright (C) 2017 Texas Instruments > + * Author: Kishon Vijay Abraham I > + * > + * This program is free software: you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 of > + * the License as published by the Free Software Foundation. > + * > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program. If not, see . > + */ Could you use the new SPDX tags instead of this fine and long boilerplate? See Thomas doc for details [1] [1] https://lkml.org/lkml/2017/12/4/934 Thanks! PS: if you could spread the word out in your team too, this would be much welcomed! -- Cordially Philippe Ombredanne