[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aDWfDZ_rmdZeuvX3@smile.fi.intel.com>
Date: Tue, 27 May 2025 14:16:29 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Anup Patel <apatel@...tanamicro.com>
Cc: Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Jassi Brar <jassisinghbrar@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
"Rafael J . Wysocki" <rafael@...nel.org>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Uwe Kleine-König <ukleinek@...nel.org>,
Palmer Dabbelt <palmer@...belt.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Len Brown <lenb@...nel.org>, Sunil V L <sunilvl@...tanamicro.com>,
Rahul Pathak <rpathak@...tanamicro.com>,
Leyfoon Tan <leyfoon.tan@...rfivetech.com>,
Atish Patra <atish.patra@...ux.dev>,
Andrew Jones <ajones@...tanamicro.com>,
Samuel Holland <samuel.holland@...ive.com>,
Anup Patel <anup@...infault.org>, linux-clk@...r.kernel.org,
devicetree@...r.kernel.org, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 05/23] mailbox: Add common header for RPMI messages
sent via mailbox
On Sun, May 25, 2025 at 02:16:52PM +0530, Anup Patel wrote:
> The RPMI based mailbox controller drivers and mailbox clients need to
> share defines related to RPMI messages over mailbox interface so add
> a common header for this purpose.
...
> +#include <linux/mailbox_client.h>
This is not even closer to the list of the headers the header is using.
E.g., types.h is missing.
> +/* RPMI version encode/decode macros */
> +#define RPMI_VER_MAJOR(__ver) (((__ver) >> 16) & 0xffff)
> +#define RPMI_VER_MINOR(__ver) ((__ver) & 0xffff)
Same comment as per previous patch.
...
> + RPMI_ERR_NO_DATA = -14,
> + RPMI_ERR_RESERVED_START = -15,
> + RPMI_ERR_RESERVED_END = -127,
> + RPMI_ERR_VENDOR_START = -128
Leave the trailing comma, as it doesn't sound like a terminator.
...
> + return -ETIMEDOUT;
> + return -ECOMM;
> + return -EOPNOTSUPP;
+ errno.h
...
> +/* RPMI linux mailbox attribute IDs */
> +enum rpmi_mbox_attribute_id {
> + RPMI_MBOX_ATTR_SPEC_VERSION = 0,
Why do you need an explicit initialiser? If it's a HW requirement, all of them
should be explicitly defined. This makes code robust against potential changes.
> + RPMI_MBOX_ATTR_MAX_MSG_DATA_SIZE,
> + RPMI_MBOX_ATTR_SERVICEGROUP_ID,
> + RPMI_MBOX_ATTR_SERVICEGROUP_VERSION,
> + RPMI_MBOX_ATTR_MAX_ID
> +};
...
> +/* RPMI linux mailbox message types */
linux --> Linux
(everywhere)
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists