Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3859555pxb; Tue, 17 Nov 2020 05:35:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwScJbHHxjqq/1klQ+AQWWDDvfpXtdC1Kb1rtWRN2cd4FFTMPb4rGboSWmBciUCzKw5X8LS X-Received: by 2002:a50:ff0c:: with SMTP id a12mr1973167edu.79.1605620125682; Tue, 17 Nov 2020 05:35:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605620125; cv=none; d=google.com; s=arc-20160816; b=vb2rhIwirUPvkzFtfP+6GNRGyTmNFLyPnWVQpzD8qL9SVorqENhyrhSdjm/Y+qqffL BitBgEfBs8WzM3fGKIdDrn9+J9aMiqhSnNgv/D11DUZvCaYI8fBtXkJV6LXx1n7ZHYLt SUtJO3Hn/ejqKyCsXEvWAv7uXJ4Z9UaYZKuBiKDrFQuhuMEYC1Nn1DUbE5XSoNIQKF7M /dujxM1IINGAP/TukWYUicN1kQaZCAMF9TPn1/zNTsAXolD/zU5YwxLlSTB9tlmrPbtM WLN5REhv+1WM6CxVlFYNpWa3kgA+RisMwyyPLliZktcVnXYD67Hc6XqOaBF7Ljj6XaWP dq3w== 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=KLjEpCb4eCRs3hIwV2rHac/+nDkbl6DhKQFxBs3E3K4=; b=imXJ2HypLFsTg9sGh3OG70Emr2p52/slzzBAG1zHqfdbKVyaQcWJI7R2OCi5ArIZCZ gJn0KhD/b5eT69KQkSBKXdJxK9bwZu3qwh7jc4N9tKjbmidWrTu0YO9aLIm1jD0Z1FGY a90JHBlZ5DLkyaRPcD4jON6VXqK9RzQS0q8hmUKXo2IcoEVXt26RlCeJysMifbqgLJ6Q NY22rHYA4CoDXGdeju5B2x9ifUOWdye+uQ6/yOiVNd5XLSpE3+FBG9ULChSPl0QsbIA3 sDsxUHnQTk0nklVTaRd+RElG0YvnIBam1JqmutTAz6EybJUrplYKz4PgWCQRGl4bYyYh A3Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GIoEfjx8; 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=fail (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 bc16si14212457edb.391.2020.11.17.05.35.02; Tue, 17 Nov 2020 05:35:25 -0800 (PST) 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=@kernel.org header.s=default header.b=GIoEfjx8; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732096AbgKQNdm (ORCPT + 99 others); Tue, 17 Nov 2020 08:33:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:43814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732060AbgKQNdf (ORCPT ); Tue, 17 Nov 2020 08:33:35 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 4B4A12168B; Tue, 17 Nov 2020 13:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605620015; bh=Rl2FmOKz3FhvTMwiGKfppdkVk2uGslV89dplTpWMBbw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GIoEfjx8oKWMWr1+iKBuKUhJPnjJh8TKobAzbsy0fUwJiIhAsexOyscTw+85luVIH UhPLQHagnzNJO4/SDcV5F3ZextQQfmpaoa7q+3D6FzXzrd9IYfufxZCguf3TkLzrdO /107Wt+vLE6F8lkVE7G+J3gCzFa6NYihG8S7Q588= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bard Liao , Pierre-Louis Bossart , Ranjani Sridharan , Guennadi Liakhovetski , Kai Vehmanen , Mark Brown , Sasha Levin Subject: [PATCH 5.9 079/255] ASoC: SOF: loader: handle all SOF_IPC_EXT types Date: Tue, 17 Nov 2020 14:03:39 +0100 Message-Id: <20201117122142.796043065@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122138.925150709@linuxfoundation.org> References: <20201117122138.925150709@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: Bard Liao [ Upstream commit 6e5329c6e6032cd997400b43b8299f607a61883e ] Do not emit a warning for extended firmware header fields that are not used by kernel. This creates unnecessary noise to kernel logs like: sof-audio-pci 0000:00:1f.3: warning: unknown ext header type 3 size 0x1c sof-audio-pci 0000:00:1f.3: warning: unknown ext header type 4 size 0x10 Signed-off-by: Bard Liao Reviewed-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Reviewed-by: Guennadi Liakhovetski Signed-off-by: Kai Vehmanen Link: https://lore.kernel.org/r/20201021182419.1160391-1-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sof/loader.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/sof/loader.c b/sound/soc/sof/loader.c index b94fa5f5d4808..c90c3f3a3b3ee 100644 --- a/sound/soc/sof/loader.c +++ b/sound/soc/sof/loader.c @@ -118,6 +118,11 @@ int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset) case SOF_IPC_EXT_CC_INFO: ret = get_cc_info(sdev, ext_hdr); break; + case SOF_IPC_EXT_UNUSED: + case SOF_IPC_EXT_PROBE_INFO: + case SOF_IPC_EXT_USER_ABI_INFO: + /* They are supported but we don't do anything here */ + break; default: dev_warn(sdev->dev, "warning: unknown ext header type %d size 0x%x\n", ext_hdr->type, ext_hdr->hdr.size); -- 2.27.0