Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15831546rwd; Mon, 26 Jun 2023 01:48:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58SCB2CbOQC6cmHserFH5ggK0F8ZmibF5wxGin3Ng615ZFkbdSl78EoOnrm6sUNe/5HNrE X-Received: by 2002:a05:6358:cc28:b0:131:46b:3953 with SMTP id gx40-20020a056358cc2800b00131046b3953mr13338065rwb.13.1687769338230; Mon, 26 Jun 2023 01:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687769338; cv=none; d=google.com; s=arc-20160816; b=l86amePsErlYHDtjTMn/cAw3eG5xR4Hxgb8PQ8ZPzp9pRlPfBnxTPvhMMBan/5OGCj /bZTB0NJ8DiSmeqAUQEVfV1C+XmO66e/PqQVjiDm28mkU9ZRGyP4Qk4uRSSqumNFkA91 HtnqCH+eYEfAj6eEmEterjC1SkrLY406W29F3Qu5hHH5RSCcabWt1ywnYWgoYEPLy+Q1 G7jVOmysCPJaK4S+A/lnz/PitMK+mpMG8EIQlannyRd+r8inNcfofrCy6LcYaHKPZ/ux QxbVC7YdUqz9Sc9bYC5vqZEENq23j55kqc/O3/QyGwXdpMl8snyu4cNmrVJ0PfRtq3CX ERQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6ejOVInb4SvhSv1qQPjI19q3ViNfBqOamF76KS5ZQyc=; fh=7kk2dIdOXi+zqDFGTSYw9UMVB1tpnbGBLYaPIvAn2Aw=; b=uVGzRhDJfUWSfm97T1+1ucvR/a9S9SUE27No/XLEppgsDQrbIH3n71Z/usbscI6rJm wzpcylavHBMz/5AUimRh/kyHO0+UI+PgfuKdgue1FKbbXlFC4ZsV/NAb6yER4+R/BJ3H sOpy0s8n5Kwx4VA7V37e1SK24G0/xIdxPnsErvjnMUEpjzIScG15Rtj+XkX3QI5cAr+A istjx4oYx9LCwXunzKJfan7LbNtkpr+TMGIcTeCy37eGlJDgCEN4AlewAU/32vbJ2BLt IBBoi/4kjtVGUtpkmp6ZWu5sO+vY/qDE2ee2kdY8zpF2cS2krV6J5+RHIayWzwUICyA2 t5Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="mYS2/aen"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d29-20020a631d5d000000b005575a066780si4457158pgm.291.2023.06.26.01.48.41; Mon, 26 Jun 2023 01:48:58 -0700 (PDT) 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=@intel.com header.s=Intel header.b="mYS2/aen"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229726AbjFZIP2 (ORCPT + 99 others); Mon, 26 Jun 2023 04:15:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjFZIP1 (ORCPT ); Mon, 26 Jun 2023 04:15:27 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8485C83; Mon, 26 Jun 2023 01:15:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687767326; x=1719303326; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=idVIrM6nyAePhdkzWQmk/OgLjJRW7dN8sqMUgjM5mCI=; b=mYS2/aengGAQM6vtddsM89ph6r2zI1AHmaJE5rXG0t7ObD3p9PxH5GrL t5ODnTr4rJyZ7D9/Tqqou4anZ+wdBhJBjwSDi5ICInxhjoklEYiB7wKQp oz4g7dLETgwWx1J3gBlRvf91hm/hqytJL6w3fqKPA8IkhYMhGsyosSK2x 99z0hzD0TIB+412WIWGBfchT4pBov4+R9Gg074+ejd34SjIqnl60PTS7i eK7rcqrZCr62OkCJhsjkQHXNCMCAXzqIIhfbjDWWuXZ7GdKK4c/zZE7qs 5HvB6wIfQpa/G9effpxxOOsINXn+A1uky/9QzW0d1RbBXQ7pCThsAIt9D g==; X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="360073798" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="360073798" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 01:15:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="786058375" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="786058375" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP; 26 Jun 2023 01:15:23 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qDhNX-006eMM-0H; Mon, 26 Jun 2023 11:15:19 +0300 Date: Mon, 26 Jun 2023 11:15:18 +0300 From: Andy Shevchenko To: "Rafael J. Wysocki" Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, acpica-devel@lists.linuxfoundation.org, Len Brown , Andi Shyti , Robert Moore , Michael Brunner Subject: Re: [PATCH v2 1/2] ACPI: platform: Ignore SMB0001 only when it has resources Message-ID: References: <20230621151652.79579-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 On Fri, Jun 23, 2023 at 04:43:55PM +0200, Rafael J. Wysocki wrote: > On Thu, Jun 22, 2023 at 8:19 PM Andy Shevchenko > wrote: > > On Thu, Jun 22, 2023 at 05:53:13PM +0200, Rafael J. Wysocki wrote: > > > On Wed, Jun 21, 2023 at 5:16 PM Andy Shevchenko > > > wrote: ... > > /* Check if the device has resources provided by _CRS method */ > > #define ACPI_PLATFORM_CHECK_RES BIT(0) > > > > ? > > Could be, but this is specific to forbidden_ids_list[]. Maybe > ACPI_ALLOW_WO_RESOURCES or similar. Got it, will do this way. ... > BTW, this doesn't need to increment the count even. It could just > terminate the walk on the first valid resource found and tell the > caller to return true in that case. Indeed, thank you for the hint! -- With Best Regards, Andy Shevchenko