Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp851453pxu; Mon, 23 Nov 2020 05:54:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJywlbahw85sx5POBMa6IffPgNOtsLRufuYdH1aVp1ic8Q8d2pZE/B1YqACwmjpOvODsIjNh X-Received: by 2002:a17:906:38cc:: with SMTP id r12mr45223137ejd.277.1606139670866; Mon, 23 Nov 2020 05:54:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606139670; cv=none; d=google.com; s=arc-20160816; b=JtnV5xr3xXx9RC4SgNHb1lfK9RAUhrJg0sylqhn1FmLYOz4jmfa66d0/oJQdxTifYC QfqmqIqYOzqJnP95qORC6x9Xjln1NdelCA93lDO1boWylt9V/1+sM7+DJOjlYaag89Dw ilZKVr3+Nr6Sk1PN3b/Q485A3ApP24ql5i2UF5YDa2NLsg3cBzkubhoOKpCOSIlhqF07 Rgz1WVZdTp+gxbwec+Fr7YcG0hCuMZt/tV4Q4EqZJ2b8dhcOxTgyF1TkOMiLIpJZE1c5 xXDBgmVmA2SU3taSYQi7JlcrlVk0PBrkE+C7ribdZEwrPQmvb4ALwKbbtIJ25Quvs7AS aiAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=RY6KFvXKkcXV6e9MvusVsL6SHbHsLlPImCeSiyb+xbs=; b=VL99dVDnaEEars4Alf+KLWfeq4nlITDcgcPjQoQNLCE8KDuDkViqzgZq14zIa43/K+ k7R2KCX85wmCmu4m2A5x3VNET5hQ0ivU6x3lVtrpWCxxNzdWf0tswRpvYPZWYSgDxPGD 3CqDcYe/8Zb15v8zNONESH2AFcF5Hq45VxOYDatNQvE5CGt9rrW+JZrxn2WSTXeb1vfZ OWitlxR+yP+ceyQtaTxsm2ArJqnB1/eFUI3B/gWkQ7pRi+Xzfa+R9mYGDpHUPvQfVf5t aNR0iseawDUkMUbH5gSM8K6LWQ89+SrjVbPkVH7inJTYLekPRiskMrtRWobQ7bwZj2ft stcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KidfIMQV; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc4si6491606ejb.188.2020.11.23.05.54.05; Mon, 23 Nov 2020 05:54:30 -0800 (PST) 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=@kernel.org header.s=default header.b=KidfIMQV; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388420AbgKWNub (ORCPT + 99 others); Mon, 23 Nov 2020 08:50:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:37590 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387728AbgKWNua (ORCPT ); Mon, 23 Nov 2020 08:50:30 -0500 Received: from localhost (cpc102334-sgyl38-2-0-cust884.18-2.cable.virginm.net [92.233.91.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 84CC520729; Mon, 23 Nov 2020 13:50:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606139430; bh=0/IHxMdwzZirfFUEDtxYhKAxBqnvOfBcXnmhGHLZwE8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KidfIMQVoIvcZVCdv8NPn4bJAaldX8rRH154qtqRm8yuUbNji3PZla9WdPLrOlm3h F1mDMPCM5axhytJBPc4EjO1N/K8MQxJargxBN2Wv+1d+7ngs9BrQjj6UdHBebEuxSb 5Ysex+lthxVAeCqAhX7FXksR4WsNPBDOw4BZZyF8= Date: Mon, 23 Nov 2020 13:50:06 +0000 From: Mark Brown To: Krzysztof Kozlowski Cc: Andy Shevchenko , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Liam Girdwood , alsa-devel@alsa-project.org, Jaroslav Kysela , Takashi Iwai , Shengjiu Wang Subject: Re: [PATCH 01/38] ASoC: ak5558: drop of_match_ptr from of_device_id table Message-ID: <20201123135006.GE6322@sirena.org.uk> References: <20201120161653.445521-1-krzk@kernel.org> <20201120165202.GG6751@sirena.org.uk> <20201120194245.GA2925@kozik-lap> <20201120200429.GJ6751@sirena.org.uk> <20201122105813.GA3780@kozik-lap> <20201123104832.GY4077@smile.fi.intel.com> <20201123123731.GA6322@sirena.org.uk> <20201123124129.GA170000@kozik-lap> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FN+gV9K+162wdwwF" Content-Disposition: inline In-Reply-To: <20201123124129.GA170000@kozik-lap> X-Cookie: Dry clean only. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --FN+gV9K+162wdwwF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 23, 2020 at 01:41:29PM +0100, Krzysztof Kozlowski wrote: > On Mon, Nov 23, 2020 at 12:37:31PM +0000, Mark Brown wrote: > > That feels like something that should be done with Kconfig dependencies > > like a direct OF dependency (possibly a !PRP0001 dependency?) for the > > driver or possibly with having a variant of_match_ptr() for things that > > really don't want to support PRP0001. Just removing all the use of > > of_match_ptr() is both noisy and confusing in that it looks like it's > > creating issues to fix, it makes it hard to understand when and why one > > should use the macro. > For the OF-only drivers (without other ID table), there is no point to > use the macro. Driver can bind only with DT, so what is the point of > of_match_ptr? To skip the OF table when building without OF? Driver > won't be usable at all in such case. So maybe for compile testing? > There is no need to remove OF table for simple build tests. If nothing else it means you don't have to check if the driver is OF only or not. I can see not bothering to add it but actively going round removing some instances of it doesn't seem great, and it seems like people will constantly be adding new uses on the basis that it's just such an obviously correct thing to do. --FN+gV9K+162wdwwF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl+7vg0ACgkQJNaLcl1U h9Cg2AgAgW1CZvFTYqc5Dxt0wi6xknuc2q+AJ8IrulpzeW3y6wYvug/gq0UKnGe0 RhSfcXLgfzBLImnU7WdT72POVxtH3NahdaxVuRUy8yLpaEjq9HJMfw4FH+gTvQAP qfb/mcZMdXxAG8iXe6RuxOFXAd/CvMSnVvsSNPIX/wZxKDls6jK37ZbhAAJ/GQfT swW+LkfyQoT+f2ydE9CPZmZJyBrNsfVPNaWPbWS+Ifa+abSI8gyuj6yvy+6Fwire /dMRJ1mjJ3ge0TZ++pDKRIi4VOLH6xays9NNMdJh1ioJwmGvR8JkBcJEvmmxk1V5 5ZCPCtoZpqkr8kw4+tevTm0Xz849KA== =1/dD -----END PGP SIGNATURE----- --FN+gV9K+162wdwwF--