Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4220383ybg; Fri, 25 Oct 2019 15:19:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxETwSJcdfne7hE82/CMpr0JskAaxobppBc135mrCcBsN0o9yupAKWbaskEPbgoixMpjUMB X-Received: by 2002:aa7:cd43:: with SMTP id v3mr6467386edw.235.1572041955045; Fri, 25 Oct 2019 15:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572041955; cv=none; d=google.com; s=arc-20160816; b=vv40HD7/i6hiHFHw+4XwCPPW2hYqPyRy3sVzG4WTWJybh2C//40wF7XZWOTPa8pxAo Xt9foERcPuWveMa/wbIHi7zqwVHG5iZUZmR5Q0+AkfDFIXX5YR7gU333e5VuuCELdf75 WecZCbKZ9cJZCJacNef+PvaHa3GR9veuUpmvbp5LhmGJgQFfRmvp3VkDv4rkRkhue1P3 z5LbDRDDAM/u1YY5NPip/d3T/eNE9rq3TNQrsanRrmEdCOBChgV1hnwj1JE/wRw/pSHY oBB8vXLienTOxvN6EXm6jNwaVgqrUnXhC9chPv7SXBraP5ap1qM8apqHzKipLZ7sjCdm Bx2Q== 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=xvMV2lTjYYndNFlZSogoRJwtCYarX8hEWrKlnNonIDs=; b=bUkE6RgFpQhPTeIWoNTsRZE1OXnb84C9vnu3FLcMYeyTbOuXQqX0oBjSI+DI2TcJyE VeIYcUqau9qw1IqfoSPyzMWuhU34bEIAxOQ6Ehr5B6N85rj/8feuCOsuIByhWS8pW6sT zLXFWTEDgV9xzLJ2q0DP8v+oWozAZCu0/cbGdQ9Jyd1S2oN30WUZfhcz1QnsJuwlX088 BNjM+M60XeELFZtGuXVKbr6N6y9NODmlmv0uosmC6YzcNnb/0EHnRRWhJfKHAnPxBKVg ks4WUHlqnBBZ/pevNvqv1U2BZBun//we6SUyTHQLPvCk76wc88TAk7heELw4ipxanhDo qeOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LlMstyT7; 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 s58si2311202edm.45.2019.10.25.15.18.51; Fri, 25 Oct 2019 15:19:15 -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=LlMstyT7; 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 S2437978AbfJYIx6 (ORCPT + 99 others); Fri, 25 Oct 2019 04:53:58 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45115 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437783AbfJYIx5 (ORCPT ); Fri, 25 Oct 2019 04:53:57 -0400 Received: by mail-wr1-f65.google.com with SMTP id q13so1322740wrs.12 for ; Fri, 25 Oct 2019 01:53:56 -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:in-reply-to:user-agent; bh=xvMV2lTjYYndNFlZSogoRJwtCYarX8hEWrKlnNonIDs=; b=LlMstyT7/QZxxzLumyNdWSE4VwJmLeiAJrHURYPRQYk+cOdjDqJfKsnoCmT+v8xm6T evnmfoUIP39tkx3GIlIGiVAlfuz3340MObs713msmAEsr83J966V0DegE6U8pjmP1GKi BSqW5ujuWiU4bEWreWy9sQoDI6ZDinL/RepAVENyIAFBXN+vbdmNNVQxYODcTjbwOsQ+ 91jghmO/SpJqnVe7KUhKNb7olJLtZM1RbZ0V27EQaz+qtHAkc2MDXdRlEs1DOfYZds5Q 2SKx/FA6608fZbgAqAJkhR/hzhlLAPR7z4CiqLp12GPCQeZoDePfrU3q4reKdzCT9ybB pM9g== 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:in-reply-to:user-agent; bh=xvMV2lTjYYndNFlZSogoRJwtCYarX8hEWrKlnNonIDs=; b=NaDgAwWxwOZaRQzp/zifE/aXtJv8Y+WZWs5Ed+o/WtRIPrEjO7LhthO1q6RZRyxQVg 1jv6spKzXawycCiiZWBxPx953dw4uH07XOV0VyQiYJPev7lpwBXZO9c476pM5K7IwSa/ IRF1C4c9a+1pqwPDYqTImKfcixAVuUSln5urJI6jRC3wUm8DdnbNELVoucvRwNYiIk2j ThImonZKLqRYqu0P6GnmaqGb/hzzeqKfhfwfv74n2lyTGZ4kdBQdou1VngbHeSFWO41z 47Tdkiw7xhHNVmn43SoBHgdEGYUXY+Zg9T9xn9eVrG3bj46lGYeRY1rrVlFK2ak09jng Yy+g== X-Gm-Message-State: APjAAAU2748MN6o3RbTekkt2Ww7CpLWLjFYO19oejMbhm/VlnH0/Luto Pk+LLmN7I6qxDugllWhNgw6kwQ== X-Received: by 2002:adf:bad3:: with SMTP id w19mr2041099wrg.17.1571993635508; Fri, 25 Oct 2019 01:53:55 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id c189sm1479227wme.24.2019.10.25.01.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 01:53:54 -0700 (PDT) Date: Fri, 25 Oct 2019 09:53:53 +0100 From: Daniel Thompson To: Lee Jones Cc: arnd@arndb.de, broonie@kernel.org, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, baohua@kernel.org, stephan@gerhold.net Subject: Re: [PATCH v3 06/10] x86: olpc-xo1-pm: Remove invocation of MFD's .enable()/.disable() call-backs Message-ID: <20191025085353.c6o63ed54vspjxzh@holly.lan> References: <20191024163832.31326-1-lee.jones@linaro.org> <20191024163832.31326-7-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024163832.31326-7-lee.jones@linaro.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 24, 2019 at 05:38:28PM +0100, Lee Jones wrote: > IO regions are now requested and released by this device's parent. > > Signed-off-by: Lee Jones Reviewed-by: Daniel Thompson > --- > arch/x86/platform/olpc/olpc-xo1-pm.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/arch/x86/platform/olpc/olpc-xo1-pm.c b/arch/x86/platform/olpc/olpc-xo1-pm.c > index e1a32062a375..f067ac780ba7 100644 > --- a/arch/x86/platform/olpc/olpc-xo1-pm.c > +++ b/arch/x86/platform/olpc/olpc-xo1-pm.c > @@ -12,7 +12,6 @@ > #include > #include > #include > -#include > #include > #include > > @@ -120,16 +119,11 @@ static const struct platform_suspend_ops xo1_suspend_ops = { > static int xo1_pm_probe(struct platform_device *pdev) > { > struct resource *res; > - int err; > > /* don't run on non-XOs */ > if (!machine_is_olpc()) > return -ENODEV; > > - err = mfd_cell_enable(pdev); > - if (err) > - return err; > - > res = platform_get_resource(pdev, IORESOURCE_IO, 0); > if (!res) { > dev_err(&pdev->dev, "can't fetch device resource info\n"); > @@ -152,8 +146,6 @@ static int xo1_pm_probe(struct platform_device *pdev) > > static int xo1_pm_remove(struct platform_device *pdev) > { > - mfd_cell_disable(pdev); > - > if (strcmp(pdev->name, "cs5535-pms") == 0) > pms_base = 0; > else if (strcmp(pdev->name, "olpc-xo1-pm-acpi") == 0) > -- > 2.17.1 >