Linux GPIO subsystem development
 help / color / mirror / Atom feed
From: andy.shevchenko@gmail.com
To: Yan Wang <rk.code@outlook.com>
Cc: linus.walleij@linaro.org, brgl@bgdev.pl,
	"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] gpio: gpiolib: clear the array_info's memory space
Date: Wed, 26 Apr 2023 17:42:40 +0300	[thread overview]
Message-ID: <ZEk4YNQeYohEwnSg@surfacebook> (raw)
In-Reply-To: <KL1PR01MB5448327326B6EDA8001AF714E6669@KL1PR01MB5448.apcprd01.prod.exchangelabs.com>

Sun, Apr 23, 2023 at 09:59:43PM +0800, Yan Wang kirjoitti:
> if hardware number different to array index,it needs to clear to points
> memory space if the array_info have been assigned a value.

Can you explain a bit more what's going on there?

...

>  			if (bitmap_full(array_info->get_mask, descs->ndescs)) {
> +				/*clear descs->info*/
> +				memset(array_info, 0, sizeof(struct gpio_array));
>  				array_info = NULL;

...

>  			}

-- 
With Best Regards,
Andy Shevchenko



  reply	other threads:[~2023-04-26 14:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-23 11:03 [PATCH v1] gpio: gpiolib: clear the array_info's memory space Yan Wang
2023-04-23 13:09 ` kernel test robot
2023-04-23 13:41 ` kernel test robot
2023-04-23 13:59   ` [PATCH v2] " Yan Wang
2023-04-26 14:42     ` andy.shevchenko [this message]
2023-04-27  6:13       ` Yan Wang
2023-05-04  9:36       ` Yan Wang
2023-05-04 11:36         ` Andy Shevchenko
2023-05-04 14:15           ` Yan Wang
2023-05-12  7:37             ` Yan Wang
2023-05-15  7:25     ` Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZEk4YNQeYohEwnSg@surfacebook \
    --to=andy.shevchenko@gmail.com \
    --cc=brgl@bgdev.pl \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rk.code@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox