Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2841800pxk; Mon, 28 Sep 2020 01:07:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSimtpby90JUGTtPG3M7JyQjZOJbT8UCmnVHeBlbXlO/V1o56lEExbYHEq1OYYXdEgJcp0 X-Received: by 2002:a05:6402:1584:: with SMTP id c4mr419724edv.192.1601280473771; Mon, 28 Sep 2020 01:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601280473; cv=none; d=google.com; s=arc-20160816; b=lOTNEwpX0NHOGNcIxOSjA4RXUqTs1cufaEnHaRe5i/zxxe61kayyILRHQxyn8tKZAl +Z67Ta4exb8ok5+jrAKRhFf67HNI7KZ+GyMg1v7L9H/Nc9qaZGVacfU4ie3K80NVLYn8 oJ1ARvQ7K6xmoc5V+jcUTkcDn24BhHf4pbxMjU2SOQrs76orqkR9GmwhrgO2cSMB+zHZ Afrw20fRSBFzkpzo+mlLXWhzWZYpnW0HTlNyJSbIxMYqRhUtK+VWQpqbvHKIYZe1wpFb DgI0BNeAPhJK/EWa0fYocIgbMNIfiv84/DyRtypoqQV+PhP1NOs2ocrWqOxTC8ysXurF rzjQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5c8rGgT34CWyrrefDHjKaJQ7725a47R5T6yl0/KLFHg=; b=umD6lFEbmoSKqBvIXKuWoo3rAmJw4XbIgKTZwqyJfmAA8AABYNVTYrBTmxV3Vfy2oF Xt2ui887O/Mb8D9q/4Te4V+nKhTePk9aFzxA7d39AddclUwKwKg0+Eqg5EGsIIwZXvTP wv0fwwwSMDZQy+Yh9spIcdKhzlZON64Nsl60XWrBqZlzZvxCh7SQ+vbtyYNozeEu4kdu vcO3haaKFwM0j41uQMZLtovuWSoInuicLeQUEPVTXWpyHDS9dPSWHkK1z20VLdjNqcQE DGq7v9MlzV/c96qWWn2O/4QGSj37c/amiw6AwYj4mOkom04z2ZAIKdaY5hPOnQweDjdX gUhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fU0HlbH+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c21si117464edx.296.2020.09.28.01.07.29; Mon, 28 Sep 2020 01:07:53 -0700 (PDT) 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=@linaro.org header.s=google header.b=fU0HlbH+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726776AbgI1IDo (ORCPT + 99 others); Mon, 28 Sep 2020 04:03:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726779AbgI1IDl (ORCPT ); Mon, 28 Sep 2020 04:03:41 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4DFAC0613CF for ; Mon, 28 Sep 2020 01:03:40 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id s12so100373wrw.11 for ; Mon, 28 Sep 2020 01:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=5c8rGgT34CWyrrefDHjKaJQ7725a47R5T6yl0/KLFHg=; b=fU0HlbH+nbIGIOjrcnRQVUlq9lbF4G31CCW0J9WPKlPTQg0NhBfiHMqx4TkhPksRcA LTE6UAFUxEG1dKIVrpBWsNpNq4bX1QoihUFRvwRRM/d308rZG5GGaztuRKwR8K2UXSvL ORGURPz8UXzksxYLSY3ed5c6U+lvCLJ46h5IqnHkZGD6Rj6IQQznXe3CPaaAeBk+D0Ld YAvH267wpjAwZQP9WaEJnMCV3P1ccVxv0lPLEIT1InJi9zWUAjKiGgH1SIAQ4spBsy80 nuZYehv89mt7o+ZSAaEdtwIsrAsEWs+pwfnW51OZGyRrSljdDkwzrqVAcH7R2yhLirA2 6iRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=5c8rGgT34CWyrrefDHjKaJQ7725a47R5T6yl0/KLFHg=; b=e8KUX4PpHBpA7o4kn6aDp3j6bs648qAwqoAIDvp86iDFdI65Cgt7keXYbjI3uF1u2R HOQaW217nFnATtCf2Q7CTgkV1mSbuOX9HruXguLQu2SLng66VGclZWN7DSFXBBzE0Vvk 9HR4hw2uonnboh0ynSaUDvTdoBQeyhuh51l7BGzxlcMTXKDVAFG/1gpP1f3lkuXq3MIH fxiyFdM1BchakIoUtOKSOwX3vt170+bLOwPc4VFh1uD62Ei+ratct0zw2sIq6qRvuE+3 3BWasVvHd439ZU3A+VgAFye5I2D5ucRRcU7USTTjyr6A33O3G8M7+SPlp4femWTuh4ed NXBQ== X-Gm-Message-State: AOAM533U5FQ1iKfhJkL2+JNr5djsieY6zcUzOlGVZF2R/fqaFJD33IrM shXK/Sfkhk2pLMvLb3U5ENLoTyDVtg5ENA== X-Received: by 2002:adf:a418:: with SMTP id d24mr279994wra.80.1601280219307; Mon, 28 Sep 2020 01:03:39 -0700 (PDT) Received: from dell ([91.110.221.154]) by smtp.gmail.com with ESMTPSA id 11sm189813wmi.14.2020.09.28.01.03.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 01:03:38 -0700 (PDT) Date: Mon, 28 Sep 2020 09:03:36 +0100 From: Lee Jones To: Sakari Ailus Cc: Marek Behun , linux-leds@vger.kernel.org, Pavel Machek , Dan Murphy , =?utf-8?Q?Ond=C5=99ej?= Jirman , linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Bartosz Golaszewski , Sean Wang , Matthias Brugger , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Orson Zhai , Baolin Wang , Chunyan Zhang , Thierry Reding , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Liam Girdwood , Mark Brown Subject: Re: [PATCH leds v2 05/50] leds: various: guard of_match_table member value with of_match_ptr Message-ID: <20200928080336.GA4637@dell> References: <20200917223338.14164-1-marek.behun@nic.cz> <20200917223338.14164-6-marek.behun@nic.cz> <20200918061500.GD26842@paasikivi.fi.intel.com> <20200918112058.6d3b0d5d@nic.cz> <20200918095759.GG26842@paasikivi.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200918095759.GG26842@paasikivi.fi.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Sep 2020, Sakari Ailus wrote: > On Fri, Sep 18, 2020 at 11:20:58AM +0200, Marek Behun wrote: > > On Fri, 18 Sep 2020 09:15:00 +0300 > > Sakari Ailus wrote: > > > > > Hi Marek, > > > > > > On Fri, Sep 18, 2020 at 12:32:53AM +0200, Marek Behún wrote: > > > > Change > > > > .of_match_table = xxx, > > > > to > > > > .of_match_table = of_match_ptr(xxx), > > > > in various drivers. > > > > > > > > This should be standard even for drivers that depend on OF. > > > > > > After this patch, none of these drivers will work on ACPI systems anymore. > > ^ > > If CONFIG_OF is disabled, that is. What? of_match_ptr() is designed to change depending on OF or !OF. Are you confusing this with acpi_match_table()? > > Hi Sakari, > > > > I don't understand. Why not? Does ACPI subsystem parse of_match_table > > as well? > > It does. The compatible string is used the same way as in DT for matching > devices with "PRP0001" _HID or _CID. > > Please read Documentation/firmware-guide/acpi/enumeration.rst . Could you allude to the specific line you are referencing please? > IOW, you can safely do the above only for drivers that depend on OF in > Kconfig. Otherwise you'll probably break something. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog