Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp461816pxb; Tue, 14 Sep 2021 01:15:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+IWOnygweHlJvH54cMwqV9ffTKNucAaMEcwwaZ8sHzZ9YoEyo09yk+3TqcRaYvLrQyJxY X-Received: by 2002:a05:6402:3186:: with SMTP id di6mr13752276edb.225.1631607314861; Tue, 14 Sep 2021 01:15:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631607314; cv=none; d=google.com; s=arc-20160816; b=Qlx1psLUXOM0KRJLE9J7OA7B9yadHEm2XJKDPlJOE+lOauBaDU861yK/SRAvELa3km Zm8/RM56hPUv4pARokufB0RjN121VHsoB/V1GHZbmDgho9rI+VTFzIwpJQFwlJbWjVaA Ltcb85Jw/9rfR2PxDEeSsGk3C0FFxqlF9el9RNJ431R8tjeBk6iyjslDRrcqyYZxm3fX 4eKkABlQNgvrn/ebI95HYs0Q6M3rjOKVmq9STz993Ht84YApvKsXK4R3sk1k+0/qUezg TtGN7S6yze0qyUbfd4iyKYss+a15sgzS0g7yNVcyBNkPCFVuSbrsffZ7negC3tOA2UP0 7Afw== 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:dkim-signature; bh=ZK5vDV/adbAzMg2oJHG8cDb+JTBoyOwAUn2LzA3tgrI=; b=KEr9jSVLXIS1cV+bBHQxGV0HvYAbHIBo3xe5XURoiCfvGoOLQEJnkDP+O9KFdwZK+Y TzkjqHmwXy8rjtuisKjzJNYg7dY/gLj8clZct6eAhQEyugk8I9gvZfn/mp84BzU/6DjV I3UkaHjHA8yg6WXJvwlsVbpGckfZxITDDNL2a1KUCUPljDBVjRq60dqqScNIGcwqGyYe 7smNzEoYDAHekHV2gf40sjzjd+wlZ+5IVIiIolNYL15DhvB3KHLF4XOlccVdVsxJ+KIh TSD9UFyEAqy0mAMpOjq0MengamOwD+FNqFsJFKXdA4GfXfp3uwXM67qGK0gW3k/dkChF 2rzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g+2g4OFa; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si10038884ejs.718.2021.09.14.01.14.51; Tue, 14 Sep 2021 01:15:14 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g+2g4OFa; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229829AbhINIMv (ORCPT + 99 others); Tue, 14 Sep 2021 04:12:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:60950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbhINIMu (ORCPT ); Tue, 14 Sep 2021 04:12:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ED4FF60EB6; Tue, 14 Sep 2021 08:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631607093; bh=XgV0VOwvYlmpCGt57z0PpVVIaNEuFhMTiNswnTjNPNc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g+2g4OFaI37lXcjPLJCQ+0laA6wruiudyCf/zFuxrhhSCpwWDxenL6rtAWeDR6OwP qoM4EnRUWdvuX/xPQVORsc348Aooa0WKhnfCu0wUh0VydPo8LkaRn4DlvFPrhAovn1 uuybODtnhmLh9kjflC5slScmpz3iKy7a7WtBKNTo= Date: Tue, 14 Sep 2021 10:11:31 +0200 From: Greg Kroah-Hartman To: Chen Yu 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: 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: <7a739633b30f6fb5c258f21c443ed0c17b12896f.1631600169.git.yu.c.chen@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > +}; > + > +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. > + > +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. thanks, greg k-h