Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6078826yba; Tue, 14 May 2019 01:02:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKG6DOVJ65XviI8/xNMNoTpU2HBetYZg3p7EUnJHUqfIkQ2o6aGMKsr/jDbrfoNTwKhAsn X-Received: by 2002:a62:5e42:: with SMTP id s63mr37676308pfb.78.1557820962685; Tue, 14 May 2019 01:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557820962; cv=none; d=google.com; s=arc-20160816; b=mQWltzAkX3fiB2SDVXqL8J7Vtivu+g3qpFVbRgzqsqyTzNXw2+WnAkGBnvMYGGZ3r5 I+oKUBEBWXweVgCs9VQZg5K7sn0TEEp+gl/0PHuIuGW+LSTZwbAhQbE/ALpdYBIBFdh9 iD8Ta2WgIWVoG2u2GJNXeaH8RZQmv40MRla3Pat4dBy+uy4xjAk0kZrCCNtF3OlTZLAS HvravkMEXykn93rNTWAlJOmAg1KdM3BsEaxKMvP/QCn63ALc6T+PCa747VburPk3wSIu j/dDqqqdr8mUjNQSXDVpLmgIrRIoDgyNayPN65Y4aJOxVbaMqvIxJcxDpbcgi24x/gFL VJ3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dkim-signature; bh=QlmDVaRpqxxukroinxw3TPJxyM76gDhPC9ypTGUAIq4=; b=GpW6zF3JxHhUnsxgbhK1OBN6Wr/pJWoQ8FFaHo79s8IOFfvEfHFLBNnA8Y9d4NRg2Q 2jVeCBKec5SX5v7ePFgcy+wMBqSs0zmkkEJDuu/QJSW/8mYZKjluLkyW6NMc11tUHk8V gN6IJqCD7lUpYdnCWLlk1nxryVGW5GvBrTgjel/cQ9Ob/XcvXphSwH7aK5ztCoG/Z1wL LUbiNkqHK81W6B01d7l0TOi1ogoqwn3pG8Cx8YhlpIVXqoWt2OYml19tYIOXdY9GX/VV uiY5KfiwBKVHkqJPrjfcBFaR9biwWFN9eKIuQq9ooHt22SWxxX/RRYJ+bVF0prY96Yeu IAdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@haabendal.dk header.s=20140924 header.b=xtQ7y135; 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 t10si12745328plr.177.2019.05.14.01.02.27; Tue, 14 May 2019 01:02:42 -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=@haabendal.dk header.s=20140924 header.b=xtQ7y135; 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 S1726348AbfENIA6 (ORCPT + 99 others); Tue, 14 May 2019 04:00:58 -0400 Received: from mailrelay4-1.pub.mailoutpod1-cph3.one.com ([46.30.210.185]:27243 "EHLO mailrelay4-1.pub.mailoutpod1-cph3.one.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726007AbfENIA6 (ORCPT ); Tue, 14 May 2019 04:00:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=haabendal.dk; s=20140924; h=content-type:mime-version:message-id:in-reply-to:date:references:subject:cc: to:from:from; bh=QlmDVaRpqxxukroinxw3TPJxyM76gDhPC9ypTGUAIq4=; b=xtQ7y135cx8t5EkkC0nUAPWeX3hcy1sfumg5qyLt2aA9a9M++qdmephxzHIhiMEhFD94mRNcfx9sX 4MXCDOxNMX9nGm6X1cqXH8j0Uxuu8N6EqYOi6n4DUf99ec2AwhTszry9zU96x/QoC0dvMiKybErnpD P9tqCsoxK3hee0nA= X-HalOne-Cookie: 3c078f0ae0e520a51c24966b95c318af61496e8f X-HalOne-ID: 664b6b39-761e-11e9-abc4-d0431ea8bb10 Received: from localhost (unknown [193.163.1.7]) by mailrelay4.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 664b6b39-761e-11e9-abc4-d0431ea8bb10; Tue, 14 May 2019 08:00:55 +0000 (UTC) From: Esben Haabendal To: Lee Jones Cc: linux-serial@vger.kernel.org, Greg Kroah-Hartman , 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 References: <20190426084038.6377-1-esben@geanix.com> <20190426084038.6377-3-esben@geanix.com> <20190507114905.GB29524@dell> <87o94ejwrx.fsf@haabendal.dk> <20190507133844.GA6194@dell> Date: Tue, 14 May 2019 10:00:54 +0200 In-Reply-To: <20190507133844.GA6194@dell> (Lee Jones's message of "Tue, 7 May 2019 14:38:44 +0100") Message-ID: <87bm05mpmx.fsf@haabendal.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. I might have to do this out-of-tree :( /Esben