Re: [PATCH v1 5/7] rtc-rv8803: extend sysfs to trigger internal ts-event
From: Krzysztof Kozlowski
Date: Sat Jan 11 2025 - 05:24:46 EST
On Fri, Jan 10, 2025 at 07:13:59AM +0100, Markus Burri wrote:
> + tmo = jiffies + msecs_to_jiffies(100); /* timeout 100ms */
> + do {
> + usleep_range(10, 2000);
> + ret = rv8803_read_reg(client, RX8901_WRCMD_TRG);
> + if (ret < 0)
> + return ret;
> + if (time_after(jiffies, tmo))
> + return -EBUSY;
> + } while (ret);
> +
> + return count;
> +}
> +
> static DEVICE_ATTR_WO(enable);
> static DEVICE_ATTR_RO(read);
> +static DEVICE_ATTR_WO(trigger);
Missing ABI documentation.
Best regards,
Krzysztof