Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3121612pxm; Mon, 28 Feb 2022 12:29:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlCcXGbR8MCU15W7xLPvPSnmQZFA89eDmpmYAcO3RfMoyozkzqqvnR2NrvKRXzhA9+Sk/X X-Received: by 2002:a05:6a00:1c9c:b0:4c0:3e77:22ea with SMTP id y28-20020a056a001c9c00b004c03e7722eamr23730124pfw.74.1646080149038; Mon, 28 Feb 2022 12:29:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646080149; cv=none; d=google.com; s=arc-20160816; b=RneNNf1aH/jkX+2CqWmLZ+20GgMesbJJ2wcZ4hOgEYtNyUQOuT1DeOXgBqcgzOfwNg dmdk7MUlg1eKuZ5CnLixzYeXZvBUxhiTlVEHLVPvO097f4ydey6RQqxnfqIZqXDyCkyG O+hL6kKiBG98LOb/fs9Zk1SWr71UjCtMY8ykdHcnAQQaidSj1qoHxdgQteBqIh+q5DyK ILjkgmYJVohEQIhwPLCgJTH3uBk1R03wiRjnFGYYhNNF0ZMfypWM2dNDg1FdbtsWzcM9 AyN24Ege3YkbPuU7Xiw+7g1tkxKK7h6rRXE9IrkgwaHX7rYCW4mDQauD3gGxK20FhRIN ZTwg== 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=Mq94Dr5+JVccORut3g3YoAFCHNwJha9oYdYCZSmtj94=; b=cRA0wZqWOH+Bzw2E+KXT/58ZNW+8gjsEbLklMK84N8o6VIldVqvyAylrSPBs0TtlN2 1tD66RGJPWwYdjGjg+REq1rzBH5xwvvmrYN6NUWVxPcTfiYSagEhBFdspTjhyB6KD7/J UdvVQIngZ8wZZ3FAXnBpCaxeVem/QfheKYHnGDcZq3chfV7qkj0GQpzf+m8d/Ys7fiDj PvAlAJcA64cjkLy3CZ0xOMUN2xPQXZd4St1/BDaqXrNqtnlkBP51ZEVACobQplSqsE57 GBcwmoXydbNgxvzdvf5Hqn9V2DFIt61aHfThlJ1uBwCR4oopDOFRoiJZATHiLgFS3F0l maYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=15smI5CS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b11-20020a170903228b00b001514a03bf28si8604511plh.558.2022.02.28.12.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:29:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=15smI5CS; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7F1FA20FCAC; Mon, 28 Feb 2022 11:47:26 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229679AbiB1TsA (ORCPT + 99 others); Mon, 28 Feb 2022 14:48:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbiB1Trq (ORCPT ); Mon, 28 Feb 2022 14:47:46 -0500 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADE462023A1 for ; Mon, 28 Feb 2022 11:46:00 -0800 (PST) Received: by mail-wr1-f53.google.com with SMTP id s1so17071111wrg.10 for ; Mon, 28 Feb 2022 11:46:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Mq94Dr5+JVccORut3g3YoAFCHNwJha9oYdYCZSmtj94=; b=15smI5CSaP0Zrj3xaQZQf+DZcj7sJcUvEGVixTMllyC0+17NwDBnX1yDzL0G8A3RMz JxsYzQMVj83p6RnrNOkbvb1mjyRd/XReb0l1vHOE5+LZmTKTJ2jlIW/Eq/FBAUPaNrGV mC7ruGFt3FlrzSQW2vtji5cxIXmmbmopkMkPNVUnPxXjP8B3x3nfJxwOhE3qJ8xi60bN eLPKMfiawx26wTTR9MtlgCfNWudyjLUyx4JOjYFV9nDwtra5p12oxQQPbYHxtN239YSQ ysS6bDXjFTwQMjyB/YkEeL3kPYon8daCYnwHohQWnU6ibA6TKJ4aDvoL9UUulW1H5vNG APTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Mq94Dr5+JVccORut3g3YoAFCHNwJha9oYdYCZSmtj94=; b=bpIGU3uN0SEn7nX/f4MSf6kRxK1TIlJa336WMoXNfz9g+wCTcZ9+dUymRWIkOcWnqM XaZ7vho+9aHFc8GiUmP+zhISvfURUEvbD5ojt+ro0DvhJEGjhTZE6fAR6N1G6PsSil1I HP7I9WactlQU/rd9x0TcaAxFzLro7ipOJZ3AitUYuqb7uJBNGd9MseIzQ029ShvROVGW 1Upqa48oP0QCrqUluvrNdjFCj/TTlGLuhi/JuKDz5gyRCr34YQSVKQg/8WqcID/6JYoW q6CdqexnN3rdCIMK10QbKbAbO2ZzOOktAaKXoJhpaRPuAh9FaWYfl5S01p2m1N6YVLA+ r1vA== X-Gm-Message-State: AOAM532qPueRMvnouv8ZfAd/chjo7qjOm1eVyvqkQFBOvPoERNe0B0Di Lcfj+Sa6EDCvdPE0LstCtHE3lg== X-Received: by 2002:a05:6000:c8:b0:1ef:7e4a:e3a1 with SMTP id q8-20020a05600000c800b001ef7e4ae3a1mr10429876wrx.452.1646077251620; Mon, 28 Feb 2022 11:40:51 -0800 (PST) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id v25-20020a05600c215900b0038117f41728sm274143wml.43.2022.02.28.11.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 11:40:51 -0800 (PST) From: Corentin Labbe To: heiko@sntech.de, herbert@gondor.apana.org.au, krzysztof.kozlowski@canonical.com, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Corentin Labbe Subject: [PATCH 11/16] crypto: rockhip: do not handle dma clock Date: Mon, 28 Feb 2022 19:40:32 +0000 Message-Id: <20220228194037.1600509-12-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228194037.1600509-1-clabbe@baylibre.com> References: <20220228194037.1600509-1-clabbe@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The DMA clock is handled by the DMA controller, so the crypto does not have to touch it. Signed-off-by: Corentin Labbe --- drivers/crypto/rockchip/rk3288_crypto.c | 16 +--------------- drivers/crypto/rockchip/rk3288_crypto.h | 1 - 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/crypto/rockchip/rk3288_crypto.c b/drivers/crypto/rockchip/rk3288_crypto.c index 94ef1283789f..645855d2651b 100644 --- a/drivers/crypto/rockchip/rk3288_crypto.c +++ b/drivers/crypto/rockchip/rk3288_crypto.c @@ -40,15 +40,8 @@ static int rk_crypto_enable_clk(struct rk_crypto_info *dev) __func__, __LINE__); goto err_hclk; } - err = clk_prepare_enable(dev->dmaclk); - if (err) { - dev_err(dev->dev, "[%s:%d], Couldn't enable clock dmaclk\n", - __func__, __LINE__); - goto err_dmaclk; - } + return err; -err_dmaclk: - clk_disable_unprepare(dev->hclk); err_hclk: clk_disable_unprepare(dev->aclk); err_aclk: @@ -59,7 +52,6 @@ static int rk_crypto_enable_clk(struct rk_crypto_info *dev) static void rk_crypto_disable_clk(struct rk_crypto_info *dev) { - clk_disable_unprepare(dev->dmaclk); clk_disable_unprepare(dev->hclk); clk_disable_unprepare(dev->aclk); clk_disable_unprepare(dev->sclk); @@ -199,12 +191,6 @@ static int rk_crypto_probe(struct platform_device *pdev) goto err_crypto; } - crypto_info->dmaclk = devm_clk_get(&pdev->dev, "apb_pclk"); - if (IS_ERR(crypto_info->dmaclk)) { - err = PTR_ERR(crypto_info->dmaclk); - goto err_crypto; - } - crypto_info->irq = platform_get_irq(pdev, 0); if (crypto_info->irq < 0) { dev_err(&pdev->dev, "control Interrupt is not available.\n"); diff --git a/drivers/crypto/rockchip/rk3288_crypto.h b/drivers/crypto/rockchip/rk3288_crypto.h index c741e97057dc..963fbfc4d14e 100644 --- a/drivers/crypto/rockchip/rk3288_crypto.h +++ b/drivers/crypto/rockchip/rk3288_crypto.h @@ -191,7 +191,6 @@ struct rk_crypto_info { struct clk *aclk; struct clk *hclk; struct clk *sclk; - struct clk *dmaclk; struct reset_control *rst; void __iomem *reg; int irq; -- 2.34.1