From owner-svn-src-head@freebsd.org Wed Apr 19 05:59:01 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC0C6D45EB2; Wed, 19 Apr 2017 05:59:01 +0000 (UTC) (envelope-from ganbold@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6AD6932B; Wed, 19 Apr 2017 05:59:01 +0000 (UTC) (envelope-from ganbold@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3J5x0IA017172; Wed, 19 Apr 2017 05:59:00 GMT (envelope-from ganbold@FreeBSD.org) Received: (from ganbold@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3J5x0Nv017171; Wed, 19 Apr 2017 05:59:00 GMT (envelope-from ganbold@FreeBSD.org) Message-Id: <201704190559.v3J5x0Nv017171@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ganbold set sender to ganbold@FreeBSD.org using -f From: Ganbold Tsagaankhuu Date: Wed, 19 Apr 2017 05:59:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r317126 - head/sys/arm/allwinner X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 05:59:01 -0000 Author: ganbold Date: Wed Apr 19 05:59:00 2017 New Revision: 317126 URL: https://svnweb.freebsd.org/changeset/base/317126 Log: Use hwreset_get_by_ofw_idx() function instead, since there is no reset-names dts property defined for IR in case of H3 SoC. That way IR works on H3 SoC based board. Tested on Orangepi mini 2 board. Modified: head/sys/arm/allwinner/aw_cir.c Modified: head/sys/arm/allwinner/aw_cir.c ============================================================================== --- head/sys/arm/allwinner/aw_cir.c Wed Apr 19 05:28:21 2017 (r317125) +++ head/sys/arm/allwinner/aw_cir.c Wed Apr 19 05:59:00 2017 (r317126) @@ -419,7 +419,7 @@ aw_ir_attach(device_t dev) } /* De-assert reset */ - if (hwreset_get_by_ofw_name(dev, 0, "apb", &rst_apb) == 0) { + if (hwreset_get_by_ofw_idx(dev, 0, 0, &rst_apb) == 0) { err = hwreset_deassert(rst_apb); if (err != 0) { device_printf(dev, "cannot de-assert reset\n");