Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F207DC05027 for ; Tue, 14 Feb 2023 09:05:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232246AbjBNJFd (ORCPT ); Tue, 14 Feb 2023 04:05:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232035AbjBNJFP (ORCPT ); Tue, 14 Feb 2023 04:05:15 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE2F42413F for ; Tue, 14 Feb 2023 01:04:34 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id sa10so38310134ejc.9 for ; Tue, 14 Feb 2023 01:04:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=B1Z3q3DmS5pOVEGCvUAhyPF2bKswWr3oxM1fP44E01g=; b=COuUcT2AZRNsgh9PCtbDoV0xwtkZWgtPrWi0j45nCIH+dV8sucbSd3+SYnyQv4y9o3 ZPe0l/BpBLeKgxQy0xp5VWH853xLbsTOEv81tJbrO84pCQmlx7v+BS0zdsYRHqxJ40p3 Kn5cCw8AFYmOw4bbCEQkoGam0kTsWm3qNgrNUanOF2uhZh8kTeND61lGxf6LKSpsXc2t HsgjbLGYP2p5n2Rfms1o7UmPcg3FWOTRzvThW3dFRzqN+rhylkaXtiQCsfhzieKSmCxa zQIV2f3AFobTga5xgdf/wvs1v3Ps1qEoWML/t8QGmVcGiTK/bNuzbjIdE4RjJYYwfBga TPQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=B1Z3q3DmS5pOVEGCvUAhyPF2bKswWr3oxM1fP44E01g=; b=PX1Pkqu3GT+XTqqn0UHQBFpIeIaSJtQFNDgxEwLHlsGAoTPzuWrPAoz+iUrh/6H9Ge gsgqrHDkEVQjSUbqzjoXHGPUJ/55jybRWzAO4kECd5j2rYtkzkw6OMZJsep2HChCsy+d fu3LyaKW5UMaFB6QGageNV5mX/I+nBpg1D7iCx3sqCGmCnjso1XcPp7Bo69vCHrtRT0I IgEsmMRpL54BioAJ7D0rUUFXDWnRaNdiz+OY3NDQpSZ+RjQTLR0kcTxbu9GPjj3qhy13 r7hu2XqxD8cG7YdOHcWV4nQSgUc/2IKhHZ4AVQGxAhVPz4GcJatH/4QwM+sP5oIpYcUy NAAQ== X-Gm-Message-State: AO0yUKUPNfudN1IqWnUMLe6G2/n8XgBOAc3VM1YnOcXg5JtAVlR8ZtSF mP3Pzbk52jOWasnAivH3cngiQlQfTk8m+YYcxdJjLQ== X-Google-Smtp-Source: AK7set+hnsT1pAPi2MI7vrdiN/w8ZaWDcCTCHsqz2LQt0+BtAA2hKUW/X8H+N/bzrjH9fJpgD+558039XefVrYatVD0= X-Received: by 2002:a17:906:1696:b0:8b1:2fff:8689 with SMTP id s22-20020a170906169600b008b12fff8689mr630834ejd.6.1676365470122; Tue, 14 Feb 2023 01:04:30 -0800 (PST) MIME-Version: 1.0 References: <20230209223811.4993-1-mario.limonciello@amd.com> <20230209223811.4993-4-mario.limonciello@amd.com> In-Reply-To: <20230209223811.4993-4-mario.limonciello@amd.com> From: =?UTF-8?B?SmFuIETEhWJyb8Wb?= Date: Tue, 14 Feb 2023 10:04:18 +0100 Message-ID: Subject: Re: [PATCH 3/6] crypto: ccp: Move some PSP mailbox bit definitions into common header To: Mario Limonciello Cc: Grzegorz Bernacki , Thomas Rijo-john , Lendacky Thomas , herbert@gondor.apana.org.au, John Allen , Brijesh Singh , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , linux-i2c@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (...) > @@ -99,7 +93,7 @@ static int psp_check_mbox_recovery(struct psp_mbox __iomem *mbox) > > tmp = readl(&mbox->cmd_fields); > > - return FIELD_GET(PSP_MBOX_FIELDS_RECOVERY, tmp); > + return FIELD_GET(PSP_CMDRESP_RECOVERY, tmp); > } > > static int psp_wait_cmd(struct psp_mbox __iomem *mbox) > @@ -107,7 +101,7 @@ static int psp_wait_cmd(struct psp_mbox __iomem *mbox) > u32 tmp, expected; > > /* Expect mbox_cmd to be cleared and ready bit to be set by PSP */ > - expected = FIELD_PREP(PSP_MBOX_FIELDS_READY, 1); > + expected = FIELD_PREP(PSP_CMDRESP_RESP, 1); What's the meaning of "PSP_CMDRESP_RESP"? I see that this new macro name is currently used by other drivers, but in my opinion "READY" is more descriptive. (It is also aligned to the comment above this line.)