From: Maximilian Luz <luzmaximilian@gmail.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Mark Gross <mgross@linux.intel.com>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/7] platform/surface: aggregator: Allow enabling of events without notifiers
Date: Fri, 4 Jun 2021 22:22:52 +0200 [thread overview]
Message-ID: <93470d5d-a720-8ed9-f050-65c16bb0fbca@gmail.com> (raw)
In-Reply-To: <44e65839-0ee5-98d3-20dd-edfc40f6818e@redhat.com>
On 6/4/21 10:13 PM, Hans de Goede wrote:
> Hi,
>
> On 6/4/21 3:47 PM, Maximilian Luz wrote:
[...]
>> +static int ssam_nf_refcount_enable(struct ssam_controller *ctrl,
>> + struct ssam_nf_refcount_entry *entry, u8 flags)
>> +{
>> + const struct ssam_event_registry reg = entry->key.reg;
>> + const struct ssam_event_id id = entry->key.id;
>> + struct ssam_nf *nf = &ctrl->cplt.event.notif;
>> + int status;
>> +
>> + lockdep_assert_held(&nf->lock);
>> +
>> + ssam_dbg(ctrl, "enabling event (reg: %#04x, tc: %#04x, iid: %#04x, rc: %d)\n",
>> + reg.target_category, id.target_category, id.instance, entry->refcount);
>> +
>> + if (entry->refcount == 1) {
>> + status = ssam_ssh_event_enable(ctrl, reg, id, flags);
>> + if (status)
>> + return status;
>> +
>> + entry->flags = flags;
>> +
>> + } else if (entry->flags != flags) {
>> + ssam_warn(ctrl,
>> + "inconsistent flags when enabling event: got %#04x, expected %#04x (reg: %#04x, tc: %#04x, iid: %#04x)\n",
>> + flags, entry->flags, reg.target_category, id.target_category,
>> + id.instance);
>> + }
>> +
>> + return 0;
>> +}
>> +
>> +/**
>> + * ssam_nf_refcount_enable() - Disable event for reference count entry if it is
>
> s/ssam_nf_refcount_enable/ssam_nf_refcount_disable_free/
>
> No need to resend, I'll fix this up when merging this series.
Oh right, thanks!
Regards,
Max
next prev parent reply other threads:[~2021-06-04 20:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-04 13:47 [PATCH v2 0/7] platform/surface: aggregator: Extend user-space interface for events Maximilian Luz
2021-06-04 13:47 ` [PATCH v2 1/7] platform/surface: aggregator: Allow registering notifiers without enabling events Maximilian Luz
2021-06-04 13:47 ` [PATCH v2 2/7] platform/surface: aggregator: Allow enabling of events without notifiers Maximilian Luz
2021-06-04 20:13 ` Hans de Goede
2021-06-04 20:22 ` Maximilian Luz [this message]
2021-06-04 20:51 ` kernel test robot
2021-06-04 13:47 ` [PATCH v2 3/7] platform/surface: aggregator: Update copyright Maximilian Luz
2021-06-04 13:47 ` [PATCH v2 4/7] platform/surface: aggregator_cdev: Add support for forwarding events to user-space Maximilian Luz
2021-06-04 13:47 ` [PATCH v2 5/7] platform/surface: aggregator_cdev: Allow enabling of events from user-space Maximilian Luz
2021-06-04 13:47 ` [PATCH v2 6/7] platform/surface: aggregator_cdev: Add lockdep support Maximilian Luz
2021-06-04 13:47 ` [PATCH v2 7/7] docs: driver-api: Update Surface Aggregator user-space interface documentation Maximilian Luz
2021-06-04 20:18 ` [PATCH v2 0/7] platform/surface: aggregator: Extend user-space interface for events Hans de Goede
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=93470d5d-a720-8ed9-f050-65c16bb0fbca@gmail.com \
--to=luzmaximilian@gmail.com \
--cc=hdegoede@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgross@linux.intel.com \
--cc=platform-driver-x86@vger.kernel.org \
/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
all inboxes | Powered by JetHome®