From owner-svn-src-head@FreeBSD.ORG Sat Mar 8 03:39:10 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 75D87F5A; Sat, 8 Mar 2014 03:39:10 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 600321AD; Sat, 8 Mar 2014 03:39:10 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s283dAek010098; Sat, 8 Mar 2014 03:39:10 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s283dAM8010097; Sat, 8 Mar 2014 03:39:10 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <201403080339.s283dAM8010097@svn.freebsd.org> From: Warner Losh Date: Sat, 8 Mar 2014 03:39:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262920 - head/sys/dev/uart 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.17 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: Sat, 08 Mar 2014 03:39:10 -0000 Author: imp Date: Sat Mar 8 03:39:09 2014 New Revision: 262920 URL: http://svnweb.freebsd.org/changeset/base/262920 Log: Make clock optional on uart nodes. It is a FreeBSD-specific extention, and won't be present in vendor supplied dts files. Modified: head/sys/dev/uart/uart_bus_fdt.c Modified: head/sys/dev/uart/uart_bus_fdt.c ============================================================================== --- head/sys/dev/uart/uart_bus_fdt.c Sat Mar 8 03:22:25 2014 (r262919) +++ head/sys/dev/uart/uart_bus_fdt.c Sat Mar 8 03:39:09 2014 (r262920) @@ -97,9 +97,12 @@ uart_fdt_get_clock(phandle_t node, pcell { pcell_t clock; + /* + * clock-frequency is a FreeBSD-specific hack. Make its presence optional. + */ if ((OF_getprop(node, "clock-frequency", &clock, sizeof(clock))) <= 0) - return (ENXIO); + clock = 0; if (clock == 0) /* Try to retrieve parent 'bus-frequency' */