From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932306AbeE2Jce (ORCPT ); Tue, 29 May 2018 05:32:34 -0400 Received: from mail.bootlin.com ([62.4.15.54]:49708 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932612AbeE2JcC (ORCPT ); Tue, 29 May 2018 05:32:02 -0400 Date: Tue, 29 May 2018 11:32:00 +0200 From: Alexandre Belloni To: Andy Shevchenko Cc: Radu Pirea , Mark Brown , Nicolas Ferre , Lee Jones , Richard Genoud , Rob Herring , Mark Rutland , Greg Kroah-Hartman , linux-spi , linux-arm Mailing List , Linux Kernel Mailing List , devicetree , "open list:SERIAL DRIVERS" Subject: Re: [PATCH v4 3/6] mfd: at91-usart: added mfd driver for usart Message-ID: <20180529093200.GB4793@piout.net> References: <20180525171941.26766-1-radu.pirea@microchip.com> <20180525171941.26766-4-radu.pirea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/05/2018 11:00:49+0300, Andy Shevchenko wrote: > On Fri, May 25, 2018 at 8:19 PM, Radu Pirea wrote: > > This mfd driver is just a wrapper over atmel_serial driver and > > spi-at91-usart driver. Selection of one of the drivers is based on a > > property from device tree. If the property is not specified, the default > > driver is atmel_serial. > > > + depends on OF > > What makes this driver OF specific? > > > + err = of_property_read_u32(np, "atmel,usart-mode", &opmode); > > Check unified device property API. > We don't care, this makes the driver OF specific and this is the correct thing to do. -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com