Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2372295pxb; Mon, 20 Sep 2021 20:30:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYhzksnpEbdb39Pu4ZfdihJRYTj0FixBXWJ8FpEnQk0MWVsjMLhzopJRNZwXoJYs6ysmDa X-Received: by 2002:a17:906:7714:: with SMTP id q20mr32134605ejm.551.1632195041329; Mon, 20 Sep 2021 20:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632195041; cv=none; d=google.com; s=arc-20160816; b=00UUHg4w4qXn/NIHPlj8LTVXD16ZzgqIJoSQOEatmCD1NXzfCHt5woRCQWBEYAXWwD PfM2lNPwdQerUQW7g8iGxa9kPFekJ/4jb3rvuwHM76ULGOzvbqDc4nGa6Uw3UrchCC1O GpongDMf9S7qFhJEurKAV2MtVfzFjuA0yTvKL07vqQ1EGbWWWnxSqoWOvf8vLCS7RIqv L+BKP3/TeyOR7t6TF598jZnI15/10JTZwMDIzYr9w5K5JsDDEbXt2PC9xC8fJcKPo5pN STkJnzcNwM7GyA2JLNWiNAGjZezkNL6T2eAPrqM5+uZ6/S0IkY+o7X+VVbiF5SxlGgd+ xN8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9RFliXKrx+as7QA+BSjhMp5FHAD1fFrmLck7cpSCoEU=; b=0wmN95wMx0rF8A9nsEA6qLnXVrGqznOleW76SRPh2waocgGWapuLDZR4kfgLqF+1qC FY9QrSTQRy4CXob5T78e5LSw5kR2eD3x1n7X8b6qMCENxCIK43SyXNIxuyJTuOtpgcJm GbazJXktLtN+KyJVkATG9SEVg63kCnL7qX5E065vljGr9ZgCuneUnxZARPE962a6Gerq f9yQf00slj9/V0u+kZgbAPnx+o2kesghG85H/7JdYKtGrKG7Ikw1uZAgIpXKY8DV6Beo ubBDuBKAOqxuthUwMx1kgrua+p0Xd144cEqNpFc4cSWaiKs+INH2j1SJVSb7chVycM8c vkUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G5xuQTAx; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si22998071ejt.173.2021.09.20.20.30.16; Mon, 20 Sep 2021 20:30:41 -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=@linuxfoundation.org header.s=korg header.b=G5xuQTAx; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386102AbhITSxh (ORCPT + 99 others); Mon, 20 Sep 2021 14:53:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:33542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385511AbhITSue (ORCPT ); Mon, 20 Sep 2021 14:50:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E49E76338A; Mon, 20 Sep 2021 17:34:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159298; bh=PANFbJcVPUudqr+Gw+EufyPkfBUZLsahUaC5/LKz4c0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G5xuQTAxb6KoQ+Sc629j9/hXYwhFr4Y8bmcfTiKulNksqJ1K07a7gUE5s0irHA43N xo0xilNWlcQKUwtVjfqqEZkmGpxLePo5QGZP3eq8M8SJ0bu20S7JTVNcyod/GNzQfw PRXvDEs+3b2Cy+igAY1kzWyP9sFezUoXixehkLYE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jakub Kicinski , Bjorn Helgaas , "David E. Box" , Sasha Levin Subject: [PATCH 5.14 135/168] PCI/PTM: Remove error message at boot Date: Mon, 20 Sep 2021 18:44:33 +0200 Message-Id: <20210920163926.101528761@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jakub Kicinski [ Upstream commit ff3a52ab9cab01a53b168dc667fe789f56b90aa9 ] Since 39850ed51062 ("PCI/PTM: Save/restore Precision Time Measurement Capability for suspend/resume"), devices that have PTM capability but don't enable it see this message on calls to pci_save_state(): no suspend buffer for PTM Drop the message, it's perfectly fine not to use a capability. Fixes: 39850ed51062 ("PCI/PTM: Save/restore Precision Time Measurement Capability for suspend/resume") Link: https://lore.kernel.org/r/20210811185955.3112534-1-kuba@kernel.org Signed-off-by: Jakub Kicinski Signed-off-by: Bjorn Helgaas Acked-by: David E. Box Signed-off-by: Sasha Levin --- drivers/pci/pcie/ptm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pci/pcie/ptm.c b/drivers/pci/pcie/ptm.c index 95d4eef2c9e8..4810faa67f52 100644 --- a/drivers/pci/pcie/ptm.c +++ b/drivers/pci/pcie/ptm.c @@ -60,10 +60,8 @@ void pci_save_ptm_state(struct pci_dev *dev) return; save_state = pci_find_saved_ext_cap(dev, PCI_EXT_CAP_ID_PTM); - if (!save_state) { - pci_err(dev, "no suspend buffer for PTM\n"); + if (!save_state) return; - } cap = (u16 *)&save_state->cap.data[0]; pci_read_config_word(dev, ptm + PCI_PTM_CTRL, cap); -- 2.30.2