Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2318328pxj; Sun, 13 Jun 2021 16:34:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuMNvhyPwaDK3OFK4CkzXpeRlgS3ULRfFHcBhhOscMfgKRgSNpLShiXeKF5Lhcri8DqNzV X-Received: by 2002:a17:906:14c9:: with SMTP id y9mr13115811ejc.192.1623627261020; Sun, 13 Jun 2021 16:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623627261; cv=none; d=google.com; s=arc-20160816; b=YncAB+VJqYB8ixJt5AVSOBHAaEJV0wRkUtFH5LuZ9oYcoo8p3EPJ9ZSaLJY7SvQDAI OUWfYzvWrS1LXuvS8RZvIk5QAnYFRSee3tpWQOCmj/Xw6GgOlZgEiL9ois8j1kdzN94u RcF7WsyFfSrj/iZMz9PxWEmH3f1r8zr+D24ewzWL+ysADVBqXK7mV0DSnMe7L0VETcPo BnyDy4cZuPg3iFDOgsw2gDLgSU2+Qz+madfwAdSg17fWNPmhzt9rMe3tHVaQLJji9VYB IWElCa0zmkJlnAF+5utNOJ30mF5CmO/x3MKfa1kzXIScJ1cfHY/eoDcLRTiIoLlFn6S6 t3KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=16tOXTFARRM7dKHNQ+/96ISTaL6FsxfGvA/KqriFMEI=; b=RgnHBCn96GnfoXJSaLWozolt1jwmQK4sUtr9QGx2Rp6zb39J0HMBACQq7CMOzYwonF mUL0SAiYqPxym82ie0PJu1RvFrcx22lghAqw89NErW3lpkmEpvOQAExu1CtZzhdgFpxX rTqm/vdjpfV9NoFnp5NXpqiXztPkPKpzu+hEwks3k39RnfakozGmcnVGKdkhQnGGINaS WyJgnHstP3p+Di9WNNpkO58veReeHwv/fgHqQ4bGHlj5P0B8BH1OByHt8K7U5w6N3bnZ 89f33g43c29uXR/PoD3b3EXPxnQlLWc9Ywc3xseu3Eryjg2NFFCCkKRX2EcAIuYi50Bq tW8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n7zBl0CX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l5si10356988ejx.554.2021.06.13.16.33.58; Sun, 13 Jun 2021 16:34:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n7zBl0CX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232248AbhFMXdr (ORCPT + 99 others); Sun, 13 Jun 2021 19:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232245AbhFMXdp (ORCPT ); Sun, 13 Jun 2021 19:33:45 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4DE9C061767; Sun, 13 Jun 2021 16:31:27 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 3-20020a05600c0243b029019f2f9b2b8aso11712948wmj.2; Sun, 13 Jun 2021 16:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=16tOXTFARRM7dKHNQ+/96ISTaL6FsxfGvA/KqriFMEI=; b=n7zBl0CXUp2knd7Z1u/xgP7MXaDYm2cbdIJwuSJe458mygeXpa++bY9+2NGqacnEyx HfGuSmD33i+4kO0faJr8etKOREGsXRU8CAAlbHp7oUAW+7PDfYKGVTR+RZulQnZHIJat OCXk+39Hx3w24wLllbNPQ+EiRcSXVzMy76nV17epgpz4PuwwJ71/9i35hOUpyaZlfImB S9LAyWLtt8sZQKZdtyyXHYfn5/98xb/9prbXIjfxcGkME1+yiUhHKfD2PEggkRXFqgqP ySdDgYLiIZh7Xw4XEzeXFhGNUmRH7fIrL2QGuElWewLRnyFMqdbhKibTYZ92NKp5FSAD DAcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=16tOXTFARRM7dKHNQ+/96ISTaL6FsxfGvA/KqriFMEI=; b=r/dYTLXcniPKFXrafZnXlwXWPloSSK+wIAOHBilLhNwgY4MxlDm/ofFPIKEc1pKXNO Y3SBtmJhbDz/jac1BgMxuateuvmo1EYl4T9HQ+24V4AEex0tlzUzWG+DNtpZh6P1nF6w Lv4kFHzLG2NiaGRCBVNSJ4J5VRBvX33G10Px00iOgucdoRLI6deFDB3qdDPQdibuAvxK zUqEaEX9Ge6UqvNITTE6bUcHm70A1C7Q6w1VUXTZFvNqKyMCcjo8/4ih7BNBjYEcE5RL hapBfdoYkQSd7hLfTQtf+nJZdhxM7jzZotikTX05YtnKq+K15Oh9jd7/ITlFcFjmua6/ torw== X-Gm-Message-State: AOAM530kXsk93BbSdPFT1uAUO6YXuNYrgcl0EkzIkj6LYKdfHKxplR4r cAY80kfg/xoem0VZD7mCl2Q= X-Received: by 2002:a05:600c:1c1b:: with SMTP id j27mr13670286wms.133.1623627082242; Sun, 13 Jun 2021 16:31:22 -0700 (PDT) Received: from localhost.localdomain ([195.245.23.224]) by smtp.gmail.com with ESMTPSA id i9sm17882511wrn.54.2021.06.13.16.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 16:31:21 -0700 (PDT) From: Alexander Sverdlin To: Geert Uytterhoeven , Nikita Shubin , linux-input@vger.kernel.org Cc: Alexander Sverdlin , Dmitry Torokhov , linux-kernel@vger.kernel.org Subject: [PATCH 3/7] Input: ep93xx_keypad: Prepare clock before using it Date: Mon, 14 Jun 2021 01:30:37 +0200 Message-Id: <20210613233041.128961-4-alexander.sverdlin@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210613233041.128961-1-alexander.sverdlin@gmail.com> References: <20210613233041.128961-1-alexander.sverdlin@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use clk_prepare_enable()/clk_disable_unprepare() in preparation for switch to Common Clock Framework. Signed-off-by: Alexander Sverdlin --- drivers/input/keyboard/ep93xx_keypad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/keyboard/ep93xx_keypad.c b/drivers/input/keyboard/ep93xx_keypad.c index c8194333d612..e0e931e796fa 100644 --- a/drivers/input/keyboard/ep93xx_keypad.c +++ b/drivers/input/keyboard/ep93xx_keypad.c @@ -157,7 +157,7 @@ static int ep93xx_keypad_open(struct input_dev *pdev) if (!keypad->enabled) { ep93xx_keypad_config(keypad); - clk_enable(keypad->clk); + clk_prepare_enable(keypad->clk); keypad->enabled = true; } @@ -169,7 +169,7 @@ static void ep93xx_keypad_close(struct input_dev *pdev) struct ep93xx_keypad *keypad = input_get_drvdata(pdev); if (keypad->enabled) { - clk_disable(keypad->clk); + clk_disable_unprepare(keypad->clk); keypad->enabled = false; } } -- 2.32.0