Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp238313pxm; Tue, 22 Feb 2022 22:12:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3TQlioWF40W+O+vbT3yQO/+qrcXbXo27fbh6GAewUIz2R24SHBbmYfY3dsOqsvVknyLzo X-Received: by 2002:a17:906:154c:b0:6ce:21d7:2826 with SMTP id c12-20020a170906154c00b006ce21d72826mr21624828ejd.9.1645596747179; Tue, 22 Feb 2022 22:12:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645596747; cv=none; d=google.com; s=arc-20160816; b=0Elis4gvzikCkOYyEMEfHOBRne6YjEFVHrljWzO8rbODTmUtj/cbt774yuuKKS6vHh kNdyPDxpes1ahQZhG/xe3egcmr7CuTQLSsB/462rkR5nwuDTSSHcd2Y9cV/0RHAwdo6z WDj2aIMtRbcSUnKXI7pdNBulTxwerPAuTRBn7A59rzeQLbG5gklK9DIqYYh+MkA35AlL KlIHNZzl4nI34AMm3TzWpytyDW93nIb4TV8evuOSsBRl4Q33Xx1EiO0oPLwRsRkFyIpF UgHuFiNBg4Yh30szp8S4h5bsDVr4nv8GBlFW2YyOO0xhqx6M2f0z8BU8Xi6QmVtxm/U/ udXQ== 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=Wb+B8NS2KRTcBtPzfngyTyd5YUKQs+8349LEE1tJLQE=; b=v9cdPRgBKO0/DsQClhnC2zlA4D+3wjD5aCNHtJEuw++jAlztKulciqIxfSZe44qSqR HbcPIIXSDRyIrxdB13+KViy5XlJN+gkt+BppJy+SHs2aJSRfqlOPWk+FGs70zznVHwiX Nr+YOkc482Bn3FEtwxCysayGVCVXNs5/+2t0WPjZgGNBDs5K2nJemfH3aN+p8N1AdssV ZrcZwQ832ozCyIujuL6f2HvHnP5/R/K6n7P9tOHive2WAEWpvLPgBzLiD1hR9Q7Yw/rp 3JJ9JYGA3MxQ/3Sti5tnsqY6ImXtWK9rj4wt8PRTEuFwq5DgduH46h0wOHspjovNugi2 /MSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ncoQ56Lc; 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 g1si4109420ejt.212.2022.02.22.22.12.03; Tue, 22 Feb 2022 22:12:27 -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=ncoQ56Lc; 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 S234496AbiBVSh1 (ORCPT + 99 others); Tue, 22 Feb 2022 13:37:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231931AbiBVShZ (ORCPT ); Tue, 22 Feb 2022 13:37:25 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AB01E0AD5; Tue, 22 Feb 2022 10:36:58 -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 dfw.source.kernel.org (Postfix) with ESMTPS id A6FE161583; Tue, 22 Feb 2022 18:36:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B962FC340E8; Tue, 22 Feb 2022 18:36:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645555017; bh=cZVj2to85O+PQ1olYQUt+4ZXnAEO+ZaqtiSsiAd1RxM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ncoQ56LcvCbF+u+RDOVbS5WMYctSGS9KigK1X7tIBDCpf74Mppj/zc3uqIC64Z9d7 pYAHF4JeS9R8WeQ9VZ6Ohf7Ru0Enwxzv82bFJTbmaoEDgHitKd9yU2UOf6yhEChtaj 6oqRzOakk4SoVpz6KkRFDaMSNxZhuT5aOguo4/tMK06cXL3kZno46ta0Z+Vi7+32mA V3bgzUfMx0ViTP9Lt5QYYLEZ1dGdmImasTwcgPolvCx7SGFJ43KcCGzycLAxUbOzcY tdvTN/SvINbmqyqyaVWC0wVc6ogksodwqUm8s88Mi5/u3DbKZG3Rd0cu11yYOsjcAL iL8vgnSPjplDA== Date: Tue, 22 Feb 2022 18:36:51 +0000 From: Mark Brown To: Krishna Yarlagadda Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, linux-spi@vger.kernel.org, linux-tegra@vger.kernel.org, skomatineni@nvidia.com, ldewangan@nvidia.com, 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="2dt5HGRedkKEQZId" Content-Disposition: inline In-Reply-To: <20220222175611.58051-5-kyarlagadda@nvidia.com> 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 --2dt5HGRedkKEQZId Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 22, 2022 at 11:26:10PM +0530, Krishna Yarlagadda wrote: > Add ACPI ID for Tegra QUAD SPI. Switch to common device property calls. > Skip clock calls that are not updated in ACPI boot. > @@ -1377,6 +1400,8 @@ static int __maybe_unused tegra_qspi_runtime_suspen= d(struct device *dev) > struct spi_master *master =3D dev_get_drvdata(dev); > struct tegra_qspi *tqspi =3D spi_master_get_devdata(master); > =20 > + 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. --2dt5HGRedkKEQZId Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmIVLUIACgkQJNaLcl1U h9B91Af/V0Mz9zlkixlXsHowRNpP67V4tM0YmpfXrzB6Y1fCXNS+xNOoCC7CqsD7 tkhG66C+UKCmENOKOso53ErNiSYDswdKQdawM8fEmRI0Bm2CNhyG6JayCeCmsgCx v2AMcW2Kw0pNAWJzR0SqJzreyT7A+zc4IrSt0dq45CFesYbwiayeEX11vzhzEL6z 8WZwfG1N4bCKWQnt/Fhu7unGmM42hIuWB3dXKm7XZP3+3QxxwUNYOPE6ZSUn6Vyz wS9jxAknsbiNB7Nd8fayHaQrBF8w3Tw6Kg4oNLAFx198yz87DvcCUUlr2c2W/zgs WRAEZKb3NizNWeBI6yHA0py8jXNEvQ== =n2OX -----END PGP SIGNATURE----- --2dt5HGRedkKEQZId--