Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1400268ybj; Fri, 8 May 2020 00:00:38 -0700 (PDT) X-Google-Smtp-Source: APiQypJVMdjUfHXyTH/8cpET8j+8BP6r/UsgnLf8uh5ppdgJqvJsFlu9uSZUdQLjLvqdYtlS+NdJ X-Received: by 2002:a17:906:680b:: with SMTP id k11mr710724ejr.46.1588921238456; Fri, 08 May 2020 00:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588921238; cv=none; d=google.com; s=arc-20160816; b=Roh/Ve1Pp1KhnE60nQxjLjqy/6jyAgz/es9Iep7BYgQsSHPYtJ6xCjo0fCNAI1MwNj p7IRQxJws3iHK+oEhl2q/Z0a73s6Guc5Hz0G4pNm+urB5th9K7es/7iDb6X5JaOti+Ci PSNc5I/djZIDg/9lduwDB4edTfBuipOmFo/3e5UhlztMNtGbeLjhtTsIQMrdUWApUIc1 2NKswPC34YqModFeDzRfVHaulWr8EhDKEzKMAjthSmUkfhA44a/h00WFG+XciTlvKOMr LQ0tOamYOA3meNJEzDoGYGTpNerdA+R4qSqZJJgfEeSb6GPSpnDgcQOVJpo/Ibu1KyU1 pXcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=pP+SSzdRxLOs11RtUm6hQxs13CxTbuSzUqMtjWMFacA=; b=YxtW3vEycUhzzykW+UujylYhQRwm2dOZZm/pq0PO1FzDHLQu3FW87EevSiYwo4jJD/ KeoUfTGqYfNQXZdLKyJlBqPSdaFEznfZSC6ovR6v4X8RKjzkhhUJk1hSBKVeMnNXvxOr Bk9g60Z7wz7OBkZZpOlJN38wVTAbY6QBk6Y6Wmj03XAEbWvwkjASQ2V/PPw3BWBI45FC HDJLtsynUqfKsLCHb3mBerrkMP+a9qWVZJ8CBhR26KUjtLO9tsgEnKuX/B0OyFYcx+YU SLRPxn7mUPGgs9UaCZFwpbMKMcCQP3bXGFptTnVyDweXgKKtjbMWbZE4GAH9fy7qVuBq UqEg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si485928edv.216.2020.05.08.00.00.15; Fri, 08 May 2020 00:00:38 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726767AbgEHG7H (ORCPT + 99 others); Fri, 8 May 2020 02:59:07 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:42834 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726809AbgEHG7G (ORCPT ); Fri, 8 May 2020 02:59:06 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1DBC28175A0C2AB20E1D; Fri, 8 May 2020 14:59:05 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 8 May 2020 14:58:55 +0800 From: Shukun Tan To: , CC: , , Subject: [PATCH 13/13] crypto: hisilicon/zip - Make negative compression not an error Date: Fri, 8 May 2020 14:57:48 +0800 Message-ID: <1588921068-20739-14-git-send-email-tanshukun1@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588921068-20739-1-git-send-email-tanshukun1@huawei.com> References: <1588921068-20739-1-git-send-email-tanshukun1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Zhou Wang Users can decide whether to use negative compression result, so it should not be reported as an error by driver. Signed-off-by: Zhou Wang Signed-off-by: Shukun Tan --- drivers/crypto/hisilicon/zip/zip_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/zip/zip_crypto.c b/drivers/crypto/hisilicon/zip/zip_crypto.c index 5fb9d4b..0f158d4 100644 --- a/drivers/crypto/hisilicon/zip/zip_crypto.c +++ b/drivers/crypto/hisilicon/zip/zip_crypto.c @@ -341,7 +341,7 @@ static void hisi_zip_acomp_cb(struct hisi_qp *qp, void *data) status = sqe->dw3 & HZIP_BD_STATUS_M; - if (status != 0 && status != HZIP_NC_ERR) { + if (status != 0) { dev_err(dev, "%scompress fail in qp%u: %u, output: %u\n", (qp->alg_type == 0) ? "" : "de", qp->qp_id, status, sqe->produced); -- 2.7.4