Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3522767yba; Tue, 7 May 2019 02:38:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8+S5rE3orVX8kvb2NLHBooraFFzW9HHAjn+dJ6qpCYSvgTjHy0jbnVdWENGhppcxgsuzS X-Received: by 2002:a63:1820:: with SMTP id y32mr38481134pgl.287.1557221919267; Tue, 07 May 2019 02:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557221919; cv=none; d=google.com; s=arc-20160816; b=qWlNRI/Yw0lwgTBHuAW2JVLqKVZNiUyJ6JjIteGFnQcWRAlfh0ok3nmiQnVU8V/zqy UvKlxEDYOIYplgcPLxBsSYHQFYdPB60qHN4L7UBM5PMoVecH9e23aVzPMeO/e9Mw2cCE 086hP49BzTTK9Y4gkYI2YE7t3mGnFo3jo/os3HpNKgMyuvGEgsJGQQLdXv1JoIO9TUf4 ObxXPuyD7za5k8G0sf3fktYGEypV/vM/TD2dC1ifyvDeRkSSk9U4RBVc7U5SblqWn64t ueDRuqrqtiZeBYV7IMVVrPPOMBn/vQyHw3MGTG7/5+gGnzCtIqlat4SfmoAVyiIWPIRm d6YQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uE2M2CQ9LEuDMyLV2Q+GshWDt/l2YHXSXQ5t4J55xgY=; b=C5c9I/0evimksqkhclICqX/LhlwV1rgUbYaTwfvm4ob0AUAuzlb87wxV/SRAiCsubu qLiXGhaqXZvPRqBdzB9qEuCl888UGb/m+1zgxWpOf7b+gE8eOWToIsXkTBcHahp39++n 17n+GbPGPFGIsg1anK0X6Co+ZnPx3BUsfr2yuHcpzZCwVj4NfZYarcpzTIY9CRrM3UiX 9C9H9AJJz71gSQYEH4hN1eRV21bZ3q9JX04lkRPMfMGZM9d7CXAPwNMqwf6KJ0pe9Ksc Zvl1cIRG/SOABr/wmLtMrxHX6TDmx7YsbYHQbWrdTD1G4FZ82L51xiUHhiBCfm4tfcg0 kX8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Wj2bf/uK"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s184si18775813pfs.275.2019.05.07.02.38.24; Tue, 07 May 2019 02:38:39 -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=@linaro.org header.s=google header.b="Wj2bf/uK"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726814AbfEGJgg (ORCPT + 99 others); Tue, 7 May 2019 05:36:36 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54104 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbfEGJgf (ORCPT ); Tue, 7 May 2019 05:36:35 -0400 Received: by mail-wm1-f67.google.com with SMTP id 198so1680720wme.3 for ; Tue, 07 May 2019 02:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=uE2M2CQ9LEuDMyLV2Q+GshWDt/l2YHXSXQ5t4J55xgY=; b=Wj2bf/uKutxHgePbEwCm/tSEl5nTHc/d1jQ01aLy4a1bgY3TnNnzSoKnDu1BVBSEQS NAPWhrSCEN7tbUau6BJ/7oDUqzYfRrv9QrKsL1feb32CiEw4eksR/TTIXvanaFNRv0Sl GYmqFXJIFm8zUoxIGc7cjMW93Xtu8aOT4eDYXyRB3428f54qbjrLRtrZIgoj7SRE33ya FEWSJiTYuiaZSIy+6rmyKPDSc0dxYsQAAHQ/LNWg1fksvkJVgiT/EbTzblQ6J89vajSI aN9/mA6t+zlX4seZxy0ABrQJY74OlFPKRP2Lh2QrXlxqB4838ynkZrk3piuByPLhtSBI DSoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=uE2M2CQ9LEuDMyLV2Q+GshWDt/l2YHXSXQ5t4J55xgY=; b=R35Jxr/2td6WVcQPhGE/0Vx1KwLNq0zujG1IeVu68w2sYCnSd62ESE95dTEEvfbGxn AOXOSQeguYXEYRxPo16x1q32w1xchiD+UsNgEg3Vik/tPWO70UYqKctQj2rJt9iHyZI5 9b0e3Kf0k4OeCgVT8IKKo/MUwA8I37puU7hKDeXkRV8OHGuWAhBXiIsaaURM96D05J3V /mrkclDeviGzoO06sxbBDYXObppNuHw8KxeFHvaDv5lFAFVAC6IIN0cte7V1K0wRJyPo Se3m7FKNGP8YihgXq/swmy+FQop9cHZoToToaUyVGHfvdSKA1JbcV1ZDYygTCicSk5b+ JNEg== X-Gm-Message-State: APjAAAWkggOZQsSI8PvGV+1FKtdao4wTNOIrMlyX+wvn0SuG3xXqiD9H QeITIHlL5OCXpkmQqcMom8x/qg== X-Received: by 2002:a05:600c:224d:: with SMTP id a13mr19466090wmm.25.1557221794073; Tue, 07 May 2019 02:36:34 -0700 (PDT) Received: from dell ([2.27.167.43]) by smtp.gmail.com with ESMTPSA id o16sm18967073wro.63.2019.05.07.02.36.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 May 2019 02:36:33 -0700 (PDT) Date: Tue, 7 May 2019 10:36:31 +0100 From: Lee Jones To: Esben Haabendal Cc: Andy Shevchenko , 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 Message-ID: <20190507093631.GC4529@dell> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190507093239.GB4529@dell> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 07 May 2019, Lee Jones wrote: > On Thu, 02 May 2019, Esben Haabendal wrote: > > > Hi Lee > > > > 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. Not sure which device you're trying to enable, but if it's booted using Device Tree, you could always use 'of_serial'. It does seem a little odd that the 'serial8250' IP block has been incorporated into an MFD. Which device is it you're trying to enable exactly? > > In my understanding, use of platform_get_resource() is the right thing > > to do in order to integrate properly with with MFD drivers that splits a > > common memory resource in mfd_add_device() using the mem_base argument. > -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog