Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp774612pxb; Tue, 5 Apr 2022 22:47:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLo69dPTLxHgNl6KYN8RZnz1s8MzYos7SNUfAl05k6xLw22ujqs7Vs1zlTMf7GzRa+jhLA X-Received: by 2002:a17:90a:aa98:b0:1b8:5adb:e35f with SMTP id l24-20020a17090aaa9800b001b85adbe35fmr8145305pjq.192.1649224053723; Tue, 05 Apr 2022 22:47:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649224053; cv=none; d=google.com; s=arc-20160816; b=gdhChTzx/j1stufBO7REaXMp7akEOJXCIytXq7zJ5NHALIfjT5mvQIP3elvLOz2Tw8 1NBqlcbzVg3mxblHyF1rNChpr6c8N0gWF3en6uuZMe72O21MI/nI9WSQIRAM6juu76eQ 45DyLtmzoKAKm0iWwOPxzDWSco3A9q1487R9cEsJ0bDaAx/X3p4gJtAXt530J1lebmRP lR7XTEvfXzZX+sj/Uv2bxO5fs6kIvnjuMQ0sN34O2wDmf19W5cuOsRhK3g44bKzChf6N YbFIzBzyJViWFMsglr7ZNKCVo+i91B4EyoQoU5MwDJG24JD45UG1ctxpvML7gomrR6n4 c5cA== 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; bh=4kuF8230aMW6d0OsvBIcvsWtoggvqTBCLky46GdsMso=; b=SjA2EXCdUBhVI7Jzaz7TPsG49wwPXSXq4L9J2+w2PAc3s1SwrehXg5IJqEUNtJzz9d iwKJ1FjWzNHzM+H4VqsASY5TB1SwnH9E5VOND8rIwn3gQ8wr24t2G69nc6KiPrtpRyNY +MPix7Gwaw8Cfg1z09DObveHUW4CTTHNilYQwJZ8jDUpOPIUA+GjuBcrdu2DXU2dHC4u yoXoMtygcZefRTDr0GnbIJyKuuq0rw6gPN1ulKPgu8BOlGcqDHqs0NPFLRmfbkRM6Vkj VmY+6+tuj4WDdMktgQTtmt24CG1Rr6O04J5C9oub+adYPf3ixhyPQLgFBYzYvzjQmHC3 BQQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d1-20020a170902728100b00156126bf7d2si4576028pll.430.2022.04.05.22.47.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:47:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5109148D2CA; Tue, 5 Apr 2022 22:12:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1850008AbiDFCqp (ORCPT + 99 others); Tue, 5 Apr 2022 22:46:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1455045AbiDEXia (ORCPT ); Tue, 5 Apr 2022 19:38:30 -0400 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 695E71C1EFC; Tue, 5 Apr 2022 14:59:41 -0700 (PDT) Received: by mail-pf1-f175.google.com with SMTP id w7so686269pfu.11; Tue, 05 Apr 2022 14:59:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=4kuF8230aMW6d0OsvBIcvsWtoggvqTBCLky46GdsMso=; b=uCos0OFGfekxx1r7cUdeZFojtRe3uJRfTog6bC9lA2shkArq6WCjWyBGCHRpRlEP60 S0sEa3dvcwA5QHO+8g4QMjiTaCwwmGVXb9RHOg8ynXu6UbtH4Q/51F7NGFAwxj1X0UHp Gz/CgvyqRqxwKGjJ+75STKGmaGES9spvq60jp9VRGsrbVapzB4zXps95OGau1xDay70n gOM8wsNNU78Oh1zFOzs/SsbdmmGiNYu5NZaVAa2Wx+O2mVHD2Ni/NSmF/hkfrD/Sy0JY GhUTNID3AFCPn13T5TpemaMdjvqr2wc2+HihWMP4ATA1HRPeq0aohRWq9CLuffxq203K dp7Q== X-Gm-Message-State: AOAM530RMPgBc6D/hethQ+MmNOkwa5S3nGyDHSxdiQSLS44pCyldIHKg +T3vGo40vEo10phaP7Po8Ow= X-Received: by 2002:a63:5144:0:b0:382:11ef:7962 with SMTP id r4-20020a635144000000b0038211ef7962mr4530436pgl.171.1649195980716; Tue, 05 Apr 2022 14:59:40 -0700 (PDT) Received: from ?IPV6:2601:647:4000:d7:feaa:14ff:fe9d:6dbd? ([2601:647:4000:d7:feaa:14ff:fe9d:6dbd]) by smtp.gmail.com with ESMTPSA id g12-20020a056a001a0c00b004e1307b249csm16991028pfv.69.2022.04.05.14.59.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Apr 2022 14:59:39 -0700 (PDT) Message-ID: Date: Tue, 5 Apr 2022 14:59:37 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v2 1/4] rpmb: add Replay Protected Memory Block (RPMB) subsystem Content-Language: en-US To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , linux-kernel@vger.kernel.org Cc: maxim.uvarov@linaro.org, joakim.bech@linaro.org, ulf.hansson@linaro.org, ilias.apalodimas@linaro.org, arnd@linaro.org, ruchika.gupta@linaro.org, tomas.winkler@intel.com, yang.huang@intel.com, bing.zhu@intel.com, Matti.Moell@opensynergy.com, hmo@opensynergy.com, linux-mmc@vger.kernel.org, linux-scsi@vger.kernel.org, Linus Walleij , Arnd Bergmann , Eric Biggers References: <20220405093759.1126835-1-alex.bennee@linaro.org> <20220405093759.1126835-2-alex.bennee@linaro.org> From: Bart Van Assche In-Reply-To: <20220405093759.1126835-2-alex.bennee@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-kernel@vger.kernel.org On 4/5/22 02:37, Alex Bennée wrote: > +int rpmb_get_write_count(struct rpmb_dev *rdev, int len, u8 *request, int rlen, u8 *resp) > +{ > + int err; > + > + if (!rdev) > + return -EINVAL; > + > + mutex_lock(&rdev->lock); > + err = -EOPNOTSUPP; > + if (rdev->ops && rdev->ops->get_write_count) > + err = rdev->ops->get_write_count(rdev->dev.parent, rdev->target, > + len, request, rlen, resp); > + mutex_unlock(&rdev->lock); > + > + return err; > +} The names rpmb_get_write_count() and get_write_count() look confusing to me since these functions query the write counter. How about adding "er" at the end of both function names? Are there any plans to add an implementation of struct rpmb_ops for UFS devices? Thanks, Bart.