From patchwork Tue Feb 28 18:28:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan McDowell X-Patchwork-Id: 13155114 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2158C64ED6 for ; Tue, 28 Feb 2023 18:28:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229620AbjB1S2h (ORCPT ); Tue, 28 Feb 2023 13:28:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjB1S2g (ORCPT ); Tue, 28 Feb 2023 13:28:36 -0500 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A963D13521; Tue, 28 Feb 2023 10:28:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=cB76pDp0L9mcBCeH4RiYfMUhvVaaA8YDQDxOHX56BVk=; b=lYWJatWtQcxNNhvIQ9pivEuRZx XVr5JDPdI1CFtaTX6Ti93x80HGjOZ4HDh0XcfL5sB/DEhtLAsTierRMvZjSA7orhFXGqp5TzI2kUt wI9p7aIh0kxKRNRXA5i02jXzt6sMUEtQ5emwAMfRTJNDJKgyeQgVL4j85whLxjtPblhUUZye1ojfu Emozq2UoHDkL7mSTAaB9KK4ulb9cCQdHjXFaBQbtsCIvl6P7HFnN3k9z0bXEKbrbhidr4KgRlFrcX gyc5C6kradb3fm60xGnaL5t/thIfEKGC6gKjlf6LyDQVP6tNWiKA5T7uYLidpZURPtecrMmZ9GnQA zmzcafCQ==; Received: from [2001:4d48:ad59:1403::17ca] (helo=earth.li) by the.earth.li with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pX4iB-008oRc-Gi; Tue, 28 Feb 2023 18:28:27 +0000 Date: Tue, 28 Feb 2023 18:28:23 +0000 From: Jonathan McDowell To: Antoine Tenart , Herbert Xu , "David S. Miller" Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] crypto: inside-secure: Handle load errors better Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 2 minor patches to improve the error handling of the safexcel driver when it fails to load. Firstly, make it clear when the reason for a load failure is because the firmware is not available. Secondly, ensure we clean up the ring workqueues / IRQ affinity settings to avoid a kernel warning when the driver fails to load. v2: - Expand error clean up to cover ring initialisation failures Jonathan McDowell (2): crypto: inside-secure: Raise firmware load failure message to error crypto: inside-secure - Cleanup ring IRQ workqueues on load failure drivers/crypto/inside-secure/safexcel.c | 39 ++++++++++++++++++------- 1 file changed, 28 insertions(+), 11 deletions(-)