Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp338367lqp; Mon, 10 Jun 2024 06:00:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0JvHi5FMcMbTDra/PNRp7BbJyd2kPpekCETeZitEiCWE6PUK7SpzYLI8Wlkzz6CnhOT/gcakwecT8WFM0M+pM9Beml6aviR7/R0Sx+A== X-Google-Smtp-Source: AGHT+IHvEmNVJj/NBJrVOJ8JW/jNqnortus5s4FaNXPa2r8HJF2A4NL5rm1fATojLHaJhqSzBCTY X-Received: by 2002:a17:907:7211:b0:a6e:a97c:fc9a with SMTP id a640c23a62f3a-a6ea97cfd20mr666921066b.8.1718024411485; Mon, 10 Jun 2024 06:00:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718024411; cv=pass; d=google.com; s=arc-20160816; b=T5qyFH7u1OQJM3cK5Mq0re3lS244qGRNcqp3VpEIaITIx3KIj3suhgGyzpsTMETnw7 96b2MrRhE/NEnU9NO/tC9KZeTEnxA/8An4yHre5sa4i4gjfRW1uMg+ltTvjwmsWbgEWa ZqnZidb5OPtzTLoyw1p89Lo52YKWXvFacPEnC7PpEdfKjjHwLUgofyJ5v6zO/aIoISQ4 PhffViWCku2uumTeoeywMNjlIgw5ReVn2AdsVQurENtNwLlbS1r9J9lHb7twLjXzrNzP zeHbwrUAr+CcFJbRp/jpYTNS8uO4gZN828y0ljjzmFCWqRFDxKolhNrjYCDMI0VaOI6W UISQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=osHFNXQYeOZ8cNYjQlaQF7CLkZggS3LAq+r5ol5gjVc=; fh=KHDILYIIids9bwGxiWXKgpJrjYL9nh6c7FM/vrL56QM=; b=bY2aMSGY+VtQmStY1GW9rSCBLUKy3ewv+Qt0lt16Qu0DEXTaCuw4fQt30iTTOL8fJy NfC10O9ZZO2A2F6EKzIi+gDMixEg8CuLj94q8pJdd11LOXsXgQVvM9up//mOe/bZw0QX wG42RuqyElw+fXkK6rXTxxyvajk/iW7yh7pUvaf6NUprnfl2alcYoRN+G52+FZP+UlWL v6UE81kIwC6EY9iJuGURRS8N+uCGcS1Ssw8UDWMS0d4czwOdm4kZ2Tm4fDGib3wRFT64 /aB7Gn4DiYBUatJC9mX/vY+WGg0aiJe7VNhb3qQDvboi34LDrbgj/UffF9e7z1CexHE/ ZVFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GgrtWk4t; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-208199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f109c32a4si188844566b.982.2024.06.10.06.00.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 06:00:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GgrtWk4t; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-208199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208199-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 365671F21172 for ; Mon, 10 Jun 2024 13:00:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9507481AC1; Mon, 10 Jun 2024 13:00:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="GgrtWk4t" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B00280BFC for ; Mon, 10 Jun 2024 12:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718024399; cv=none; b=D5zON/gftHu5xfr8mBUm0g01++2n9AWVIRziHBj9/C1fYeNOUy0nQqSNCSxauMMRXbinDfsbpTJ9Z/yFfYn3nmHA5wc/Oj4eZZFhXbOdLtRP/51LwKfmIheUmn2flCmD88cxbL4GFwaATLLEW3xBkMAy2cLzDrZE3uB5rbrSbpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718024399; c=relaxed/simple; bh=fDHQ/whn1e2FLw1pGiafARPj38BZG7jUM/tIWMopJCU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ML+VqnZ1aYoPlEPaS2fvTLQavtlFWwGIexCWn76EBAAoT8x+DuHa7ycRv+MWISBb1Iwy4ihG559SUwGvKCnJVW4JDODV4qSWztbIl81Yb83IGPnk02C6cAMS/jGUAaDMNemN0Ci4Be81UOSrN8Uhz6TZwNDXrwSrdX9lB2hEu4s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=GgrtWk4t; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45ACxQfk010146; Mon, 10 Jun 2024 07:59:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718024367; bh=osHFNXQYeOZ8cNYjQlaQF7CLkZggS3LAq+r5ol5gjVc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GgrtWk4tvUSobyWBgRYY9u2MTujyy3SUWyrbOV8nFxIGubWP2pnMFmqaFuvjn7EjE F3XEspGzmKjH7RmWAgqSEWVL9Bdq6iYSt1bMetVd12Rf0YYfB0mbkXOLgzLTYczgkA 0s6a9L31BLIL+AQ3Aj1keMFtQ7gklDRlbl5o3EAo= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45ACxQ0f028872 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2024 07:59:26 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jun 2024 07:59:26 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 10 Jun 2024 07:59:26 -0500 Received: from lelvsmtp5.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45ACxP7V064068; Mon, 10 Jun 2024 07:59:26 -0500 From: Andrew Davis To: Andre Przywara , Russell King , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Daniel Mack , Haojian Zhuang , Robert Jarzmik CC: , , , Andrew Davis Subject: [PATCH 2/6] ARM: imx: Switch to new sys-off handler API Date: Mon, 10 Jun 2024 07:59:20 -0500 Message-ID: <20240610125924.86003-2-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240610125924.86003-1-afd@ti.com> References: <20240610125924.86003-1-afd@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Kernel now supports chained power-off handlers. Use register_platform_power_off() that registers a platform level power-off handler. Legacy pm_power_off() will be removed once all drivers and archs are converted to the new sys-off API. Signed-off-by: Andrew Davis --- arch/arm/mach-imx/pm-imx6.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c index b36f05b54cc76..a671ca498f887 100644 --- a/arch/arm/mach-imx/pm-imx6.c +++ b/arch/arm/mach-imx/pm-imx6.c @@ -634,13 +634,11 @@ static void imx6_pm_stby_poweroff(void) static int imx6_pm_stby_poweroff_probe(void) { - if (pm_power_off) { - pr_warn("%s: pm_power_off already claimed %p %ps!\n", - __func__, pm_power_off, pm_power_off); + if (register_platform_power_off(imx6_pm_stby_poweroff)) { + pr_warn("%s: platform power off already claimed!\n", __func__); return -EBUSY; } - pm_power_off = imx6_pm_stby_poweroff; return 0; } -- 2.39.2