From: sashiko-bot@kernel.org
To: "Peng Fan" <peng.fan@linux.dev>
Cc: virtualization@lists.linux.dev,
"Michael S. Tsirkin" <mst@redhat.com>,
"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH] gpio: virtio: simplify with cleanup API
Date: Tue, 01 Dec 2026 05:26:54 +0000 [thread overview]
Message-ID: <sashiko-outbox-242591@kernel.org> (raw)
In-Reply-To: <20261201-gpio-virtio-v1-1-3038754e9b26@nxp.com>
> From: Peng Fan <peng.fan@nxp.com>
>
> Use the scope-based cleanup API to replace the manual lock/unlock pairs
> and the goto-based error paths:
>
> - _virtio_gpio_req(): guard(mutex) holds the per-line lock over the
> whole function and scoped_guard(mutex) covers the virtqueue add/kick
> section, so the error paths can return directly instead of jumping
> to an unlock label.
> - virtio_gpio_irq_enable()/virtio_gpio_irq_disable(): scoped_guard()
> around the disabled/masked/queue_pending updates.
> - virtio_gpio_irq_mask()/virtio_gpio_irq_unmask() and ignore_irq():
> guard(raw_spinlock) with direct returns, dropping the 'ignore'
> variable and the unlock label.
> - virtio_gpio_irq_bus_sync_unlock(): scoped_guard() with the
> raw_spinlock_irqsave class.
>
> No functional changes.
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-gpio-virtio-v1-1-3038754e9b26@nxp.com?part=1
next prev parent reply other threads:[~2026-12-01 5:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 5:21 [PATCH] gpio: virtio: simplify with cleanup API Peng Fan
2026-12-01 5:26 ` sashiko-bot [this message]
2026-12-01 7:53 ` Viresh Kumar
2026-12-01 9:50 ` Bartosz Golaszewski
2026-12-01 10:09 ` Viresh Kumar
2026-12-01 9:52 ` Bartosz Golaszewski
2026-12-01 11:16 ` Peng Fan
2026-12-01 13:22 ` Bartosz Golaszewski
2026-12-01 13:22 ` Bartosz Golaszewski
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=sashiko-outbox-242591@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=eperezma@redhat.com \
--cc=mst@redhat.com \
--cc=peng.fan@linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
--cc=virtualization@lists.linux.dev \
/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