Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp384225pxb; Wed, 11 Nov 2020 06:14:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJQIKp62dSc3S/gt1mtXIPz8fZzfRIZn68EhMXHo1ViwGs+rmOMypOJhy0wgk1bUh/k1Er X-Received: by 2002:aa7:c2c4:: with SMTP id m4mr5340617edp.66.1605104059497; Wed, 11 Nov 2020 06:14:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605104059; cv=none; d=google.com; s=arc-20160816; b=jlL+sj9sd/qmvAgLfChIa7VO75zyJaLi1iyUcN3F8Kxjs9/v5MYzjMi+bhdpzzK3I/ 2J62U6gg410il5gohGTBm6UNH9yS38BmvV8HzxipXFGy8mxLWfpTt/V+dDVdGcppwcFt dP4Q2bS7VNW8ceR02xudjPM63WasFmvIbneXeozSoEUcxWO2PCoV4kp30Yd1UVdW8ZgP DO6RgmnDr+UdYMXgq+MjFJdQeGfpJJqdk45vizxvXq1a8827OPUJwa7q8X7zKXhu6si9 MQHrytR/wqRqpDNDixqienXd1xRmMYr0pJkTTeEX19zIFxPmGqFQSfwf9i6nMQCGFsGK xZUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=GeHR6yXgreWpKnc0tjK0uo9tWWvQE2T9XbiDL8EcXqk=; b=mjU2Kv3sSjwDRWXkMK8IHX4nKlSkMbbbFoE4wH4nl+tXKwGWn0zCXuKPn4NXQZ9sa+ 1+AootGgksa+p+IOifj/UHb3X16pTCoQdn2ugQBWCFoVFMwhcohutEFollAdDWo3OfFI KBHrcOpzUqJdU7bhDFyH38DtoE15/1o6oI0879VKQZsoega1Rd8tvz1/pByAUzzPblp6 Io4ODLissEkEU73Wc44zmnMXqfmhIv1G0vWuKXE3y34cY73yLrZy1qjNq1FGGOpPipUL GQFyildeWov8asxQxW3VGtxjZTD305uftm8Kdups+g3K5dRujFavUumyDvJ2r2imrpZw oFdg== 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 o2si1442634edv.416.2020.11.11.06.13.45; Wed, 11 Nov 2020 06:14:19 -0800 (PST) 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 S1726720AbgKKONK (ORCPT + 99 others); Wed, 11 Nov 2020 09:13:10 -0500 Received: from foss.arm.com ([217.140.110.172]:54752 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725900AbgKKOMQ (ORCPT ); Wed, 11 Nov 2020 09:12:16 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B5C9A31B; Wed, 11 Nov 2020 06:12:15 -0800 (PST) Received: from e110176-lin.kfn.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DD02F3F718; Wed, 11 Nov 2020 06:12:13 -0800 (PST) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" , Rob Herring Cc: Ofir Drang , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] add optional cache params override from DT Date: Wed, 11 Nov 2020 16:11:35 +0200 Message-Id: <20201111141138.836-1-gilad@benyossef.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Rework the setting of cache parameters, including optionally allowing overiding the defaults from device tree Changes from v1: - As per Rob Herring's suggestions, lose the distinction between read and write and limit options to a few that make sense. Also use strings to make the meaning of the setting clearer. Gilad Ben-Yossef (2): dt-bindings: crypto: update ccree optional params crypto: ccree - add custom cache params from DT file .../bindings/crypto/arm-cryptocell.txt | 4 + drivers/crypto/ccree/cc_driver.c | 100 +++++++++++++++--- drivers/crypto/ccree/cc_driver.h | 4 +- drivers/crypto/ccree/cc_pm.c | 2 +- 4 files changed, 92 insertions(+), 18 deletions(-) -- 2.29.2