Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6302026yba; Tue, 14 May 2019 05:27:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmS4M96jlJDtrUgdsgpkKSRTQYY+zpW3bcCVVZJTSO4UvHl4bCcwAD53uKIauTRmqbQKT9 X-Received: by 2002:a63:f712:: with SMTP id x18mr38533675pgh.293.1557836863208; Tue, 14 May 2019 05:27:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557836863; cv=none; d=google.com; s=arc-20160816; b=xLGg6wV2qwWJdBdKuyZD9ypLZLX4sOCW9Yjjyd3AGa0b28KAXS9bZ/1K/bkVzuDiuT Wqdo4zwBnu5fKCpzGXeunxaselOsRUDnxLlpR1gWB0ivfPM/4FX6e5VpZHQ+7ZzHdyce Ycr300GZw/+XJMuQ/8Zi0IzfQCAD0jbIaw4ETsyoeAO8wfHrnF1eLLg/mDUOpx30vD6v BbFrXq5gvU9XvZeOYeFoaidaaLEjhY2xtP0E1US22+ygw/RY8ppoMPfQhMYYs3o9Z7yp UakYGx3wBYciiQ5X5JJ6J/dVpS6M9HBB5USanOE3xP4+0gGmmjeMCZwi2IloehK6qEqU 9l1g== 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:dkim-signature; bh=Go/AuelEaNrhklSqusrSuYuAuvtw5PtkmbXH8EkETlY=; b=CbhrdCSnsmvcwHgw7KMU2qYCm+9JgOHvPoLKl2uHw8KT+Q37LcOaIxx1JIsDtJsfHm yqOjSVdFS44pVspZKjLhNstFtgiMoJcP+LwZcv1IfMKw3Aa+AtK1yWDpw7ZIkvCSA+5B olaRzXEvizEa4HPGme3+QPH4JJx4B4qL5LX2KQRnShK5HCT0NfgxQ2e9HtbgxudwCovx MaHGt3sZ1vrzmXwB1M739TCFwfhRfzN2XBiy6d8iSwNeYYn9vqXZdUCvETW+7LmYxrbR rD1443Ng/vUVr6MPgELroe60+FFDjGer1BSIU+E0vPR/3gdttm8YBEfjLQ8qyH0REfHd lgMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T1KVaVow; 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 33si19437664plh.3.2019.05.14.05.27.28; Tue, 14 May 2019 05:27:43 -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; dkim=pass header.i=@kernel.org header.s=default header.b=T1KVaVow; 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 S1726369AbfENM0W (ORCPT + 99 others); Tue, 14 May 2019 08:26:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:55614 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbfENM0W (ORCPT ); Tue, 14 May 2019 08:26:22 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9F22F20850; Tue, 14 May 2019 12:26:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557836781; bh=hDe8JK/intQfOgS2b4KY347OHuGJn9Hop4XrcrgRJvA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T1KVaVowgWw/jLckCJWk4UztYLZ0Ux/jCD/9flMC0t2Jk/t9M56poFrSMtBpPoYFn vg5DtXUjI0lD4jyBccSrRNNMRSzAh72MLdhnbv2epiWCt8rVomQ+u5dGXzyy/2OuNo TjTQbJHvVg7bZBP+QHf5JJJXgrb+Z8GUiNIBlwA8= Date: Tue, 14 May 2019 14:26:18 +0200 From: Greg Kroah-Hartman To: Lee Jones Cc: Esben Haabendal , linux-serial@vger.kernel.org, Jiri Slaby , Nishanth Menon , Vignesh R , Tony Lindgren , Lokesh Vutla , Florian Fainelli , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] serial: 8250: Add support for 8250/16550 as MFD function Message-ID: <20190514122618.GA18859@kroah.com> References: <20190426084038.6377-1-esben@geanix.com> <20190426084038.6377-3-esben@geanix.com> <20190507114905.GB29524@dell> <87o94ejwrx.fsf@haabendal.dk> <20190507133844.GA6194@dell> <87bm05mpmx.fsf@haabendal.dk> <20190514104741.GO4319@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190514104741.GO4319@dell> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 14, 2019 at 11:47:41AM +0100, Lee Jones wrote: > On Tue, 14 May 2019, Esben Haabendal wrote: > > > Lee Jones writes: > > > > > On Tue, 07 May 2019, Esben Haabendal wrote: > > > > > >> Lee Jones writes: > > >> > > >> > On Fri, 26 Apr 2019, Esben Haabendal wrote: > > >> > > > >> >> The serial8250-mfd driver is for adding 8250/16550 UART ports as functions > > >> >> to an MFD driver. > > >> >> > > >> >> When calling mfd_add_device(), platform_data should be a pointer to a > > >> >> struct plat_serial8250_port, with proper settings like .flags, .type, > > >> >> .iotype, .regshift and .uartclk. Memory (or ioport) and IRQ should be > > >> >> passed as cell resources. > > >> > > > >> > What? No, please! > > >> > > > >> > If you *must* create a whole driver just to be able to use > > >> > platform_*() helpers (which I don't think you should), then please > > >> > call it something else. This doesn't have anything to do with MFD. > > >> > > >> True. > > >> > > >> I really don't think it is a good idea to create a whole driver just to > > >> be able to use platform_get_*() helpers. And if I am forced to do this, > > >> because I am unable to convince Andy to improve the standard serial8250 > > >> driver to support that, it should be called MFD. The driver would be > > > > > > I assume you mean "shouldn't"? > > > > Of-course. > > > > >> generally usable for all usecases where platform_get_*() works. > > >> > > >> I don't have any idea what to call such a driver. It really would just > > >> be a fork of the current serial8250 driver, just allowing use of > > >> platform_get_*(), supporting exactly the same hardware. > > >> > > >> I am still hoping that we can find a way to improve serial8250 to be > > >> usable in these cases. > > > > > > Me too. > > > > Unfortunately, I don't seem to be able to convince Andy to accept > > something like that. > > Andy is not he Maintainer. > > What are Greg and Jiri's opinions? I've been ignoring all of this at the moment because of the 5.2-rc merge window. I'll look at it after -rc1 is out. thanks, greg k-h