Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2282423lqo; Mon, 13 May 2024 13:23:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHPm4lUMcDusyyamoe3Su+ZaakohxrlvS+NDvBg3whd+fWmEZT7hAaIWtZCWEDCNhUlYdlENPo+3TsIuRbeSwp1CRy6d1lf14l4yOJcw== X-Google-Smtp-Source: AGHT+IHYSADwLH9Nd+Qio90NuIp7vQGy4ijFkt1ywbSMe4xWjm8X1M/dVyGeqKywHUfPU5wX439R X-Received: by 2002:a05:6a21:789c:b0:1af:cecb:b64a with SMTP id adf61e73a8af0-1afde0af156mr11414778637.9.1715631830214; Mon, 13 May 2024 13:23:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715631830; cv=pass; d=google.com; s=arc-20160816; b=hCWMPy1W+iTe0Xxgi0fqb9sBK0P213fJqXw4gPkZsIBQrlEzqR5ZrY1a3Zrgs/Scso BYqThsCDSd6FwRHm57+beyOS9qoUsIpi9pmN/FKWBAu9U+ONy2MVV/3lHJfEINW4TRai 6V/UK4onDhkGTI0Rby5+/0+3ETw+vZQs+SE3Gs6am9ZagztU7QEw1Z3UCZJkWmi9vfSO yddMFRE9Dey3y4LFWDnzcpf6Yj5s91nBkdqfM+1TCQ4v0xq6xj/yydHtrbRXOJQhLtqd m90iJhvj/6lckQZAp3LravTvy+QZ68WnLcnb+ym4+F22i8xXwKnx7CamVwGj3ER4clWS ZCSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KSM9V1vBTjgznXi3QwcS9ZgOCMBEU14RG9Mn0qnphd0=; fh=+P2cRlqnGq+CH1tqTXAXfOZm4ROul6Ra7ajKMIZBLQM=; b=DtzeZbRgHL3fiaywwd2aKz4TdmlbyvGaHV0H1M8QpE1dvRFEEgP7aQQnHQXhGVxmP1 KWl3RKEfxuZ7rJXDwjbzp6noo9NxZ2zoUnO+kwrph/a6atkB5F1ypXrb1e6rGKtb/GJC whrzkBElkgnHGv46t+vS9l2mL2JjZ16SBVAmiSnupjWj0HhCeIIEE/hA9XUZ1StOZ/Cz tDYFac68nZ5XY1nUI7QyvGpldiOeh7IuoNw2ayJalXc/GeBH2njM8oafTi8JnB4nF3lS XUA0ynIG1ZUnC194VSvdb60dWJXOT0NYt3psLBPGkhrItrbwvOKDkNfjRDjzg7ssJOgB 8s+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=MYCeqSv7; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-178067-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aee5d9si9703820b3a.147.2024.05.13.13.23.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 13:23:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178067-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=MYCeqSv7; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-178067-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178067-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D4835285E7C for ; Mon, 13 May 2024 20:23:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDCAB7EEE1; Mon, 13 May 2024 20:23:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="MYCeqSv7" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C4BE39FD8; Mon, 13 May 2024 20:23:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715631822; cv=none; b=uVZc2M3uyR5Yd70V/3F3IfAc3zPsiF72HICDLhDzcgAOpVGQr9OY2AQ6KHDp193QCefCQHXdeUml4oQSUsU6rWlQEBARAtLLrN7yCw9DH66dnw41N9Vn/VwO6UlBBYpJfinihpkRoQ1WDn8pUwtOBqOe2dqNniflzLPFbNj/PuQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715631822; c=relaxed/simple; bh=2y6lIR7UUi3HT4p1jrZVxbAYi7+AJOkRG82ari9GLCM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Kdj/+V0cDAT1tnKpX02c97Txy+Abnb55zjsfNUTU9xZLmqlFGwqFSmVlv8lw+1T61RxgZYZeJnfD+NxmHustnO/aWeHFY9NRHiM5mhYtkryzvuam9P8/NTPgniUmNPrFLs0vtl6fTEgdn52RWbfC9rDxWoVto6ighuTJ4MTwS6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=MYCeqSv7; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=KSM9V1vBTjgznXi3QwcS9ZgOCMBEU14RG9Mn0qnphd0=; b=MYCeqSv7+rarJu+j4nANfmy+iI km7e3QibYVWSCpz2HMuJ7vh9uxH4jk7fJ3NyMzVum2Cg06tTHsNAfjXFNfokyP+52S/rsnQ4VbYU0 6Y1Bfbk0r3uVClGNKs8FgbYVXOrFAodGFtOEzdl7PzQA9ib+4t6xSMfqMvrenVpsfXws=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s6cCq-00FKlF-Uk; Mon, 13 May 2024 22:23:32 +0200 Date: Mon, 13 May 2024 22:23:32 +0200 From: Andrew Lunn To: admiyo@os.amperecomputing.com Cc: Robert Moore , "Rafael J. Wysocki" , Len Brown , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] mctp pcc: Allow PCC Data Type in MCTP resource. Message-ID: <51bfbccf-9891-4766-a7a7-6b507b3ebc2c@lunn.ch> References: <20240513173546.679061-1-admiyo@os.amperecomputing.com> <20240513173546.679061-3-admiyo@os.amperecomputing.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240513173546.679061-3-admiyo@os.amperecomputing.com> On Mon, May 13, 2024 at 01:35:45PM -0400, admiyo@os.amperecomputing.com wrote: > From: Adam Young > > Note that this patch sfor code that will be merged > in via ACPICA changes. The corresponding patch in ACPCA > has already merged. > > Signed-off-by: Adam Young > --- > drivers/acpi/acpica/rsaddr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/acpi/acpica/rsaddr.c b/drivers/acpi/acpica/rsaddr.c > index fff48001d7ef..6bd9704f17b0 100644 > --- a/drivers/acpi/acpica/rsaddr.c > +++ b/drivers/acpi/acpica/rsaddr.c > @@ -282,7 +282,7 @@ acpi_rs_get_address_common(struct acpi_resource *resource, > > /* Validate the Resource Type */ > > - if ((address.resource_type > 2) && (address.resource_type < 0xC0)) { > + if ((address.resource_type > 2) && (address.resource_type < 0xC0) && (address.resource_type != 10)) { > return (FALSE); More magic numbers. Please add some #defines. Andrew