Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp804910pxf; Thu, 8 Apr 2021 13:00:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdoMkut3CtSpABfQf4LESXCcp5B32NrIUYvc2yb/inGpdmRHCiWevON9Vt3mI3RErpsIMJ X-Received: by 2002:a17:906:a84e:: with SMTP id dx14mr13062742ejb.332.1617912019414; Thu, 08 Apr 2021 13:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617912019; cv=none; d=google.com; s=arc-20160816; b=vEzJFuasLZiEW55tube1nuwrVZXTB9t/3zZlGQPjk2yE6nWPy9rixuOrBEba+opEnw JsyrZQYTu/gmWVJX8Z3pxeKMs/xYs7odZLeEnEgc59YCU4dUJKUO4Gj5PG93Sp9oW4Qr T9m1SXE0QgFCUdXBH9XF4pL675nyxRbBl0a8CB3fLMRXRSAju8seOCRazfJwerzD5Oe4 LOXsSNbZaGhYopWascv/QgLhKL3xA18tPYAMa8Vze6v/z8oqey32XsdhAjUC+Y9k3eVG HPqqzgP//AqpGDt6+G056O79MISrFSIKirEEUoEEpm5T5mMXXbtC5g9T3mzJTPbDKv4I xRRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=c0I+5ABydgeUMYGikWNT2jbIpevXFH6iMkyWNZ96ZK0=; b=jSOmvP19rR0qIHJnfT6Y0ob5cTo9nlHpO7Gc6+QbhuAO/4T420UWNT4qrwIJppvfRw eG+UujneeW+i0EwQsD3gNaMbrozLvO1SgUIjfig2NjDC61571xX2yecwXdJZ6+Wcp1bx On2xVlwh7D8jBUaswpRn64Gi7TMeUV/6G4DI8rniYnE8RzGySrXgLEL8TrA1zASD+6Vt GS079KH30YINxfiOZ+wManSl0VLZvUHLUF27P6h/YQdm9NGLaMJq9H2OYl09UCbt9tUy rKOEfYFmUmAsWa54vlmc1kyMXpWujFapTSWP+MGbj9fn14tkiUI39HDQoF6lhmGF9wCW iTDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ai7/jrDv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g26si277046ejc.32.2021.04.08.12.59.56; Thu, 08 Apr 2021 13:00:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="ai7/jrDv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232252AbhDHT6W (ORCPT + 99 others); Thu, 8 Apr 2021 15:58:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231947AbhDHT6V (ORCPT ); Thu, 8 Apr 2021 15:58:21 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A2BDC061760; Thu, 8 Apr 2021 12:58:09 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id d12so5969932lfv.11; Thu, 08 Apr 2021 12:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=c0I+5ABydgeUMYGikWNT2jbIpevXFH6iMkyWNZ96ZK0=; b=ai7/jrDvUdF4dSn5CVBuVxTXAKkrGqJ88wy23hzx41TKa7hZzyNFeQOpvVRsn70DDe 5bA0UT7yaL6s1B86Il8NffinLFzrxXSi0iZCaq1nC0VePrrEE0OhhL9urHECOfziKOvu ZXSf10Gp9fp+byDY9ziKnjR5T25vYOhQkRL8yAtljvevw3mlIbz9PTjw70+q4eFNIYcm NNR9/auR2uD9zy3sdZEvlg78N10zMnkn/YI5kv4qTVqetDHzMDRMaUxzN057bqO3fx0I 5aEnozkRINRrch2jmL50gWds+YjV/IdKwzmcS6ZwBdikG3P+4wzSxIHP/czoV4oQNZ9N WE0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=c0I+5ABydgeUMYGikWNT2jbIpevXFH6iMkyWNZ96ZK0=; b=G0cKVd259uNu+Bxpp3YdFqGsswdKknnfqSAJyrxLbyqsYpthAOcKGTRh1ohwxcLXaf J28yFeju2k3ASiqZh7hfu8M2bZTj0HEiK5xYXtgycsj6gzLoZyiq6kgsdnjKOgLTPvNm Fc+IwCIgsCzFKLOnu2EUwnlIbiDxRGVX5PlIUREmZR8rHRiKu4sN6vi5cw9x/Fe1jxv4 yP7So11zPn7xxago1AZMgOA3QuhhBzJuFDXcDesdirLUH4+ACxCQPGDH4dFW5P8AtkT7 ni6VaoQL/RViY+ZvLUV2QNWNdH1AS1seDPWLnirSKJVNRDebW0ccLX5bKtcmBvBc3ykU 8Jzg== X-Gm-Message-State: AOAM532jrw6S3LUn1QsBqPSwLLM9z/AeHqLsRsxQUxFtiyYfJBW2uqUE j9FNbWE0JAt9BeIx/slGIsp1pBGAM5U= X-Received: by 2002:a19:8682:: with SMTP id i124mr7872861lfd.406.1617911887666; Thu, 08 Apr 2021 12:58:07 -0700 (PDT) Received: from [192.168.2.145] (109-252-193-85.dynamic.spd-mgts.ru. [109.252.193.85]) by smtp.googlemail.com with ESMTPSA id w5sm29406ljo.11.2021.04.08.12.58.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Apr 2021 12:58:07 -0700 (PDT) Subject: Re: [PATCH v1] ata: ahci_tegra: call tegra_powergate_power_off only when PM domain is not present To: Sowjanya Komatineni , axboe@kernel.dk, thierry.reding@gmail.com Cc: jonathanh@nvidia.com, linux-ide@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <1617900043-10506-1-git-send-email-skomatineni@nvidia.com> <1617900043-10506-2-git-send-email-skomatineni@nvidia.com> From: Dmitry Osipenko Message-ID: <32ff84ba-60a7-e498-d656-bcd29d23fb02@gmail.com> Date: Thu, 8 Apr 2021 22:58:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <1617900043-10506-2-git-send-email-skomatineni@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 08.04.2021 19:40, Sowjanya Komatineni пишет: > This patch adds a check on present of PM domain and calls legacy power > domain API tegra_powergate_power_off() only when PM domain is not present. > > This is a follow-up patch to Tegra186 AHCI support patch series > https://lore.kernel.org/patchwork/cover/1408752/ > > Signed-off-by: Sowjanya Komatineni > > --- > drivers/ata/ahci_tegra.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/ata/ahci_tegra.c b/drivers/ata/ahci_tegra.c > index 56612af..bd484dd 100644 > --- a/drivers/ata/ahci_tegra.c > +++ b/drivers/ata/ahci_tegra.c > @@ -287,7 +287,8 @@ static void tegra_ahci_power_off(struct ahci_host_priv *hpriv) > reset_control_assert(tegra->sata_cold_rst); > > clk_disable_unprepare(tegra->sata_clk); > - tegra_powergate_power_off(TEGRA_POWERGATE_SATA); > + if (!tegra->pdev->dev.pm_domain) > + tegra_powergate_power_off(TEGRA_POWERGATE_SATA); > > regulator_bulk_disable(tegra->soc->num_supplies, tegra->supplies); > } > There are two instances of tegra_powergate_power_off() in the driver.