Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3824101imm; Tue, 11 Sep 2018 02:40:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaFYKviHoYHTbhCAs+yaxLORFmwbAGHqVwi/GHOsJG9KkR8jHXH/GO1ZqDeA5QiaaZrgJO5 X-Received: by 2002:a63:1865:: with SMTP id 37-v6mr18109421pgy.81.1536658816156; Tue, 11 Sep 2018 02:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536658816; cv=none; d=google.com; s=arc-20160816; b=dekDSB3orUeRuB5RxuWdpGigbVkGqIh77xjV5TVU2yPrY5vOQQ/nrzIil64XVY9He+ ECoNxL1WKQo39pG+8kCIL3dbtOdQOtZtsgCR5J1gCbsz76ARTJ4QKB8wxor5B71auEK2 NHfXcF1AXqi8Ehbx1PcH6zO416BAoxlhJwzaFaVQ0MaQA/3NHfDbgfqhLofqSRehbs8Z GZjXA6YNYDElsyBW2T/H3plaBe8ZDGiYzoa4kOx7gxh4eLU1X1ieNjrQ7OtYTEggquDf ZRxtm6le9YJG5FqGuEBl0+fefa2NxnGvBYdbxLjgQ1OPj73JvnCbLWEkYEWOkoTfl15s Y5Vg== 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; bh=ZPuN3mwJlgCojPuVC5ap2uYtxC8GmGOFaDDAkiDzECw=; b=APPZftbxMGCnE063n2EFZCTpIIWsICI28GJKoZbM7MhMgANzi2q09QUdeoVQRYPJB4 dtPJME+/W+uQaJ8U7Zu1ESxiO3ZZjePp832E7bS1cXWpf4in1K/9H5hjwEJp8qbtte3x 5gNumELubYg6yLGtHhF/2ouqaoSCNLe14vYqml/fFlF8qyfdb6OLNliLK69bs0QI/XLQ TbbpxXc6jfGlfTL9oxnvneBfFv9jEkcqjBGz6KfTVYGu2VL/IB7pbLLP+kzpFNixUqkP pNuxWYywUM347SCyiqNhDurqOJFbozOPPRfpqjVlVjKNs2D8w62pPybcwNYS9VEQvdbc gH+Q== 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 1-v6si20048932pfu.79.2018.09.11.02.40.00; Tue, 11 Sep 2018 02:40:16 -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 S1727246AbeIKOiA (ORCPT + 99 others); Tue, 11 Sep 2018 10:38:00 -0400 Received: from mail.bootlin.com ([62.4.15.54]:41592 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbeIKOh7 (ORCPT ); Tue, 11 Sep 2018 10:37:59 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 3744F207CD; Tue, 11 Sep 2018 11:39:28 +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 (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 0B4D12072B; Tue, 11 Sep 2018 11:39:18 +0200 (CEST) Date: Tue, 11 Sep 2018 11:39:17 +0200 From: Alexandre Belloni To: Lee Jones Cc: Radu Pirea , robh+dt@kernel.org, mark.rutland@arm.com, nicolas.ferre@microchip.com, gregkh@linuxfoundation.org, broonie@kernel.org, jslaby@suse.com, richard.genoud@gmail.com, davem@davemloft.net, mchehab+samsung@kernel.org, akpm@linux-foundation.org, arnd@arndb.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org Subject: Re: [PATCH v12 0/6] Driver for at91 usart in spi mode Message-ID: <20180911093917.GL2494@piout.net> References: <20180904111310.4049-1-radu_nicolae.pirea@upb.ro> <20180911093356.GE4185@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180911093356.GE4185@dell> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/09/2018 10:33:56+0100, Lee Jones wrote: > On Tue, 04 Sep 2018, Radu Pirea wrote: > > Radu Pirea (6): > > MAINTAINERS: add at91 usart mfd driver > > dt-bindings: add binding for atmel-usart in SPI mode > > mfd: at91-usart: added mfd driver for usart > > MAINTAINERS: add at91 usart spi driver > > spi: at91-usart: add driver for at91-usart as spi > > tty/serial: atmel: change the driver to work under at91-usart mfd > > > > .../bindings/{serial => mfd}/atmel-usart.txt | 25 +- > > MAINTAINERS | 16 + > > drivers/mfd/Kconfig | 9 + > > drivers/mfd/Makefile | 1 + > > drivers/mfd/at91-usart.c | 71 +++ > > drivers/spi/Kconfig | 8 + > > drivers/spi/Makefile | 1 + > > drivers/spi/spi-at91-usart.c | 432 ++++++++++++++++++ > > drivers/tty/serial/Kconfig | 1 + > > drivers/tty/serial/atmel_serial.c | 42 +- > > include/dt-bindings/mfd/at91-usart.h | 17 + > > 11 files changed, 606 insertions(+), 17 deletions(-) > > rename Documentation/devicetree/bindings/{serial => mfd}/atmel-usart.txt (76%) > > create mode 100644 drivers/mfd/at91-usart.c > > create mode 100644 drivers/spi/spi-at91-usart.c > > create mode 100644 include/dt-bindings/mfd/at91-usart.h > > Seeing as this patch-set has caused some issues this morning, I took > the liberty to peruse back into its history to figure out where things > started to go wrong. I also re-reviewed the MFD driver - and I'm glad > I did! > > My Acked-by has been attached to the MFD portion since v5, which is > why the code hasn't caught my eye before today. I reviewed the > relocation of the *binding document* (serial => mfd with no changes) > in v4 and nothing else. It appears as though you mistakenly added it > to the *MFD driver* instead. This explains my confusion in v10 when I > told you I'd already reviewed the binding document. > > As I said, I have re-reviewed the MFD driver and I'm afraid to say > that I do not like what I see. Besides the missing header file and > the whitespace tabbing errors, I do not agree with the implementation. > Using MFD as a shim to hack around driver selection is not a valid > use-case. > > What's stopping you from just using the compatible string directly to > select which driver you need to probe? > Then you'd have multiple compatible strings for the same IP which is a big no-no. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com