lkml.org 
[lkml]   [2024]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject回复: [PATCH v9 2/3] clocksource: Add JH7110 timer driver
Date


> On Mon, Mar 18, 2024 at 11:06:48AM +0800, Ziv Xu wrote:
>
> > +static int jh7110_timer_start(struct jh7110_clkevt *clkevt) {
> > + int ret;
> > +
> > + /* Disable and clear interrupt first */
> > + writel(JH7110_TIMER_INT_DIS, clkevt->base +
> JH7110_TIMER_INT_MASK);
> > + ret = jh7110_timer_int_clear(clkevt);
>
> The return value here is not checked/used.
>
I will change it in the next version,thanks.

Best regards
Ziv.xu

> > + writel(JH7110_TIMER_INT_ENA, clkevt->base +
> JH7110_TIMER_INT_MASK);
> > + writel(JH7110_TIMER_ENA, clkevt->base + JH7110_TIMER_ENABLE);
> > +
> > + return 0;
> > +}


\
 
 \ /
  Last update: 2024-05-27 15:55    [W:0.072 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site