Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1891831pxm; Thu, 24 Feb 2022 11:23:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVhBhixBuGz71MEVYF5yDe2GmFpKsWWS86CeXxgB7vBsYzPoBz+lpUOTdZVHJ/bxlSamU2 X-Received: by 2002:a17:906:b04:b0:6bd:bf71:ed08 with SMTP id u4-20020a1709060b0400b006bdbf71ed08mr3517561ejg.585.1645730604947; Thu, 24 Feb 2022 11:23:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645730604; cv=none; d=google.com; s=arc-20160816; b=PaNg4uJtkd1kA5hp9CDSBoY/uot0sMnBCoYxzSu6juNorg7cTwLJEBP6+D3elOGCAs p9ugZl1vUeLEgLTbwokbwAKOgGXKt7tU4GmlwVt9yiIX1IQ1fMaWuhDOqEeu1B6Soh+R PMgUBiSVLmbulvBaE9p/ubM+yhKA5inio/KOtxW94h6dUfuQ/0XRLQT3ndZXGOGIF87X DavaOfb2JqVKPzJSh6bvpFjTAnQf891Fu3GpBVTQezGvNwi0HfjnQfXu6eD9/NoF4euL URl057KgX2uDAZ2acJYoyIjsQSTMEDX5gEcHpQV4Gx/wAAGTaCOdaVTxjtcARKy+vAeH k5dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=D59XmoZ08q80JFpeLbnrUk07VzmuGR9HcFqPoc2A4js=; b=pVSjl3qMSJNmYULrT9KGv6PsZ7pgsrrXVGKCfOTzW7JPosRwQCJu+jJjbKDQyLwS+/ 6WftWLdBcCTOHZ9tvm16uHGOQM4EPH+1nslruYoD17AOEsi+ONoUZjfWDmMW9ndZKpEh 5fIRfH6ip8GI7dMPaxV73SAXwN0WDH8gJrseHnnB33eyNHKXEjrskMVwRuSXF/2+mZ1q 2MeOdDZv8yAp2pxkV0QX1OsSwCdb1kZBnGvGSC4r3OOmc3IoDo2XO/gWbKECs+4nd2nx P+Zuv8mGloVyVgSTYwoZnGe+4vfPbJ1Tq22CnddhDk+ZS3xclVjPYGbcOOuoIrpivwzv T/cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c5HtBT8x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a1709061c4f00b006b215619dfbsi164102ejg.596.2022.02.24.11.23.01; Thu, 24 Feb 2022 11:23:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c5HtBT8x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232852AbiBXSXH (ORCPT + 99 others); Thu, 24 Feb 2022 13:23:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbiBXSWu (ORCPT ); Thu, 24 Feb 2022 13:22:50 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAF16191405; Thu, 24 Feb 2022 10:22:20 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 659C9B82423; Thu, 24 Feb 2022 18:22:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AD85C340E9; Thu, 24 Feb 2022 18:22:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645726938; bh=1v8i4Usg2NZhQW/sf9Ue9s+VQpGM0wf62sj9FcuUiCo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c5HtBT8xRekoXQ9TFILItsIyY5OZbGan9Gf0sw92TzJ+YxT0Ej6xTuC1G/QWQxEym svCNfPjA1CSlA1o68nGuAKlOovsj3yLllwSSKOotyQ0NfJiosGnLXSYv6Pt2GZG+FP MyOfjeqj7lhtqpeVl3tEYI/qPOPW+JZjCalkGDMwHh5fJ8r3rIv1VCqzWKAG+7CNT7 Lqe5AjcPJmbiruhnyw4Q33BxD5OnIISnaFgZK1IVBJUgVjyatF838ptBSgiIYfAo0S //UDM+ctqsmVzHn9UCndE8juMdvtNgKg/pB7EK3q0WpMtxVgJjgMRFOjKZQMXblFam A+Wd+V28yPEgQ== Date: Thu, 24 Feb 2022 18:22:12 +0000 From: Mark Brown To: Krishna Yarlagadda Cc: "thierry.reding@gmail.com" , Jonathan Hunter , "linux-spi@vger.kernel.org" , "linux-tegra@vger.kernel.org" , Sowjanya Komatineni , Laxman Dewangan , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "p.zabel@pengutronix.de" Subject: Re: [PATCH v2 4/5] spi: tegra210-quad: add acpi support Message-ID: References: <20220222175611.58051-1-kyarlagadda@nvidia.com> <20220222175611.58051-5-kyarlagadda@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NN31DYzJ28edf/nu" Content-Disposition: inline In-Reply-To: X-Cookie: I smell a wumpus. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --NN31DYzJ28edf/nu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Feb 23, 2022 at 06:32:56AM +0000, Krishna Yarlagadda wrote: > > > + if (has_acpi_companion(tqspi->dev)) > > > + return 0; > > > /* flush all write which are in PPSB queue by reading back */ > > > tegra_qspi_readl(tqspi, QSPI_COMMAND1); > > As well as clock stuff this is also skipping flushing of pending writes > > - is that intentional? It's not called out in the changelog and seems like > > something that could cause issues if someone runs on a system where > > the firmware does implement runtime suspend. > Runtime suspend is not enabled with ACPI firmware. Converted compiler flag in v1 to runtime check. > We must add more changes like setting DPM flags for runtime pm support with ACPI. > Can take this as part of a different series. It at least needs to be clearer what's going on here, the changelog doesn't match the code and it's not obvious from the code that ACPI won't kick in and power manage the device as things stand. --NN31DYzJ28edf/nu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmIXzNMACgkQJNaLcl1U h9DJyAf9Hrv8ZOPOazKwh+GeTMwE1UXZSJtI+PhEMyvmN762w6PZV/oFVg3ZBx9E rTMUjp7KwLQ810g+62lvBwu3Qqqhq3q50DXXLLtMStFHB1m+S9KaNlnWSAQyXjF2 A9388F0TTvnpOOzHufONVxNKqUCl3my8vvAFNYL24IHD/7af4ZGJGwMvTC7o6LtI 4Cjfm8BgQAaDcxBW2928tC1/NIZ5Qsep35p12FFL1dtHzlr30+Nlr44L8PZqIPDv 0Fv9hAi5Lg2LaA6bTZPmBh+cLIdL8BEOiw1gxFprahc+EKqkxIUN1KC+ZQDnMQhD /G9CuHYJgIah4Oa9LBiDsQIDJc/xYA== =Nx2b -----END PGP SIGNATURE----- --NN31DYzJ28edf/nu--