Message ID | 20190322154425.3852517-6-arnd@arndb.de |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp960341jan; Fri, 22 Mar 2019 08:46:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzInPKugejn2LcVjHS2dLj8M9Pc/eRCPgFAaRe1BMkB5cSCNJ5fIT1gMz1TGROmnYJA4R60 X-Received: by 2002:a63:6e4c:: with SMTP id j73mr9826364pgc.276.1553269565663; Fri, 22 Mar 2019 08:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553269565; cv=none; d=google.com; s=arc-20160816; b=rWiMxZPCyS0OA7zoaPLNfJGrf3asHAd0DNNPUZ3RYXC/6sl+Q62Gm+8EcNj9ZzHcUC ZUxPPUPJw4MKq4s+B8E5IDqNrA5qERcWmg/JTVS4mg7aKiEWmhpoUI11VHkOnbA5x3qf Ng7v8p74FXVHAYGy39hsEvBcxj5xnCy3cmbVWGXs86b2Nx1BzW+qk83ZrXD+2cNJDwJ4 gzW+FMK7GgYFX4+KZXrp6R/FLnQ8RKAl8sDzE6vq9DOcGyJYQRDg7jcrs4zwpfGPMcaF Bd1HQFsJi7PZapTNtwsYd+rLVBaPqk+sf64us16By3XQHHRbmMbPIr7hyiewvT57Zm+/ 0dRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7/ctW/yItTKgpMFEfod3AoJPalWYZip850rcRbHhKxg=; b=HrJLH6ZPJZxZ/9GGKr0KJEWjGi3DUNC6QYOyEoK9Ovr9X2a8Fj7ikqhJ4eqiYEVxly t88iR+jddSc4Jty0qRPC0ltb2xPP+/vgEH0cA6PayGWZvWgR/Dl19+x4b9BB+JLC2TIJ RxndkkdU0NLDwAgzig5FwQbIoKVenNl9rBBy4GMaCIIA9Xlp9D2D/sICsrAHaoSd8ZaD 926kK4vfJzSt5ux3uT7pxEIORYb5zrmWbVF1zZUJ2BfodwtEUxcFfZxPXV3EscKey0jD lRBTvXGDpz/LjZ54AATTBmyMB1eDQJxhZWMugTB1qNBCByjaDvA9vG3vilVh2AaKUB9r LKBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Return-Path: <linux-mmc-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si6871294pgf.247.2019.03.22.08.46.05; Fri, 22 Mar 2019 08:46:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727550AbfCVPqE (ORCPT <rfc822;georgi.djakov@linaro.org> + 5 others); Fri, 22 Mar 2019 11:46:04 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:55939 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727244AbfCVPqE (ORCPT <rfc822; linux-mmc@vger.kernel.org>); Fri, 22 Mar 2019 11:46:04 -0400 Received: from wuerfel.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1M89TB-1h3FUl0ZQx-005ERN; Fri, 22 Mar 2019 16:45:56 +0100 From: Arnd Bergmann <arnd@arndb.de> To: stable@vger.kernel.org, Ulf Hansson <ulf.hansson@linaro.org> Cc: Chuanxiao Dong <chuanxiao.dong@intel.com>, Yuan Juntao <juntaox.yuan@intel.com>, Pawel Wodkowski <pawelx.wodkowski@intel.com>, Arnd Bergmann <arnd@arndb.de>, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [BACKPORT 4.4.y 05/25] mmc: debugfs: Add a restriction to mmc debugfs clock setting Date: Fri, 22 Mar 2019 16:43:56 +0100 Message-Id: <20190322154425.3852517-6-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190322154425.3852517-1-arnd@arndb.de> References: <20190322154425.3852517-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:rNgMA6KuyisLXRfCfenSe1Wq9wIOuO34n904IfRUOVdG701BO8N BsWka5aFdovs3ew+Atu2vZWxg2WBWaFa1PfkL7gqK4/urtKXNZzjMx9p075htozU3cz4MKv FDXFRMP33vZohqA/5KGjaaY7zwUXCbtHbvArBIyuJz8TESWvwKg1hI3Y9EYIK7NlLkcV+kx xRhUoIfRl9jIlvCxXAU8g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:zFe/6JXOYhA=:acYPAqDC7pVn98rLvZMSES 4THsCAGfnVUZdV33tqRBRvFIdFNieDIkxhcrQQmTL0gXyMx6EH2BfZgj8Tg2/NqHFf6H3Pza4 MK31PMRC6MqlDc7CUs4xJb/10ChMv7QPJcTUORNK/WBxCTgD/o05lWUCkAbHIZzXBaRlCvkue 43jgkIU2E/aa44EpNzMUNO7FeUzKejJANjDiJYfj8IAR96i0XVy6hsUOVErbkS1cxJvf6c63f 8JIp321mrCl9VEDUC3mCZLKOhlnWnOeIR7Y+6vzwOh4zLVxUaiDnZNN/8MSlo6SUlxbpcPKWF RTLuMKwEWX31ao4qqHM1rbxVTcbUW9Ph9TW5rngLeVnO4netSEkBLP5Wx8Pa2zkeBetw7ItYu N770UisrdkNy06VMvXGwN9ijs/9ZONfFxkgy/MgxdWeKEERG9h436seFiUcBJeh2CxEqtB2pg 1iJ39mxln+0S/JO6NLFc2op1X9h0I0M+20Q+MacNGiErMRDTaEgKCoE1XlyflqJ2VWO/tmPJL jS2h6VyEGIfk9h1wTFrz+4hPpr9hCbK7XAnsr7vBRTTVtGIATQ3QmoJ4I1n6hLH9T0qGO+5Mu K2t50KugpzaJHaXx7bXoZ4RYZEFwKqhNJTpkoMImgnMOvc6jx41jL+lbdzPbSQhQ4ReXioBD6 qs0JyYJzNuTowuraliXuZWmWRYTrk/YJkiFIzH/H1FDkjhDxijpZFpZL5b/y8rclYyNZ7XZ75 EgYpTtfyCOntmVn61fyx4BrT+qMzBbRmE9UUeA== Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-mmc.vger.kernel.org> X-Mailing-List: linux-mmc@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c index 154aced0b91b..705586dcd9fa 100644 --- a/drivers/mmc/core/debugfs.c +++ b/drivers/mmc/core/debugfs.c @@ -220,7 +220,7 @@ static int mmc_clock_opt_set(void *data, u64 val) struct mmc_host *host = data; /* We need this check due to input value is u64 */ - if (val > host->f_max) + if (val != 0 && (val > host->f_max || val < host->f_min)) return -EINVAL; mmc_claim_host(host);