From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D63F3C433EF for ; Wed, 27 Oct 2021 18:35:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BC54E6103C for ; Wed, 27 Oct 2021 18:35:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243602AbhJ0Shj (ORCPT ); Wed, 27 Oct 2021 14:37:39 -0400 Received: from mga17.intel.com ([192.55.52.151]:26323 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243586AbhJ0ShT (ORCPT ); Wed, 27 Oct 2021 14:37:19 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10150"; a="210997697" X-IronPort-AV: E=Sophos;i="5.87,187,1631602800"; d="scan'208";a="210997697" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2021 10:36:04 -0700 X-IronPort-AV: E=Sophos;i="5.87,187,1631602800"; d="scan'208";a="665080147" Received: from smile.fi.intel.com ([10.237.72.184]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2021 10:36:02 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1mfmpy-001Wys-H8; Wed, 27 Oct 2021 20:35:42 +0300 Date: Wed, 27 Oct 2021 20:35:42 +0300 From: Andy Shevchenko To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Hans de Goede , Mika Westerberg Subject: Re: [PATCH] ACPI: glue: Use acpi_device_adr() in acpi_find_child_device() Message-ID: References: <11862679.O9o76ZdvQC@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 27, 2021 at 07:23:43PM +0200, Rafael J. Wysocki wrote: > On Wed, Oct 27, 2021 at 7:17 PM Andy Shevchenko > wrote: > > On Wed, Oct 27, 2021 at 06:59:06PM +0200, Rafael J. Wysocki wrote: ... > See acpi_set_pnp_ids(). > > adev->pnp.bus_addres is the address value and > adev->pnp.type.bus_address is a flag that is set to 1 when _ADR is > valid. > > > IIUC _ADR == 0 is a valid value and children may have it like this. > > That's true. > > > I believe this change will break the working things (first comes to my mind > > is drivers/mfd/intel_quark_i2c_gpio.c). > > I don't think so. With your explanation I see where my logic is wrong. Thanks! -- With Best Regards, Andy Shevchenko