From patchwork Wed Sep 25 19:12:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 11161293 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1CB8D912 for ; Wed, 25 Sep 2019 19:12:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EF4E021D79 for ; Wed, 25 Sep 2019 19:12:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="p70EpPZQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF4E021D79 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=4BvoRr3wj9koblQsdHOhctmyTZjSZRMNhR2ln+JmUtM=; b=p70EpPZQxR34Ar z1Btb59+JgTCRttKt+Fx9tPPGn/a/SraWzA5FS+winjYEnsMdN+LztFCjZ7E2qxgl7YVGXf0huqO5 OUXTFx2ZressfHVLlmHA/WWQ8bJKvjK3iAQ5ed9oBDS8hp60sRJUAXzs/yqSNut3k+2QDZ/cNsJVb 7KJjTVVmuWg8sJPa2piii178M+Ggnf6mH5gD72SG4Tvng3ZamVB2B9wTnl3lfl9t8loZKfmExDJW2 26LYEaIyV8uV0JEG7ALHMBtpIosLNZYuzaFDnLyBbflrsTNb6AeIs1QKrqiJpBC1QZ+v/CnvVZiB6 kbZo9p5jqSskDRKbArwA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iDCiM-0001Ea-9p; Wed, 25 Sep 2019 19:12:38 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iDCiI-0001Ci-Kz; Wed, 25 Sep 2019 19:12:36 +0000 Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net [71.197.186.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A317221D79; Wed, 25 Sep 2019 19:12:33 +0000 (UTC) From: Kevin Hilman To: linux-amlogic@lists.infradead.org, Neil Armstrong Subject: [PATCH 0/2] soc: amlogic: ee-pwrc: cleanup init state Date: Wed, 25 Sep 2019 12:12:31 -0700 Message-Id: <20190925191233.22253-1-khilman@baylibre.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190925_121234_703985_E285ADD6 X-CRM114-Status: UNSURE ( 6.00 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.8 (----) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-4.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Cleanup the PM domain init state and ensure that the driver state matches the HW state for all domains. Tested on meson-sm1-sei610. Kevin Hilman (2): soc: amlogic: ee-pwrc: rename get_power soc: amlogic: ee-pwrc: ensure driver state maches HW state drivers/soc/amlogic/meson-ee-pwrc.c | 58 ++++++++++++----------------- 1 file changed, 23 insertions(+), 35 deletions(-)