Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752397Ab3HENQ2 (ORCPT ); Mon, 5 Aug 2013 09:16:28 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:57304 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751389Ab3HENQ0 (ORCPT ); Mon, 5 Aug 2013 09:16:26 -0400 Date: Mon, 5 Aug 2013 15:16:15 +0200 From: Sascha Hauer To: Rob Herring Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, devicetree@vger.kernel.org, grant.likely@linaro.org Subject: Re: [PATCH 1/2] OF: Add helper for matching against linux,stdout-path Message-ID: <20130805131615.GV26614@pengutronix.de> References: <1375706445-15375-1-git-send-email-s.hauer@pengutronix.de> <1375706445-15375-2-git-send-email-s.hauer@pengutronix.de> <51FFA195.6080903@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51FFA195.6080903@gmail.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 15:03:42 up 5 days, 22:07, 20 users, load average: 0.07, 0.05, 0.05 User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:5054:ff:fec0:8e10 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1472 Lines: 33 On Mon, Aug 05, 2013 at 07:59:01AM -0500, Rob Herring wrote: > On 08/05/2013 07:40 AM, Sascha Hauer wrote: > > devicetrees may have a linux,stdout-path property in the chosen > > node describing the console device. This adds a helper function > > to match a device against this property so a driver can call > > add_preferred_console for a matching device. > > > > Signed-off-by: Sascha Hauer > > Acked-by: Rob Herring > > There are no existing users that could take advantage of this? The existing users do not register the console in the drivers probe function but instead have initcalls which parse the linux,stdout-path property manually and register whatever they find there. The better implementations at least check whether the node they find actually is compatible to the driver. Sorry, no users to change here without having access to the hardware. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/