Received: by 10.213.65.68 with SMTP id h4csp1563149imn; Thu, 15 Mar 2018 03:23:45 -0700 (PDT) X-Google-Smtp-Source: AG47ELvGJfliQbbmXpjoeBPR5i+ui6X7QEkaCLJ2Ffpx9g4XKFz3tA/lgQAscynVyW0lk7kBZ7u1 X-Received: by 10.98.217.66 with SMTP id s63mr4512000pfg.209.1521109425329; Thu, 15 Mar 2018 03:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521109425; cv=none; d=google.com; s=arc-20160816; b=jsGMU2R4IzLp61aW9/pCnAuLlO7oHKqUcEO8iVHKaC2vdEzZ6APbBWeLagMwieuPl0 hX6p28uq0O1PEBDpYvqgPheqV0/2Zr8YulpPpK42qMEMBOV2CHy4jhXAU2gnIeucENsY U/Jw1enZqto3q80LYfTPMawygOmojXJb6VuTuFEp/5ZrlWd7Xudt7JElemF17v2ICg3H 3oeq6NsHoQLdaygzv21+fS0OFSY64n2B7dCf69U8hSRj3fFxoprDUeVIipgK7nZMmtab m4r7yWsW79v+s+GZDIN8CxX2aVrHk3SG2orsT4g83czqI66AWjqCV9Zs7RlCe3f/bgL1 xCSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=+wL50IetKp1s7+5mS8GlhWg49+SJ9jALDKaTUa7VneE=; b=i3s9O0+oO0WYRnfPvOiJc5QBiyPt8QO/RmzywJZQsTlcbcVU8ywwQI1uVBAyYgvnn9 v/YjC5DNIBUK3c+/dZzKqQCEtC8QEp2GqUrYvv3+E5JeRfxyRQcz91Opl997ftGn6S/T pnW0sPy/SZ05GUJ9TsK86+o+/S+phWB/3YfuOACvd2eovoUK9QN+bTq2tiuT3LfEf80Y B87Y6akAfk1Tz0p38ywjRvO/KekPKTnzUWrmaYMPJgBMQElOn6hUFtnlqGS9uCEcFt11 daRsTzT8sZRqO1IxCY+S2T/mgpqTdl6PdyuQzaGP9uwbwHCJ16lrcUVnIEHnoqzTqy5j sRng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DS8miBzh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 37-v6si3717328plq.451.2018.03.15.03.23.30; Thu, 15 Mar 2018 03:23:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DS8miBzh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751527AbeCOKWj (ORCPT + 99 others); Thu, 15 Mar 2018 06:22:39 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:46663 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289AbeCOKWh (ORCPT ); Thu, 15 Mar 2018 06:22:37 -0400 Received: by mail-io0-f195.google.com with SMTP id p78so7926844iod.13 for ; Thu, 15 Mar 2018 03:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+wL50IetKp1s7+5mS8GlhWg49+SJ9jALDKaTUa7VneE=; b=DS8miBzhx7XQEoNk6payQcNNNzS++QTiN+5cxAN29FQNorZr7/6lW32ibf+f7G3nEq 2REM0+Hfq2kiaTh9p//7jKaittDpXOZWo6WoDpjqISqPD8R0z+gzfxiygXa/CaBZW2Kv 777zqRnZZdv1ajiNFmdJrqtG/aw9FyvLcf0/g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+wL50IetKp1s7+5mS8GlhWg49+SJ9jALDKaTUa7VneE=; b=J6E+XoLx2dWuhdeA8LPVkq/36gF5WYEE0AWfRop5P3VlYlLxBn3oHRjCKm/SWp/1Nz SLC9eXG4djZOykyFXZ8cbZ+nx1cw1KgTwvfvp9gvxsvN3FRBJdb9fIhS4BpPdmlVp3ew SUET6JOlOAOP+JHLuZustgHRwjh/F0QQ+oFQnARcYXIWRG9GL/tNjL1/dvGyw8d5+t48 KsdVKUyFHZEkyC30/5GXWymgiWJTphaYb4F9jSzSXtug9DLzKJtCZAzqGrs+ZEoS7xid 8Pn8WWygZLbKBE/vZ6l372l/I3XKjR/txwrrt7ZIt6uv69xr8Pwpk9ljHCkXPJHo4n9f r2Jg== X-Gm-Message-State: AElRT7Gwg+MQ6vK05y9j0pbmiZY6koBDP6pIIJvIzdbmVUU1UMyLphs8 PHAM0onY/nICPWBQ7ab4bbb25X25f5fu3U1I6pyuqQ== X-Received: by 10.107.153.79 with SMTP id b76mr8172273ioe.192.1521109357039; Thu, 15 Mar 2018 03:22:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.101.23 with HTTP; Thu, 15 Mar 2018 03:22:36 -0700 (PDT) In-Reply-To: <20180223064138.18401-1-jh80.chung@samsung.com> References: <20180223064138.18401-1-jh80.chung@samsung.com> From: Ulf Hansson Date: Thu, 15 Mar 2018 11:22:36 +0100 Message-ID: Subject: Re: [PATCH 1/6] mmc: dw_mmc: remove the deprecated "clock-freq-min-max" property To: Jaehoon Chung Cc: "linux-mmc@vger.kernel.org" , devicetree@vger.kernel.org, Linux Kernel Mailing List , Rob Herring , Mark Rutland , Joachim Eastwood , dinguyen@kernel.org, Will Deacon , Wei Xu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23 February 2018 at 07:41, Jaehoon Chung wrote: > 'clock-freq-min-max' property had already deprecated. > Remove the 'clock-freq-min-max' property that is kept to maintain > the compatibility. > > Signed-off-by: Jaehoon Chung Thanks, applied for next! Kind regards Uffe > --- > .../devicetree/bindings/mmc/synopsys-dw-mshc.txt | 4 ---- > drivers/mmc/host/dw_mmc.c | 15 ++++----------- > 2 files changed, 4 insertions(+), 15 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt > index ef3e5f14067a..75c9fdca4aaf 100644 > --- a/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt > +++ b/Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.txt > @@ -59,10 +59,6 @@ Optional properties: > is specified and the ciu clock is specified then we'll try to set the ciu > clock to this at probe time. > > -* clock-freq-min-max (DEPRECATED): Minimum and Maximum clock frequency for card output > - clock(cclk_out). If it's not specified, max is 200MHZ and min is 400KHz by default. > - (Use the "max-frequency" instead of "clock-freq-min-max".) > - > * num-slots (DEPRECATED): specifies the number of slots supported by the controller. > The number of physical slots actually used could be equal or less than the > value specified by num-slots. If this property is not specified, the value > diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c > index 0aa39975f33b..38e0e7c4ffd9 100644 > --- a/drivers/mmc/host/dw_mmc.c > +++ b/drivers/mmc/host/dw_mmc.c > @@ -2784,7 +2784,6 @@ static int dw_mci_init_slot(struct dw_mci *host) > struct dw_mci_slot *slot; > const struct dw_mci_drv_data *drv_data = host->drv_data; > int ctrl_id, ret; > - u32 freq[2]; > > mmc = mmc_alloc_host(sizeof(struct dw_mci_slot), host->dev); > if (!mmc) > @@ -2798,16 +2797,6 @@ static int dw_mci_init_slot(struct dw_mci *host) > host->slot = slot; > > mmc->ops = &dw_mci_ops; > - if (device_property_read_u32_array(host->dev, "clock-freq-min-max", > - freq, 2)) { > - mmc->f_min = DW_MCI_FREQ_MIN; > - mmc->f_max = DW_MCI_FREQ_MAX; > - } else { > - dev_info(host->dev, > - "'clock-freq-min-max' property was deprecated.\n"); > - mmc->f_min = freq[0]; > - mmc->f_max = freq[1]; > - } > > /*if there are external regulators, get them*/ > ret = mmc_regulator_get_supply(mmc); > @@ -2846,6 +2835,10 @@ static int dw_mci_init_slot(struct dw_mci *host) > if (ret) > goto err_host_allocated; > > + mmc->f_min = DW_MCI_FREQ_MIN; > + if (!mmc->f_max) > + mmc->f_max = DW_MCI_FREQ_MAX; > + > /* Process SDIO IRQs through the sdio_irq_work. */ > if (mmc->caps & MMC_CAP_SDIO_IRQ) > mmc->caps2 |= MMC_CAP2_SDIO_IRQ_NOTHREAD; > -- > 2.15.1 >