[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tigg56hutpmaw46io6xxro65ze23oxb25rhruzarhp3bfccidz@zjiymjfbyj45>
Date: Sat, 11 Jan 2025 11:24:36 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Markus Burri <markus.burri@...com>
Cc: linux-kernel@...r.kernel.org,
Alexandre Belloni <alexandre.belloni@...tlin.com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>, Marek Vasut <marex@...x.de>,
linux-rtc@...r.kernel.org, devicetree@...r.kernel.org, Manuel Traut <manuel.traut@...com>
Subject: Re: [PATCH v1 5/7] rtc-rv8803: extend sysfs to trigger internal
ts-event
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
Powered by blists - more mailing lists