From patchwork Thu Dec 14 14:02:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 121959 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6844387qgn; Thu, 14 Dec 2017 06:03:32 -0800 (PST) X-Google-Smtp-Source: ACJfBotRF84ivNBNFg8L0tMzqbl/xv16zxfA6hkoX9Gy8CQd5q2LzYaMTgB9oJUuaNQ+YSbWbip0 X-Received: by 10.99.126.11 with SMTP id z11mr8723796pgc.281.1513260212175; Thu, 14 Dec 2017 06:03:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513260212; cv=none; d=google.com; s=arc-20160816; b=GgVaFlHtn90KvOELs3XronmCOR6gJmWPxlAm5LEBRzPdN0dk9clA5to2BfrNtef5x4 U0qNMdvmF9X+sih1vD1Y6EUpwyaMQpbuHkdq09XJkaD8kfQb3c+s+HZxnGYYy8+91Z0l L9riOerHfpCBxkx2WXH3DotVa5UACtfEQYITPIMojYpke7zFGolliJxP4TeqqbtGy2cc 3GR/7m4sGzVjQU8NXTiPPDfqcGC+EyJV4IEx8YiE+jQ/1x84grwrHPKNEgaVi2M5mHip ExI6JyvuuWsjockRNPCmTk7juBj/jtH2cUr9uA8WQhhGydmHJ4bveOrJdMf2j4g1L0Y1 hoNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=a8LiogsHW0lb79CkuO6OBK/gSMaeBtfX8Q4GOvwbtbk=; b=jKOcJJ/jAGUzWN1OjEGKuhRegOn1UrOdIkX0nZglhkvl06z+jxlueSV2Cs5CEmEwYC 2Wt2gOezGa4NW78G1LFtcwiKHvSii4YhKKqTUzgPKsVnt3DjfK/D4dPUJSYwRCJWu6Ra jMz6FnlvIj0O4m4KVq5jwNAF5DCuBtpvttVzpX8shGhdhukxoO2nkK72gD0WnSZiwcP+ OBDgdVD7AaKmQO1haUwq3KEMNtT2UcmdGv7H3sekAwtrJSaqYQJh13QkD69ilvBvcvn1 Tb9djcQ1zB2caTJ1tdib87Y36gw8/T/5uht7EdIfpMChtwnIpHHMsRkea++k9swOtQ/5 gGtQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n17si3295613pfi.256.2017.12.14.06.03.31; Thu, 14 Dec 2017 06:03:32 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752760AbdLNOD3 (ORCPT + 20 others); Thu, 14 Dec 2017 09:03:29 -0500 Received: from foss.arm.com ([217.140.101.70]:42190 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752547AbdLNODZ (ORCPT ); Thu, 14 Dec 2017 09:03:25 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9100E1435; Thu, 14 Dec 2017 06:03:25 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.196]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D4FFA3F246; Thu, 14 Dec 2017 06:03:23 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH 05/10] staging: ccree: remove CC_IRQ_DELAY dead code Date: Thu, 14 Dec 2017 14:02:42 +0000 Message-Id: <1513260170-26346-6-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513260170-26346-1-git-send-email-gilad@benyossef.com> References: <1513260170-26346-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove dead code from older version which is not supported in current hardware. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_config.h | 1 - drivers/staging/ccree/ssi_driver.c | 11 ----------- 2 files changed, 12 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/ssi_config.h b/drivers/staging/ccree/ssi_config.h index 15725cc..e809103 100644 --- a/drivers/staging/ccree/ssi_config.h +++ b/drivers/staging/ccree/ssi_config.h @@ -28,7 +28,6 @@ //#define CC_DUMP_DESCS // #define CC_DUMP_BYTES // #define CC_DEBUG -//#define CC_IRQ_DELAY 100000 /* was 32 bit, but for juno's sake it was enlarged to 48 bit */ #define DMA_BIT_MASK_LEN 48 diff --git a/drivers/staging/ccree/ssi_driver.c b/drivers/staging/ccree/ssi_driver.c index 14705dc..6158794 100644 --- a/drivers/staging/ccree/ssi_driver.c +++ b/drivers/staging/ccree/ssi_driver.c @@ -171,17 +171,6 @@ int init_cc_regs(struct cc_drvdata *drvdata, bool is_probe) CC_GPR0_IRQ_MASK)); cc_iowrite(drvdata, CC_REG(HOST_IMR), val); -#ifdef CC_HOST_IRQ_TIMER_INIT_VAL_REG_OFFSET -#ifdef CC_IRQ_DELAY - /* Set CC IRQ delay */ - cc_iowrite(drvdata, CC_REG(HOST_IRQ_TIMER_INIT_VAL), CC_IRQ_DELAY); -#endif - if (cc_ioread(drvdata, CC_REG(HOST_IRQ_TIMER_INIT_VAL)) > 0) { - dev_dbg(dev, "irq_delay=%d CC cycles\n", - cc_ioread(drvdata, CC_REG(HOST_IRQ_TIMER_INIT_VAL))); - } -#endif - cache_params = (drvdata->coherent ? CC_COHERENT_CACHE_PARAMS : 0x0); val = cc_ioread(drvdata, CC_REG(AXIM_CACHE_PARAMS));