Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3658042yba; Tue, 7 May 2019 05:07:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJPhJM2I/meyUXVuKfndnqXs1jYavh6SlP9iLDB8ECLTww+KrrP6Cq8CKpow3vNa3940qa X-Received: by 2002:a62:6d47:: with SMTP id i68mr9472340pfc.189.1557230836923; Tue, 07 May 2019 05:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557230836; cv=none; d=google.com; s=arc-20160816; b=N64kq8JpnowSzhqVoNTDpYL8SB+QqNzzW+DWowmaz74j6JGNhc2Q8Lz2qBMscqDAPu 2PATc0IDv7F/bmCDQ0hCTS0Pnk68sxkBkkviILRzIzI99Krh6TUDcNQ1deiF+v8p3i+T WnWthyanpDdKCRjkmm/vslFKKX+HR/E2wcF8YMZMYfzBjD7nMd6u6CfyhEY4o7DtkSwI EIBRH0VXf4AaDCfOMSY4ozDYSVbPWhbSBUwekJ1ttYbCTPNw+zIyrlUaQLEacbE2Htx8 fd2t6ZXpgt+tl+LE49GNFazPzDboxzKB5CjmfrgwoTtyihBthCg4gfsWXmVt9YzQtSda YM3g== 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=c2VlK3MM/wgPOjvoDCLj1og4pjEnPybpBDaxjchOxpE=; b=NI4NbocdWDzOkYxnjLh5irO1rTA8+qLqia3GAxFC4b5RTLVwJcZa4UhWvkHlzL6+WN bW1U7OzDeRU8I8d0eaBDIaxamTom4MmFUzrCxHXYsE/5GVoVSL63sA9AcIemcrFD6mFY kDlQpO5FSQX87ng4AvY/Od62zYRG62DdaANkpL2D75ShXexVPr5oYgXK1VAF5TOXMcwV JE0mSyJrFk54XvOaD9Qoq+uOBed/PvsOhSD7HXMtW3xRyhhJF76QET1Rg0YqKsmSuH9O 3nY/5hEQb8diwudrDdUBHs188YG1o9Rt38KGHB1aReYvhoAjgNtXzSf6c7bSx/P/XfXH PIzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@haabendal.dk header.s=20140924 header.b="H/VtEJDA"; 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 u196si1364008pgc.444.2019.05.07.05.06.59; Tue, 07 May 2019 05:07: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; dkim=pass header.i=@haabendal.dk header.s=20140924 header.b="H/VtEJDA"; 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 S1726516AbfEGMEh (ORCPT + 99 others); Tue, 7 May 2019 08:04:37 -0400 Received: from mailrelay4-1.pub.mailoutpod1-cph3.one.com ([46.30.210.185]:44846 "EHLO mailrelay4-1.pub.mailoutpod1-cph3.one.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbfEGMEh (ORCPT ); Tue, 7 May 2019 08:04:37 -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=c2VlK3MM/wgPOjvoDCLj1og4pjEnPybpBDaxjchOxpE=; b=H/VtEJDAcgCLvhq48Kp5YfMM8XwcJvQ7PdURzx7A7qDlg5fuiwSrykpzCJ72NPSUsaKenNEYSGAmf eqfzULm/WvNyD91pOl+iQ48hraRQxX+zP68Zjo+lXCi90RffXgLrFexURbl1OiOSbA72hqhhYuCPPc IancKGmZ39YCTSnE= X-HalOne-Cookie: 28a63f102c7a92420db1d78ee04f8d6f20dc165c X-HalOne-ID: 47378af4-70c0-11e9-a343-d0431ea8bb10 Received: from localhost (unknown [193.163.1.7]) by mailrelay4.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 47378af4-70c0-11e9-a343-d0431ea8bb10; Tue, 07 May 2019 12:04:34 +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> Date: Tue, 07 May 2019 14:04:34 +0200 In-Reply-To: <20190507114905.GB29524@dell> (Lee Jones's message of "Tue, 7 May 2019 12:49:05 +0100") Message-ID: <87o94ejwrx.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 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 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. /Esben