From patchwork Thu Dec 5 14:37:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 180894 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp2056854ile; Thu, 5 Dec 2019 06:38:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwhgq57SVOFBx4eCjaQCQPqCQA7HT6EMNiavfocc0vLs+wdBlQQjN+tfsAz3iIq/N8ABz0h X-Received: by 2002:a05:6830:1705:: with SMTP id 5mr7078938otk.72.1575556686357; Thu, 05 Dec 2019 06:38:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575556686; cv=none; d=google.com; s=arc-20160816; b=fvQ7pqX/k1ilWt1tnfpxJUNjrbAshUDZrA7VaKXK1LQJRhcp0tbYcGWr8myQviyGfJ j9X8X9+nm8jezlZD16xewtZYR4UNRtg2UkI2k/qaqOgIX17BT/Bw7cXE9SY5ersVcYOF xetS+25eysY8I8/HfaanR7puZPN2+Bhu9Odj8l0RgzbKnKIHPnC095y2zxlejpo6H0IY C2LbN/EmPYiGG08tYBJC0i12cPHC66ThlR9s/xuCHCB6Y8+GxKjKpec+2lXuuODxA+7d jB8fqddNY6Q3N3c4ZHYlq43mzeMQKCrZzzkR65sJv2pbk/Pebj3/pj3wLKMbj80NdttQ ipUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=yV3GhPFmJytkxtEGQExTIppqC25xkrzPKeo9NSW2jNs=; b=gzygX/xKFhYqpiX4WtAUX9W+28aFiOKJcxZ8M+9jr6kXBRj10sUjsIXjcwr+49A3M5 T44DRuqVE6+zyc3XHAfR40JDdDSLk1GNs/4QFdwXQ8A9I96G0tQesq8yp/KGb13MD4iU 29lB0LHq3sMi5Y3d4beUeYD9y/Mj18qepBLyOeyTa0K2cd4MuOXckv37XGBKuhwZzdlw 7WaQONAJ6HBG/bmaqa0mBSGByonVHev+RleqkKZ6yZ0RhQgz0stYqeR+khuPz4RoqfsY e8uz7SYoUQNgCmCGZ0+KS9XdlPH6DpHMwU7q0q5t1JZdfUy7PnNPi1d7QK/5p9oLdmaA ZbbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rEnJa1eg; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 g5si253585otj.58.2019.12.05.06.38.06; Thu, 05 Dec 2019 06:38:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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=rEnJa1eg; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 S1729530AbfLEOiF (ORCPT + 3 others); Thu, 5 Dec 2019 09:38:05 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:32872 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729406AbfLEOiF (ORCPT ); Thu, 5 Dec 2019 09:38:05 -0500 Received: by mail-lj1-f194.google.com with SMTP id 21so3898201ljr.0 for ; Thu, 05 Dec 2019 06:38:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yV3GhPFmJytkxtEGQExTIppqC25xkrzPKeo9NSW2jNs=; b=rEnJa1egaaC2TNAcUXrNmliNqPwcGsDByFWAWwyIoE8s7yMfeadjXObeaSnewLqqTR 6K8eNGbAQYDEIdX7O7ksSwrSkmijvlbJpdvWlEDdQzcS4sUppx7yRjcuBRm3Fn34ogiQ fiEzd81IK2TeJEHvNgiDrHrOD2Shx4icapMGWypOZMBRO8nWrGie1Q4hcuKb3324rS/P sbEn93MkptyWC+hqRKGk75Rh+Nv2qXIiyo+j4fJtEV/x1qkYub2GL6KWK4OOQoDqx4mz fjDzulI7WD0qKMZgjuCxwTNev8gs/GQIk4m/SxDB7DGq/ufNtwBTgp/GzIL7hq6wg/lj r3mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yV3GhPFmJytkxtEGQExTIppqC25xkrzPKeo9NSW2jNs=; b=AT/lWSmF/Ro/kw48eR4N77T0tTMVNBcHqBttH42Mn8EYql0tGOy6/uQwx4lNnANqhU 0vd7Li73b7nI/EGZfmJ5Us7CBIaHV4gRQQF8aPMFd5nPGvTfj5badEosOxGtmqTZ1d25 Nz34rIi62K6XQStyHRgD9Gjm7dx8kIUYmLWObR+ORmvf28VwLnxZxM4d2270qtp2v4/J 5RM4kwZiVe0o7Gt3tyKNmZPLc8FRHdCU8I87+3nTDWFtnbLvUDHC9ZA0XAyMAomE2dkk QQp5CNdD5ZAbEAh7XXdhS6Vv+e5SUNtMQFp8gPHWnUzbQgWLkJB7YYXd50eNbO1f7oai /QBA== X-Gm-Message-State: APjAAAVETQbjCUWt0OAHEmXN46f1bhtPqsb3FKwpvTUJ3EOtydlOqlNX GSbJBtLubf+XkNlxX0aKXdMjyQ== X-Received: by 2002:a2e:b4cb:: with SMTP id r11mr2586523ljm.68.1575556683734; Thu, 05 Dec 2019 06:38:03 -0800 (PST) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id q10sm5091294ljj.60.2019.12.05.06.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 06:38:02 -0800 (PST) From: Ulf Hansson To: Vinod Koul , dmaengine@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Ulf Hansson Subject: [PATCH 2/2] dmaengine: pl330: Convert to the *_late and *_early system sleep callbacks Date: Thu, 5 Dec 2019 15:37:46 +0100 Message-Id: <20191205143746.24873-3-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191205143746.24873-1-ulf.hansson@linaro.org> References: <20191205143746.24873-1-ulf.hansson@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org It has turned out that it's in general a good idea for dmaengines to allow DMA requests during the entire dpm_suspend() phase. Therefore, convert the pl330 driver into using SET_LATE_SYSTEM_SLEEP_PM_OPS. Signed-off-by: Ulf Hansson --- drivers/dma/pl330.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 8e01da157518..88b884cbb7c1 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2981,7 +2981,9 @@ static int __maybe_unused pl330_resume(struct device *dev) return ret; } -static SIMPLE_DEV_PM_OPS(pl330_pm, pl330_suspend, pl330_resume); +static const struct dev_pm_ops pl330_pm = { + SET_LATE_SYSTEM_SLEEP_PM_OPS(pl330_suspend, pl330_resume) +}; static int pl330_probe(struct amba_device *adev, const struct amba_id *id)