From mboxrd@z Thu Jan 1 00:00:00 1970 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 56391C433EF for ; Mon, 27 Jun 2022 14:02:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C4A59112983; Mon, 27 Jun 2022 14:02:21 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id 59DB1112983 for ; Mon, 27 Jun 2022 14:02:21 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B8FE960C0A; Mon, 27 Jun 2022 14:02:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99C8EC3411D; Mon, 27 Jun 2022 14:02:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656338540; bh=HqnmPX+RaZcEbcpHB4WxJc5NFbPDlcVOD2QtlPCs1y4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MQdQRWz5BH7+IVRd9T80YU9QXYDjBVXCpHz8CZUniE8RIkpDlvFubjXjXTBBlBq8S QngpxqYpgopry8LqEE/m0GQ3q4xIMls8QMfKh7VlDb49Hhi37N2hAjPxH5w8MI752c ENxHHrPDgxjnR2aMdrHu1jyug1ZbqZ887IQoWoVQ= Date: Mon, 27 Jun 2022 16:02:17 +0200 From: Greg Kroah-Hartman To: Alexander Usyskin Message-ID: References: <20220619133721.523546-1-alexander.usyskin@intel.com> <20220619133721.523546-14-alexander.usyskin@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220619133721.523546-14-alexander.usyskin@intel.com> Subject: Re: [Intel-gfx] [PATCH v3 13/14] mei: debugfs: add pxp mode to devstate in debugfs X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Rodrigo Vivi , Tomas Winkler , Vitaly Lubart Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Sun, Jun 19, 2022 at 04:37:20PM +0300, Alexander Usyskin wrote: > From: Tomas Winkler > > CC: Vitaly Lubart > Signed-off-by: Tomas Winkler We can not take patches without any changelog text, you know this :( > --- > drivers/misc/mei/debugfs.c | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/drivers/misc/mei/debugfs.c b/drivers/misc/mei/debugfs.c > index 1ce61e9e24fc..4074fec866a6 100644 > --- a/drivers/misc/mei/debugfs.c > +++ b/drivers/misc/mei/debugfs.c > @@ -86,6 +86,20 @@ static int mei_dbgfs_active_show(struct seq_file *m, void *unused) > } > DEFINE_SHOW_ATTRIBUTE(mei_dbgfs_active); > > +static const char *mei_dev_pxp_mode_str(enum mei_dev_pxp_mode state) > +{ > +#define MEI_PXP_MODE(state) case MEI_DEV_PXP_##state: return #state > + switch (state) { > + MEI_PXP_MODE(DEFAULT); > + MEI_PXP_MODE(INIT); > + MEI_PXP_MODE(SETUP); > + MEI_PXP_MODE(READY); Just spell out the case and return lines, don't create macros for no good reason please. thanks, greg k-h