From patchwork Mon Jun 17 08:46:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 166975 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2582235ilk; Mon, 17 Jun 2019 01:46:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOdO9zOc/qhyLbcADUGnBgKsPqlHrA3LjjfxJlVEnGesTx7Zx/rikHWyDpDvX+4U9DVd0B X-Received: by 2002:a17:902:aa47:: with SMTP id c7mr20109741plr.171.1560761202659; Mon, 17 Jun 2019 01:46:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560761202; cv=none; d=google.com; s=arc-20160816; b=QZBsmmA0REjBj2AwcTUjje9+b4LHGo9FOcqPMq9uemqs4bgfu2jC83+feT9VhnQgNA bP8+hm+qxNYQ7WR1HeGXQbrqwhIjw023C5y5u8IXpxUHQeqSo1bPu/n5MrcvBaJTvrj1 klrfpvrL5htUvb//5GrZqtIouf4X4KZeQX3bu1+iVu2elZppjqWs+Eyqn0HqvH6rl+Ik vCTkiUqtXgcWeNW+/eHCbODu3yG3PsE8EytMqLs1pNZkmt8ycD5AmSwkQCkKQhSZdtMq zSHjhDpNynUdzxa3dk4ZnPaUQFlzimtzjdsV3kD6IXxT3R0tGJ/bmMjCSmXVxXro4A+T 3ANA== 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=6v6X4s2I3lsRHPLCypQctANZnwyiAiJz51yWsajOhqk=; b=g9o9eWfb4HUepv4rXnpLQEs4MTEKcxUgJ0De4dA/ed2IGUHGC4HuPRAlNgYHRzuO0W e61BObjI2ZCh2zo37CecdIyxxuDZdUr7S48wM1P/VtG/9P1vTHj7EHfqIwJ3bVbVo04Q nFXhXNj+xzZ/mDNISZgtDSTW1sXxeNPCD645Gmxl+5sCaQSfmAc53jEQSBQSKW5dczmW kITXN/1AEs3ydhr1gnMvmRzdPfBaEjxHjxqiedEgbIf36abN9fEj6/sadGhLesykN53k Vcc2M21tlgGduQTami4dLLaWW84vY88xwoCX5aEWfDSEA1L+ObqBpbg6ptn/KCVwlbBn CLZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si614817pga.99.2019.06.17.01.46.42; Mon, 17 Jun 2019 01:46:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727742AbfFQIql (ORCPT + 3 others); Mon, 17 Jun 2019 04:46:41 -0400 Received: from foss.arm.com ([217.140.110.172]:41806 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbfFQIqk (ORCPT ); Mon, 17 Jun 2019 04:46:40 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D4BC5360; Mon, 17 Jun 2019 01:46:39 -0700 (PDT) Received: from e110176-lin.kfn.arm.com (unknown [10.50.4.178]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9F96C3F246; Mon, 17 Jun 2019 01:46:38 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] crypto: ccree: Relocate driver irq registration after clk init Date: Mon, 17 Jun 2019 11:46:27 +0300 Message-Id: <20190617084631.23551-2-gilad@benyossef.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190617084631.23551-1-gilad@benyossef.com> References: <20190617084631.23551-1-gilad@benyossef.com> MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Ofir Drang Relocate driver interrupt registration after clk gate enabling. Signed-off-by: Ofir Drang --- drivers/crypto/ccree/cc_driver.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) -- 2.21.0 diff --git a/drivers/crypto/ccree/cc_driver.c b/drivers/crypto/ccree/cc_driver.c index 86ac7b443355..0f80cb4f79fb 100644 --- a/drivers/crypto/ccree/cc_driver.c +++ b/drivers/crypto/ccree/cc_driver.c @@ -315,15 +315,6 @@ static int init_cc_resources(struct platform_device *plat_dev) return new_drvdata->irq; } - rc = devm_request_irq(dev, new_drvdata->irq, cc_isr, - IRQF_SHARED, "ccree", new_drvdata); - if (rc) { - dev_err(dev, "Could not register to interrupt %d\n", - new_drvdata->irq); - return rc; - } - dev_dbg(dev, "Registered to IRQ: %d\n", new_drvdata->irq); - init_completion(&new_drvdata->hw_queue_avail); if (!plat_dev->dev.dma_mask) @@ -401,6 +392,15 @@ static int init_cc_resources(struct platform_device *plat_dev) /* Display HW versions */ dev_info(dev, "ARM CryptoCell %s Driver: HW version 0x%08X/0x%8X, Driver version %s\n", hw_rev->name, hw_rev_pidr, sig_cidr, DRV_MODULE_VERSION); + /* register the driver isr function */ + rc = devm_request_irq(dev, new_drvdata->irq, cc_isr, + IRQF_SHARED, "ccree", new_drvdata); + if (rc) { + dev_err(dev, "Could not register to interrupt %d\n", + new_drvdata->irq); + return rc; + } + dev_dbg(dev, "Registered to IRQ: %d\n", new_drvdata->irq); rc = init_cc_regs(new_drvdata, true); if (rc) {