lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <439e5822-76a0-3ecf-7934-bc6f1f2446c6@infradead.org>
Date:   Thu, 10 Dec 2020 15:21:20 -0800
From:   Randy Dunlap <rdunlap@...radead.org>
To:     Gwendal Grignou <gwendal@...omium.org>, bleung@...omium.org,
        enric.balletbo@...labora.com, groeck@...omium.org
Cc:     linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] platform: cros_ec: Call interrupt bottom half in ISH
 or RPMSG mode

Hi--

Please use correct kernel-doc notation. See below:


On 12/10/20 2:58 PM, Gwendal Grignou wrote:
> Call the same bottom half for all EC protocols (threaded code).
> 
> Signed-off-by: Gwendal Grignou <gwendal@...omium.org>
> ---
>  drivers/platform/chrome/cros_ec.c           | 26 ++++++++++++++++-----
>  drivers/platform/chrome/cros_ec_ishtp.c     |  6 +----
>  drivers/platform/chrome/cros_ec_rpmsg.c     |  6 +----
>  include/linux/platform_data/cros_ec_proto.h |  3 ++-
>  4 files changed, 24 insertions(+), 17 deletions(-)
> 
> diff --git a/drivers/platform/chrome/cros_ec.c b/drivers/platform/chrome/cros_ec.c
> index 6d6ce86a1408a..4ac33491d0d18 100644
> --- a/drivers/platform/chrome/cros_ec.c
> +++ b/drivers/platform/chrome/cros_ec.c
> @@ -31,7 +31,14 @@ static struct cros_ec_platform pd_p = {
>  	.cmd_offset = EC_CMD_PASSTHRU_OFFSET(CROS_EC_DEV_PD_INDEX),
>  };
>  
> -static irqreturn_t ec_irq_handler(int irq, void *data)
> +/**
> + * cros_ec_irq_handler: top half part of the interrupt handler

 * cros_ec_irq_handler - top half part of the interrupt handler

> + * @irq: IRQ id
> + * @data: (ec_dev) Device with events to process.
> + *
> + * Return: Wakeup the bottom half
> + */
> +static irqreturn_t cros_ec_irq_handler(int irq, void *data)
>  {
>  	struct cros_ec_device *ec_dev = data;
>  

> @@ -72,9 +79,15 @@ bool cros_ec_handle_event(struct cros_ec_device *ec_dev)
>  
>  	return ec_has_more_events;
>  }
> -EXPORT_SYMBOL(cros_ec_handle_event);
>  
> -static irqreturn_t ec_irq_thread(int irq, void *data)
> +/**
> + * cros_ec_irq_thread: bottom half part of the interrupt handler

 * cros_ec_irq_thread - bottom half part of the interrupt handler

> + * @irq: IRQ id
> + * @data: (ec_dev) Device with events to process.
> + *
> + * Return: Interrupt handled.
> + */
> +irqreturn_t cros_ec_irq_thread(int irq, void *data)
>  {
>  	struct cros_ec_device *ec_dev = data;
>  	bool ec_has_more_events;




thanks.
-- 
~Randy

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ