Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp244624rwb; Thu, 1 Dec 2022 01:30:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf6c2ERpoh+LBL/f/6gqkNHCAgXWKiG2wWgy1YIvM3WDbBzzJijut7xrYWo3ORbtpS411VeS X-Received: by 2002:a17:907:2bce:b0:7bf:2321:f1f0 with SMTP id gv14-20020a1709072bce00b007bf2321f1f0mr16528972ejc.533.1669887025135; Thu, 01 Dec 2022 01:30:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669887025; cv=none; d=google.com; s=arc-20160816; b=sspQVP312ArXJe6aQ+20sX3PSNIZHW6mae5/VHPGlwefXg7XR1/Lf/JiDQUVCtROtp fw6S+/URLVtrNCyxnMKJ4R3cuKZG9o4yYISipwD8khxXiSRDRZSJicQFYArJfmhrBdXK pTuoJ8e8uELr5N61W2fh12G0HfGMrrP77LZC+wICGfVKbcnY6wb/ZIUZVtRTMTj7bsz+ jPS/f2rGAy/IeT2nEbgpZrKdOlYKjgukLk3ext4ktNGbd//IpHsBlGy7S8xL/qszVWQb ArwnegsEWAIHszrCxxpbPUPphMXBdn3tqltb0qsclJB4vyz9DKGvHdB86C3/hXEJKoTW OQJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Jahb+tEShKBR+Ktu0BgJXy8O1SopxAlMcngu6tulhfo=; b=xxlVTMuOVSgC2AgQUX8+6jvSxSsbtn8kOh2qV3YBQb2iN+cK7EEaxN8ShPRIVJL9Tw 2RFFN0Efd3PVGektcfIhyW3LmVb3PvTuFUlhvIn6trdTpxghXPMJv+YlSG0VRcs1ZjJQ rFuGNRcXKXylqXcwBRsDYiW8oi8QESvQQgTqYInhX8tZM5xvxRbcJMd/d0YNNuBp9FZr tgB9uT4aORIpBdnMdaNY+2C55mJnZ8tNjJ3BbxcEWmmxC+tfle3muBZsTTW0z4grfBPZ TUddZiRIZZZ8tPDGAE6yeg3eWicMKApcIzbTq5Vk2Fn0ob0n/JtSOevur7LCkTNw1Yev VaTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wzeuJx6x; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js4-20020a17090797c400b0073d8830e4c7si3593676ejc.954.2022.12.01.01.30.01; Thu, 01 Dec 2022 01:30:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wzeuJx6x; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbiLAJ27 (ORCPT + 99 others); Thu, 1 Dec 2022 04:28:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229923AbiLAJ2u (ORCPT ); Thu, 1 Dec 2022 04:28:50 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4283B4E6B2 for ; Thu, 1 Dec 2022 01:28:45 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id f13so1575729lfa.6 for ; Thu, 01 Dec 2022 01:28:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Jahb+tEShKBR+Ktu0BgJXy8O1SopxAlMcngu6tulhfo=; b=wzeuJx6xKm1tNX0R828wgisRm6UYpQssq1gEpjild2BMpZ3jiJEGbZBEyphN32yvVV TzR7uzCkl9HBZ5aazB219DCIvHAA3tDilXZHK5QSEnTM1J5GjbxWBHjsU7b8RG3qWgVh UuQuyHmJOfwhZTnSm4HJDKTS1uqYIB3z3xDZUcPR3qyTs3/oKBCapWI3kjvAlEpuM/Nb TsORs1tXAqJGAaAAuTnb7I8BESvchycQt+GQl8F+jRPvqdX+sBUfX1f/MHStul1Td2kB Ne8u+FRMrGYkvUZOMxYIIQ8hyn1GEyeRzpmRLIGs82XQAjSqkMXfrxd7nMtVBVDP0bps Uj7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Jahb+tEShKBR+Ktu0BgJXy8O1SopxAlMcngu6tulhfo=; b=wime7mIsl7eWs/0qmUSFt3yT+G1v4pRPXe/Qgxe0R/gkh8EuJ5ZI297PwO0jxP5L0O e9YAUKkk/qvZW3sxrGviDO5fvECMi9lC9q7lpjKj10paMGjPPkA6jKPk6csVKjb49fXw IwAlKJEwdZDhcVelXwMHZPuBd2cGvHvkbJeBj8fIvgE5KbaNfD19yaSjOgGYzTsfao0X E70tB73koBc3DZ388X9idB80dUbHomehRqZ55/xwoMGe536r+NjqviAzVc3EMMLb+cnl zKamc5yt+3P3/YZnv5fsyRv+eAasI1kEFC1Pqrqf1pHPUBDKE6JkNZEU0aKNy0RWc2MN fYLg== X-Gm-Message-State: ANoB5plx9GlusVJb/qRhwifhy1oIKJGE90loAKZQJW5FCFwi10br4a+z 6PFXzxzEO2HxVPomfnLGkB6M9A== X-Received: by 2002:ac2:4e0e:0:b0:4b1:7c15:e920 with SMTP id e14-20020ac24e0e000000b004b17c15e920mr25286530lfr.453.1669886924183; Thu, 01 Dec 2022 01:28:44 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id o6-20020ac25e26000000b00492e3a8366esm589861lfg.9.2022.12.01.01.28.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Dec 2022 01:28:41 -0800 (PST) Message-ID: <6028b265-bc8a-3a06-b17c-56aa772a4782@linaro.org> Date: Thu, 1 Dec 2022 10:28:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 1/6] crypto: starfive - Add StarFive crypto engine support Content-Language: en-US To: JiaJie Ho , Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski Cc: "linux-crypto@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-riscv@lists.infradead.org" References: <20221130055214.2416888-1-jiajie.ho@starfivetech.com> <20221130055214.2416888-2-jiajie.ho@starfivetech.com> <60ad0da0116044d3a1fe575e9904e22c@EXMBX068.cuchost.com> From: Krzysztof Kozlowski In-Reply-To: <60ad0da0116044d3a1fe575e9904e22c@EXMBX068.cuchost.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 01/12/2022 07:52, JiaJie Ho wrote: >>> + >>> +static inline u32 starfive_sec_read(struct starfive_sec_dev *sdev, >>> +u32 offset) { >>> + return __raw_readl(sdev->io_base + offset); >> >> I don't think these read/write wrappers help anyhow... >> > > These wrappers are used by the crypto primitives in this patch series. > I'll move these to subsequent patches when they are first used. > > Thank you for spending time reviewing and providing helpful comments > for this driver. > Just drop the wrappers. I said they do not help and your answer "are used" does not explain anything. If you insist on keeping them, please explain what are the benefits except more code and more indirections/layers making it more difficult to read? Best regards, Krzysztof