Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6172812rwb; Mon, 5 Dec 2022 08:51:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf6IT4C2C3i+R6oCT+d00sQaX8OJYCdfxD41W2x3SxmOnj3j+hCxj4pMdt9bmGXLshHpjcTk X-Received: by 2002:aa7:c313:0:b0:46c:a763:587c with SMTP id l19-20020aa7c313000000b0046ca763587cmr5720770edq.355.1670259112617; Mon, 05 Dec 2022 08:51:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670259112; cv=none; d=google.com; s=arc-20160816; b=xkzKvOBz3zWMokNMWmlskSBT2xOSOSwnQPAEcXI+GZ/cmzFqusxnZSCqh/aPXUSukn x9EdkXGPDnzKfKiZrwcG9oRuc8UZUBIEW//JjGNsbODEy1VEjgVFsgG6yxwb7LpeBsI0 d/3s4ZjHACG/lrGEDiv/FrlgqTXc5I5PAMTmBJXeN6aEKdG4Xgy7xT5Z9u4xBZtEQEgH kQ0bBhIW1hGY4MLq4T7Sbs+eUHrTt5gERd0aqzUJkdt9uKNcZU5B7ifUHll+m3KbvEi6 ptDxBXjMIRo78UHpizIQa/FyYfllsqfzXHhlyYQMKpzRiJrj5x/OBsa459sx/HMo4VCj 864g== 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=5HnNIFKgj0mOZI2BblMjUep7zoObGf0pNImQWAAi96M=; b=MT32aJQujPfxhn4yHlQwIYsRweo6VYvQvRlPDyrmVjc+3mhyNwDOu+WS2Z6jJUfxC2 /i1yP+W5ezGpRLeRSoZZBFNbfj1iV3oNuwJxBTzJw1i1x9TnRz8VNiMjModNvHeMQY7W pZPX1UVF+fnXpZTx9wG+xvVWExUM+lo8Dn/iOft5YoDAFc6aIUkATmnml4bGjhAs+WYt J0KFpHk+gM6G0SkPNo0UgQDwzuYVFQXOuSmnL7dSWIW48WKXqPYcUqtfOQuhEYWAIxtI +XTuKQseYGZPR6borQo0Qjyf+fhfHSAy3/ThJJHay6qWerd8h1/UxYzwDQSgSzh41ZEA RaLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ABcF1w6j; 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 m9-20020a170906848900b00780e89ce0b0si9357000ejx.600.2022.12.05.08.51.33; Mon, 05 Dec 2022 08:51:52 -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=ABcF1w6j; 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 S231995AbiLEQ0N (ORCPT + 81 others); Mon, 5 Dec 2022 11:26:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231969AbiLEQ0K (ORCPT ); Mon, 5 Dec 2022 11:26:10 -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 EA3FE1DF12; Mon, 5 Dec 2022 08:26:08 -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 A742AB81144; Mon, 5 Dec 2022 16:26:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9690BC433D6; Mon, 5 Dec 2022 16:26:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670257566; bh=IXjbw3od9RX52LgJlY0q/QMMPB1bl3URr+bdkX9l9ow=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ABcF1w6j4l/W2nE40FUo6h9qxYW5EDKXgluAYok40DSQsdXi8xaBnr1imFdy7ZG6x 1Lu4aT39+UBc6krnJv3sC7WLYewF66c5sz+wdVkF4Xbf9uTgtNqZoYVW52U864zwXr tTRpbqUMZITFNlCkfCI7l+qztQfbhGZdQgU+K2nMYChHUnlTrQ0GyEV4HCnxUL3t8g 9bkyOVFkvrvAzEsSLEwm//ICLlWBtO2QMH/ABI0faCHHGkj5QrkXpyl8q7JeS/i2Mh bdabqDHQ6IwfKOZAxqmY4jaZqWHNHJ5fBbX2K9EhVWPLzOkj1XNTQc86BGEHAATWEx 9n+ANSlx+PACQ== Date: Mon, 5 Dec 2022 17:26:00 +0100 From: Lorenzo Pieralisi To: John Thomson Cc: Sergio Paracuellos , Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Greg Kroah-Hartman , =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , linux-phy@lists.infradead.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] PCI: mt7621: add sentinel to quirks table Message-ID: References: <20221104205242.3440388-1-git@johnthomson.fastmail.com.au> <20221104205242.3440388-3-git@johnthomson.fastmail.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221104205242.3440388-3-git@johnthomson.fastmail.com.au> 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 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 Always capitalize the sentence in the subject. "PCI: mt7621: Add sentinel to quirks table" On Sat, Nov 05, 2022 at 06:52:42AM +1000, John Thomson wrote: > With mt7621 soc_dev_attr fixed to register the soc as a device, > kernel will experience an oops in soc_device_match_attr Can we reword this please ? What you are describing *exposes* the bug but it is not describing the bug per-se. The bug is related to a missing sentinel in the struct soc_device_attribute array and that's true regardless of whether it is actually triggered or not. Please update the commit log promptly and I shall send it upstream. Thanks, Lorenzo > This quirk test was introduced in the staging driver in > commit b483b4e4d3f6 ("staging: mt7621-pci: add quirks for 'E2' revision > using 'soc_device_attribute'"), and the staging driver was moved in > commit 2bdd5238e756 ("PCI: mt7621: Add MediaTek MT7621 PCIe host > controller driver") for the 5.16 kernel > > Link: https://lore.kernel.org/lkml/26ebbed1-0fe9-4af9-8466-65f841d0b382@app.fastmail.com > Fixes: b483b4e4d3f6 ("staging: mt7621-pci: add quirks for 'E2' revision > using 'soc_device_attribute'") > Signed-off-by: John Thomson > --- > drivers/pci/controller/pcie-mt7621.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/pcie-mt7621.c b/drivers/pci/controller/pcie-mt7621.c > index 4bd1abf26008..ee7aad09d627 100644 > --- a/drivers/pci/controller/pcie-mt7621.c > +++ b/drivers/pci/controller/pcie-mt7621.c > @@ -466,7 +466,8 @@ static int mt7621_pcie_register_host(struct pci_host_bridge *host) > } > > static const struct soc_device_attribute mt7621_pcie_quirks_match[] = { > - { .soc_id = "mt7621", .revision = "E2" } > + { .soc_id = "mt7621", .revision = "E2" }, > + { /* sentinel */ } > }; > > static int mt7621_pcie_probe(struct platform_device *pdev) > -- > 2.37.2 >