Date: Fri, 28 Aug 2020 10:33:20 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r364916 - stable/12/sys/arm/allwinner Message-ID: <202008281033.07SAXKx4035057@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Fri Aug 28 10:33:19 2020 New Revision: 364916 URL: https://svnweb.freebsd.org/changeset/base/364916 Log: MFC r364147: aw_cir: minor cleanups Modified: stable/12/sys/arm/allwinner/aw_cir.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/arm/allwinner/aw_cir.c ============================================================================== --- stable/12/sys/arm/allwinner/aw_cir.c Fri Aug 28 10:32:03 2020 (r364915) +++ stable/12/sys/arm/allwinner/aw_cir.c Fri Aug 28 10:33:19 2020 (r364916) @@ -368,7 +368,7 @@ aw_ir_intr(void *arg) device_printf(sc->dev, "IR code status: %d\n", stat); } - sc->dcnt = 0; + aw_ir_buf_reset(sc); } if (val & AW_IR_RXINT_ROI_EN) { /* RX FIFO overflow */ @@ -469,7 +469,8 @@ aw_ir_attach(device_t dev) &sc->intrhand)) { bus_release_resources(dev, aw_ir_spec, sc->res); device_printf(dev, "cannot setup interrupt handler\n"); - return (ENXIO); + err = ENXIO; + goto error; } /* Enable CIR Mode */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008281033.07SAXKx4035057>