Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3630356yba; Tue, 7 May 2019 04:38:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt75dG0SA9VBJiOx8k8giAYD9pWa3CVBf2IxsIQH9/uR/bJCLrHSh64woaM7I5B8Ejb0z+ X-Received: by 2002:a63:f146:: with SMTP id o6mr4722503pgk.179.1557229120819; Tue, 07 May 2019 04:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557229120; cv=none; d=google.com; s=arc-20160816; b=EXX6UsV6+vmJbUi4UGafsZwNaIj4CoYfWBRpVQPcftVwwx/YzJrW66Uc7hYZwNvRud fz6dDw129LGeJbDegv1HmtdNFfJflK9lCWxPTdKGufy3qM+497vnciuQudmo9khJGBYY bcNo/+YDthznWhMVll07JM98VjCawAdnFqBwlpwSiG2ebsPfpN1c4WHALQpB9Lko40f5 Ed+7OGLeuvaHi7bFlaSKnqol4JvxyW3pKzwAJz5UZLa21g3NqwMyS2JtyDAGNv67VUQa mKESLOPohncvfKBfHAmfsTaqCJso27SzMYnHdYG2kjlFxyE4wTtPGkD6P/1gp5kJS6xu wnog== 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=Uh3f7qnRbSQQXQkMm0s19BuoSqf0wRLQse1bOkuUKK4=; b=hJbvOjiCgrYhUVaJPMT4PK7UrEWFqfY6l0Mqt82gUoWfghCtDs5CxE0V+GUDmPpDpz OajShF7RDoyVgO1QZADrQG0Hx0cF4ugftPE99YU08fJYrOBmhzNEGBp4AhQzoWxNkU5W I9XBT5E9w7iI/acV1xczMeiUeOt/oLPlR8b6kyFNc/SXxspBM9eDZ0RW7mV9P2lq0UeZ u68TjNcSgtVaZkTs1XSMMsg0N087mwD6OB47CODWXfzQ179l/UHhKDZslAVM9e6zS7RW uktfBFgjh6i3XyDoZeMr1xrcQdPVHjAX/6HvUdfsojZ09vd9PUFX0GrouZIcBKIc6cKJ +NuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@haabendal.dk header.s=20140924 header.b=Grhq43zg; 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 e15si18542051pfn.31.2019.05.07.04.38.25; Tue, 07 May 2019 04:38:40 -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=Grhq43zg; 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 S1726521AbfEGLgB (ORCPT + 99 others); Tue, 7 May 2019 07:36:01 -0400 Received: from mailrelay4-1.pub.mailoutpod1-cph3.one.com ([46.30.210.185]:21954 "EHLO mailrelay4-1.pub.mailoutpod1-cph3.one.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbfEGLgB (ORCPT ); Tue, 7 May 2019 07:36:01 -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=Uh3f7qnRbSQQXQkMm0s19BuoSqf0wRLQse1bOkuUKK4=; b=Grhq43zgaue0On9gftW7qUtepFq7wFqh+NFFWeBHc70giS3ymHNBOEJ5rauaVsT3JU3s3ZhXnDAlw XwHNudsR3VU4yi8ZHoTTHDy4yld5B+unu8JLqMbDkewSaSZOOsD/6sRglaAJRGElsGQH/0Xg+AwXcQ 9W1PiOX7GOxXNSH4= X-HalOne-Cookie: fac621c1e4a6af216c8d436403609853b7145ede X-HalOne-ID: 486930ec-70bc-11e9-a343-d0431ea8bb10 Received: from localhost (unknown [193.163.1.7]) by mailrelay4.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 486930ec-70bc-11e9-a343-d0431ea8bb10; Tue, 07 May 2019 11:35:58 +0000 (UTC) From: Esben Haabendal To: Lee Jones , Andy Shevchenko Cc: linux-serial@vger.kernel.org, Enrico Weigelt , Greg Kroah-Hartman , Jiri Slaby , Darwin Dingel , Jisheng Zhang , Sebastian Andrzej Siewior , He Zhe , Marek Vasut , Douglas Anderson , Paul Burton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] serial: 8250: Add support for using platform_device resources References: <20190430140416.4707-1-esben@geanix.com> <20190430153736.GL9224@smile.fi.intel.com> <874l6efxta.fsf@haabendal.dk> <20190502104556.GS9224@smile.fi.intel.com> <87pnp11112.fsf@haabendal.dk> <20190507093239.GB4529@dell> Date: Tue, 07 May 2019 13:35:58 +0200 In-Reply-To: <20190507093239.GB4529@dell> (Lee Jones's message of "Tue, 7 May 2019 10:32:39 +0100") Message-ID: <87sgtqjy3l.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 Thu, 02 May 2019, Esben Haabendal wrote: > >> Could you help clarify whether or not this patch is trying to do >> something odd/wrong? >> >> I might be misunderstanding Andy (probably is), but the discussion >> revolves around the changes I propose where I change the serial8250 >> driver to use platform_get_resource() in favour of >> request_mem_region()/release_mem_region(). > > Since 'serial8250' is registered as a platform device, I don't see any > reason why it shouldn't have the capability to obtain its memory > regions from the platform_get_*() helpers. Good to hear. That is exactly what I am trying do with this patch. @Andy: If you still don't like my approach, could you please advice an acceptable method for improving the serial8250 driver to allow the use of platform_get_*() helpers? /Esben