Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp179709pxb; Thu, 12 Aug 2021 13:45:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTbboi/hED0xGskHiphhEehIEwo7nPwxgw4Va9Z7/VTZ7xmDVBglfNNx7oyrnd9j9cRyZq X-Received: by 2002:a17:906:1b0c:: with SMTP id o12mr5571116ejg.501.1628801125326; Thu, 12 Aug 2021 13:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628801125; cv=none; d=google.com; s=arc-20160816; b=w408xXGaUMxZqjapXMJYSoKdjNNitd7sntSDPry79Opv5QYheJtYc/hfG43AvzhmRf Va4LLsGhwFIwoWdMb5UREw14ZtgM2fWibdSuOqivL9EIh4sMobHMy2o5LmcqajX1seal QtnWLZF2yFuXPVwTYWFdQqFFDMYXc/y/zi476ATSAV9UfwQvwHMzeLyvZm5buiQmQKCx fKHqgZGydji/PoS1qNGhnJ8kEeSnr270zKBwPYWt5GARU6BWFvTEvOD8iGa8VN65afmh QHDGL5PkZeR8zDu6AHu0krLmoBewQmAQV4NxpgZ84mZQqfqInaY9uMAL8ktXhQvIpMNF 6jKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=NeU4UKOpBZEi+0ZTBXoAZhvkmxSyBSuLAc+3pg9JFsY=; b=wyhF2UO2OFozOhxdOic5Mcu3AKGQO9nPxDOQ3YkXqYADmBw/Shx4xFU6GcSduPEQvb hc+fHSiCA9SopHEGAsn0UI6HUZMtZL2DAidV4KmeOVsYc7ub+aodDv5AkAIaoA0q91aJ SR39IsAJ2MlfzStpRJ6O9nZsdqA5rBOFnYpPLsArGPU5caI9yv/jT92rFnuI0kbR28tR bzfMIOUZOpMZ19J2QKowRWZf6iB+80nQ8iAG7COGrxQuJwfhgbZbX8dfTbTdSUY0da4t sePkgtRkx+DfLvhn0KL9XwgHBC5iT/Q7yITcTeaheXG7lcn8qYNLabgsYQgbQt+M/Hpb W4IA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w25si3803162edt.203.2021.08.12.13.45.01; Thu, 12 Aug 2021 13:45:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232564AbhHLUWV (ORCPT + 99 others); Thu, 12 Aug 2021 16:22:21 -0400 Received: from mga03.intel.com ([134.134.136.65]:4146 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234909AbhHLUWV (ORCPT ); Thu, 12 Aug 2021 16:22:21 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10074"; a="215474009" X-IronPort-AV: E=Sophos;i="5.84,316,1620716400"; d="scan'208";a="215474009" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2021 13:21:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,316,1620716400"; d="scan'208";a="517608569" Received: from silpixa00400314.ir.intel.com (HELO silpixa00400314.ger.corp.intel.com) ([10.237.222.51]) by FMSMGA003.fm.intel.com with ESMTP; 12 Aug 2021 13:21:42 -0700 From: Giovanni Cabiddu To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, qat-linux@intel.com, Marco Chiappero , Giovanni Cabiddu , Fiona Trahe Subject: [PATCH 03/20] crypto: qat - enable interrupts only after ISR allocation Date: Thu, 12 Aug 2021 21:21:12 +0100 Message-Id: <20210812202129.18831-4-giovanni.cabiddu@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210812202129.18831-1-giovanni.cabiddu@intel.com> References: <20210812202129.18831-1-giovanni.cabiddu@intel.com> MIME-Version: 1.0 Organization: Intel Research and Development Ireland Ltd - Co. Reg. #308263 - Collinstown Industrial Park, Leixlip, County Kildare - Ireland Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Marco Chiappero Enable device interrupts after the setup of the interrupt handlers. Signed-off-by: Marco Chiappero Co-developed-by: Giovanni Cabiddu Signed-off-by: Giovanni Cabiddu Reviewed-by: Fiona Trahe --- drivers/crypto/qat/qat_common/adf_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/qat/qat_common/adf_init.c b/drivers/crypto/qat/qat_common/adf_init.c index 744c40351428..14e9f3b22c60 100644 --- a/drivers/crypto/qat/qat_common/adf_init.c +++ b/drivers/crypto/qat/qat_common/adf_init.c @@ -88,8 +88,6 @@ int adf_dev_init(struct adf_accel_dev *accel_dev) return -EFAULT; } - hw_data->enable_ints(accel_dev); - if (adf_ae_init(accel_dev)) { dev_err(&GET_DEV(accel_dev), "Failed to initialise Acceleration Engine\n"); @@ -110,6 +108,8 @@ int adf_dev_init(struct adf_accel_dev *accel_dev) } set_bit(ADF_STATUS_IRQ_ALLOCATED, &accel_dev->status); + hw_data->enable_ints(accel_dev); + /* * Subservice initialisation is divided into two stages: init and start. * This is to facilitate any ordering dependencies between services -- 2.31.1