Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2031145pxf; Sat, 27 Mar 2021 00:33:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCVGCQHSmUMuIsBLYCVtjpwdu18qdcXquDHyBh6w2lBTTEnOu05nao0fjINDWNHiDlp7Cx X-Received: by 2002:a05:6402:268c:: with SMTP id w12mr18711386edd.280.1616830396759; Sat, 27 Mar 2021 00:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616830396; cv=none; d=google.com; s=arc-20160816; b=EW+TwdJlDHI2aiXo7BiKIW8ITAk4MPFHw7zdph8MA7YCro8Ury3NNAbFmns+wZvLMl jI8lNQ2gGhQzPGefPrUgPGbuPzyMWhXdA6gnWo6SnR9g5b+fi7T3QSHwYosHspaVZBuP I1tq0ZoPM7jRt7LeTYipwT9hRFVTQYlcaiiTzHYiACWM4MfiyN94UjbuGYFg6R+F+zjN xOkI4Wdb8gS9WzHUFgVarl+p5Ac7zgwtrDgBLuW6pj6JsNDVnQ+ulGJoDhaocOpgHfl1 KvpzCWgiDtcR/BlVkR43YAEeqqgyGHxcUwYhk/VlenakOc608hkzEv8k3oj3y9zb0aYx XQ+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=MSVeZcJUMshUTLdz3nQCYuniDlMZ9LU03FimU9ZbvcA=; b=wFxEytG3Jc+blG0OtbFtBudXOR1kmmtAPo3+FHpvQ+Eh2Lu88cSUnmyBeCKqVrAxXg 9U5++vnV/IQuuVZmCcOJFNqT+NJOOYcm4I8XiBpICaK9KUgBII2ebxLPsB4TLjP9Uemc ydsg32iyj8pqBO54D4PHtN8nS6TPb/k1PKZ+X7snuO6Kvsoe7ix/M4bAtHCtuNPIeEph mw/F3ifl81l1BjeOGIxYUFdUIdn3hUBNTv6dzjBVrADT3f52Bx5/rhMqDgE7c9mEedPU WokAbVaOjFMKzvmkzNBDGwyxxauFGlJELcyh1CzQmUJtlSfRDE7eTAiFnbjCYYiyJUVa lCoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t18si8844959edr.399.2021.03.27.00.32.53; Sat, 27 Mar 2021 00:33:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230350AbhC0Hb4 (ORCPT + 99 others); Sat, 27 Mar 2021 03:31:56 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14630 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbhC0Hba (ORCPT ); Sat, 27 Mar 2021 03:31:30 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F6r7n3N5pz1BFg3; Sat, 27 Mar 2021 15:29:25 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Sat, 27 Mar 2021 15:31:19 +0800 From: Yang Shen To: , CC: , , Subject: [PATCH v2 0/4] crypto: hisilicon/zip - support new 'sqe' type in Kunpeng930 Date: Sat, 27 Mar 2021 15:28:44 +0800 Message-ID: <1616830128-46827-1-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In Kunpeng930, some field meanings in 'sqe' are changed, so driver need to distinguish the type on different platform. To avoid checking the platform everytime when driver fills the 'sqe', add a struct 'hisi_zip_sqe_ops' to describe the 'sqe' operations. The driver only need to choose the 'ops' once when call 'hisi_zip_acomp_init'. v1 -> v2: * fix a sparse warning Yang Shen (4): crypto: hisilicon/zip - adjust functions location crypto: hisilicon/zip - add comments for 'hisi_zip_sqe' crypto: hisilicon/zip - initialize operations about 'sqe' in 'acomp_alg.init' crypto: hisilicon/zip - support new 'sqe' type in Kunpeng930 drivers/crypto/hisilicon/zip/zip.h | 46 +- drivers/crypto/hisilicon/zip/zip_crypto.c | 706 +++++++++++++++++------------- 2 files changed, 438 insertions(+), 314 deletions(-) -- 2.8.1