Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5363536imm; Sat, 19 May 2018 00:08:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpJf9OX2rFJvuUOkts05JCuDerOITVGJJJc26jknhlgQMxRL+mIaBJy046WfWp4YoqI/xkO X-Received: by 2002:a17:902:321:: with SMTP id 30-v6mr12489280pld.122.1526713729058; Sat, 19 May 2018 00:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526713729; cv=none; d=google.com; s=arc-20160816; b=SW98ku6QPKF/Cha3AkVLxiWhFb/7IxLHTEmxQFwTDbAqnNZo+lakBqd8PT5t5VNukk fUqSdHaVWHuTg+TKpSeylqDhzTZg6XRbjaXuf4zYsUPZ8/u9Jc7Y+dYcUHD8HPPW20ar U2dKwkL6odwhz/srrk2nWbTACJ7BigeTQRsJxJNBEPPbJMu3IsSk/JSBUjN63MHCZ/iP SsgE1gTRZ6RCtMRzqkAQQoUCZ8D/UoOn9jXFGomnbP66OP4DjNhXAjgPWdk4LNm6jKie ECibWrFHFWwfKOq9ys/uTpWI/l+6vzxKkGy/9CqTck0oI9bA71O959LtmZZGkZ5ZNknQ 9fdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Q+1FskWEfVP2qkS2u0xMa13LiikyungGOF9oLaYHH58=; b=JGytQ5LntLwTczHiynXofSmg3JNEpCmG1rRH141cJ7/U6yyTHzm3rpTc0NO4Q5UbzK M6W+xR2YX1qiwgt2Eab17LRrLYPTglfsu4dOTB/+2ciyhBDZHwqE9O0+QAY3HSe9CLJF QUQ+zmLli0ytk3ASYuRpbpsBDlIQ9RIe4X+R0UB39DKY5gIlNLkQTRutFimSL2vVJsrP xLQ6v/nHliczwfQYjV+sw/dHKEBCTuz9LMYGgOTOKYGdiPUt8gW6M09LmIamHjKaFtI1 Ex0Fw64acALAN/lPZXDtVUdyYcN+tbFgYuy2N/ZvSukB/wE/xUurO0S+EZauxk9FPLJd z3Hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z80-v6si9320823pfi.7.2018.05.19.00.08.34; Sat, 19 May 2018 00:08:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750955AbeESHIX (ORCPT + 99 others); Sat, 19 May 2018 03:08:23 -0400 Received: from mail.bootlin.com ([62.4.15.54]:40780 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750743AbeESHIV (ORCPT ); Sat, 19 May 2018 03:08:21 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C08AD2072B; Sat, 19 May 2018 09:08:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id 989E9206F6; Sat, 19 May 2018 09:08:08 +0200 (CEST) Date: Sat, 19 May 2018 09:08:09 +0200 From: Alexandre Belloni To: Rob Herring Cc: Radu Pirea , devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, mark.rutland@arm.com, lee.jones@linaro.org, gregkh@linuxfoundation.org, jslaby@suse.com, richard.genoud@gmail.com, nicolas.ferre@microchip.com, broonie@kernel.org Subject: Re: [PATCH v3 2/6] mfd: at91-usart: added mfd driver for usart Message-ID: <20180519070809.GB23730@piout.net> References: <20180511103822.31698-1-radu.pirea@microchip.com> <20180511103822.31698-3-radu.pirea@microchip.com> <20180518221949.GA13443@rob-hp-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180518221949.GA13443@rob-hp-laptop> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/05/2018 17:19:49-0500, Rob Herring wrote: > On Fri, May 11, 2018 at 01:38:18PM +0300, 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. > > > > Signed-off-by: Radu Pirea > > --- > > drivers/mfd/Kconfig | 10 ++++ > > drivers/mfd/Makefile | 1 + > > drivers/mfd/at91-usart.c | 75 ++++++++++++++++++++++++++++ > > include/dt-bindings/mfd/at91-usart.h | 17 +++++++ > > 4 files changed, 103 insertions(+) > > create mode 100644 drivers/mfd/at91-usart.c > > create mode 100644 include/dt-bindings/mfd/at91-usart.h > > > > > +#ifndef __DT_BINDINGS_AT91_USART_H__ > > +#define __DT_BINDINGS_AT91_USART_H__ > > + > > +#define AT91_USART_MODE_SERIAL 1 > > +#define AT91_USART_MODE_SPI 2 > > Won't this require a DT update for serial mode to add the mode property? > That breaks compatibility. > If the mode property is not present, it defaults to serial to keep compatibility. -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com