Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp289429pxb; Wed, 15 Sep 2021 02:01:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5JMm2YsBwSXBnqi8kptGD6PJePmKX6o0JE0VTK6MEuvIMPa/quZhuO14SSaeYfpmLMDtE X-Received: by 2002:a05:651c:10a:: with SMTP id a10mr19352462ljb.37.1631696481260; Wed, 15 Sep 2021 02:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631696481; cv=none; d=google.com; s=arc-20160816; b=BqDmgQyZeK94VpG09NHNkcb3pyRaES1lyWsSwsfKlS0G4rrhVzpXkkGAsa73ZpMdf9 40mkBvwmpHE7Essz5nMCXZr4t89k4lAQu+5Ky23xmfjgJ/Zjtk3/+phNDIujRFyRVPrw SCt/Yoqq6fv/d0LaMdJ0QgUYDLxE5w+cFCf4asxOsYGYElLDP3jDKLuyTZV7UK0kXzWQ eIvjzg6te+lao1gcMwIjCLOiRIzmlDExLkIP9lZfdhIwAP35DyHCttaCixP9FGfjRHFR Ci5MuNC6xQqBFu5GfOjjSG4BdnC9UxujlvNrblNbpgzOftQVyXxZGisxDDtlOjx9W+zy 0lGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=MTWe1hJRPDpoArJ+GaVhuZW8W3q0KbDdjJBHNr190DQ=; b=VTFECjji/utNG+dd+/d/80hQtiIliOSuagAPHZ08u/MI7hpn4cGhgNhnxs5ArodHDm GIY+jeaRvRjq+qoI3xVr50H+3wgbxTa5rCoZ1plhb2zI/XjrK4kHKonXaY0SxowhbCkf lPl6jKd5/c5iG1TywHURUiweHUeKnzRZ1epAQT6hjjmsx9OsQgZakqjQBueECJ6b4zlR YPOXISh9tePvJIf3ClT3W/aY7vVdK/JL+LMzfj14xVF+f0+To4tKMrgWtGFUy/gwqmJQ 1oTOaLKgtCbmtLzu1pDvvQItQvd+aCzkeV8wIfMpOYrOKuQ8AHLfp7etq1nNyzarF0Ki 7YAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si11817754lfq.420.2021.09.15.02.00.53; Wed, 15 Sep 2021 02:01:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237104AbhIOI7a (ORCPT + 99 others); Wed, 15 Sep 2021 04:59:30 -0400 Received: from mga06.intel.com ([134.134.136.31]:4552 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237098AbhIOI72 (ORCPT ); Wed, 15 Sep 2021 04:59:28 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10107"; a="283261630" X-IronPort-AV: E=Sophos;i="5.85,294,1624345200"; d="scan'208";a="283261630" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2021 01:58:09 -0700 X-IronPort-AV: E=Sophos;i="5.85,294,1624345200"; d="scan'208";a="552999867" Received: from chenyu-desktop.sh.intel.com (HELO chenyu-desktop) ([10.239.158.176]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2021 01:58:04 -0700 Date: Wed, 15 Sep 2021 17:03:57 +0800 From: Chen Yu To: Greg Kroah-Hartman Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Dan Williams , Andy Shevchenko , Aubrey Li , Ashok Raj , Mike Rapoport , Ard Biesheuvel , Jonathan Corbet , Hans de Goede , Maximilian Luz , Alexander Graf , Jarkko Sakkinen , Hannes Reinecke , Ioana Ciornei , Jiri Slaby , Andra Paraschiv , Randy Dunlap , Ben Widawsky , linux-doc@vger.kernel.org Subject: Re: [PATCH v2 3/5] drivers/acpi: Introduce Platform Firmware Runtime Update device driver Message-ID: <20210915090357.GA282742@chenyu-desktop> References: <7a739633b30f6fb5c258f21c443ed0c17b12896f.1631600169.git.yu.c.chen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, thank you very much for your comments, On Tue, Sep 14, 2021 at 10:11:31AM +0200, Greg Kroah-Hartman wrote: > On Tue, Sep 14, 2021 at 03:58:41PM +0800, Chen Yu wrote: > > +enum start_action { > > + START_STAGE, > > + START_ACTIVATE, > > + START_STAGE_ACTIVATE, > > +}; > > + > > +enum dsm_status { > > + DSM_SUCCEED, > > + DSM_FUNC_NOT_SUPPORT, > > + DSM_INVAL_INPUT, > > + DSM_HARDWARE_ERR, > > + DSM_RETRY_SUGGESTED, > > + DSM_UNKNOWN, > > + DSM_FUNC_SPEC_ERR, > > +}; > > + > > +struct update_cap_info { > > + enum dsm_status status; > > + int update_cap; > > + > > + uuid_t code_type; > > + int fw_version; > > + int code_rt_version; > > + > > + uuid_t drv_type; > > + int drv_rt_version; > > + int drv_svn; > > + > > + uuid_t platform_id; > > + uuid_t oem_id; > > + > > + char oem_info[]; > > Please use valid types for structures that cross the user/kernel > boundry. > Okay, I'll switch them into __u prefixed one. > > +}; > > + > > +struct com_buf_info { > > + enum dsm_status status; > > + enum dsm_status ext_status; > > + unsigned long addr_lo; > > + unsigned long addr_hi; > > + int buf_size; > > +}; > > Same here. > Okay, I'll fix them. > > + > > +struct updated_result { > > + enum dsm_status status; > > + enum dsm_status ext_status; > > + unsigned long low_auth_time; > > + unsigned long high_auth_time; > > + unsigned long low_exec_time; > > + unsigned long high_exec_time; > > And same here. > > And these are very odd structure names that you are adding to the > "global" namespace. Please make them have a prefix for your driver so > that people know what they belong to. "updated_result" is way too > generic. > Okay, added the driver name prefix in next version. thanks, Chenyu