Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp328372pxa; Wed, 26 Aug 2020 11:44:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyf1eVSEmewC7evbrix6h3dPMpr8MCAYLmmePZiysYi3WUFiBYHoVbqxYsSGy4kz69f5I7 X-Received: by 2002:a17:906:2542:: with SMTP id j2mr16549505ejb.442.1598467466759; Wed, 26 Aug 2020 11:44:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598467466; cv=none; d=google.com; s=arc-20160816; b=T+fDCjz0aZi3aVDZ5PLVxHFgnxVHGReNVLjYrL3hms3mnEDZ3PdQbDQcY0gDJCmP23 vnwAMNguEUzZnfxV8Yp0GrFwhw/J//HJfKgFKR5GSmhNfRQTM6wVGQQcF+Ro3C1+CGEn KdkzGqZ7XQtnX/boDpeWVGVO5jAaN8TkN7gYx8wCH75srcdND27hQIhd/7VvKvCoZq2W YTOjhHc9i6bg4Qovzu2PwPR7hXI+ttX7WVgJTE/SVWGVT4cJGl4oNbj9XY+fkQ6/0JX5 lmqkZQrtBkuNKa3jp5qQhn8jgyaEYJQMo8sUCN71/T4q5w6zI0lVUkTC29m83tMaVJ2E lTKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=s81GDbj43Tozna/4glZkUDxhsKqigPp9pcyxgu16XUw=; b=lKPJABLbu2R8CN0jrO2Wr4TidsZ2MyyIr/J6KZr+o/nvMPel7MG+JfocmU6j2Htz0v HV9rdL88G21+l5lVDFe7M0QTF3hyGAr4iW+ijCoJ/FU0rzgKwQRO/4FIf3qsWV/ht4/T 0nnrvwcUoykjxssp8DvOJ73dOB+xt9KRt4VZMGJdXYMqc67fIVS5+TbJk1qC0In4xNvU sCXzDP1bG6W2Ukg19aH8velt9UV84lhmO1xPXNw4Xoj9WmAOUJ3kN5XOAjuucfQdknF8 LdWXEAClSGzZdmmpy38hucbj67qo/huOW1S/elJtPgCDjIzkZhFZWQrby92UJkKKIHLE xzTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XAqwZSV8; 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 j8si1888552edl.471.2020.08.26.11.44.02; Wed, 26 Aug 2020 11:44:26 -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=@kernel.org header.s=default header.b=XAqwZSV8; 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 S1726995AbgHZSnd (ORCPT + 99 others); Wed, 26 Aug 2020 14:43:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:53376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbgHZSna (ORCPT ); Wed, 26 Aug 2020 14:43:30 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (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 7D9562078A; Wed, 26 Aug 2020 18:43:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598467410; bh=ZJ576EINgrbUWdEegD3xeGZDqrWiQvY5FxNFvWpJz48=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XAqwZSV8AloRU2wMta74svPgkPWdde6saSpbbfaGaBLEJpS1NNQ5vEdksVVHBMrZm NKMg/aMDQctJnBPfMb4c2rrohs129CLAyXYc/KsXOTkurPBcb5awaN2qqtC+Mxyn2p 7zyPmKYwQLRwonZ7U8VTCNmng3CjQRQAbWj2SmzM= Date: Wed, 26 Aug 2020 19:42:53 +0100 From: Mark Brown To: Vladimir Oltean Cc: Qiang Zhao , kuldip dwivedi , "linux-spi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Pankaj Bansal , Varun Sethi , Tanveer Alam Subject: Re: [PATCH] spi: spi-fsl-dspi: Add ACPI support Message-ID: <20200826184253.GQ4965@sirena.org.uk> References: <20200821131029.11440-1-kuldip.dwivedi@puresoftware.com> <20200821140718.GH4870@sirena.org.uk> <20200822152118.rlwbcgfk4abjldtg@skbuf> <20200826114758.4agph53ag2fin6um@skbuf> <20200826142312.GH4965@sirena.org.uk> <20200826144744.c4yzgoovk6f4t3id@skbuf> <20200826165552.GK4965@sirena.org.uk> <20200826183338.rwacm5cstialye7p@skbuf> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6tPipYVl+OcoAvSh" Content-Disposition: inline In-Reply-To: <20200826183338.rwacm5cstialye7p@skbuf> X-Cookie: Should I do my BOBBIE VINTON medley? User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6tPipYVl+OcoAvSh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 26, 2020 at 09:33:38PM +0300, Vladimir Oltean wrote: > On Wed, Aug 26, 2020 at 05:55:52PM +0100, Mark Brown wrote: > > > On Wed, Aug 26, 2020 at 03:23:12PM +0100, Mark Brown wrote: > > > Showing my ignorance here, but is there something equivalent to > > > of_machine_is_compatible() for ACPI? > > The NXP0005 is the ACPI equivalent of a compatible (comprehensibility is > > not ACPI's forte) and they're tying driver data to it there. > Where I was trying to get here is that we could have a single _HID for > the DSPI controller, and corroborate that with the ACPI equivalent of > of_machine_is_compatible("fsl,ls2085a") at driver probe time before > assigning the driver data. Oh, there isn't an ACPI equivalent of that. DMI information doesn't capture anything useful about the chipset, only the system as a whole (assuming it's usefully filled). See for example sound/soc/intel/common/soc-intel-quirks.h --6tPipYVl+OcoAvSh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl9GrSwACgkQJNaLcl1U h9BTwwf/UC9FE5te5yLO50ORMpLbd43woAa1RASjtbHEXqqBUGNX07IBofYnizJd Phnq9LBl9N/uri6BSPQ/jTNszToqnL4U9am4WrwTkpLPMZf8bUl23R36QMsUfQLf wtJKpbRhjZbBx1mXDTjICFquc4VblqQb8qpR41/M7+GBCooUeLYSWd1tALg0Kynh 8Au7PM96cdOj+uUYytnDh3ZftBGv8l7WxXVChTByIglgMVDt0nV7wLZTRigz3RVJ dY14oJB2VNZcQNIlBew4FtzggcFG7eWzPNScouMYMGN7hl9Y0Wn6KmK2cwcsEMpV 0cg/JUQ7ht/paLcQbWzr1Mhp471Org== =WS/5 -----END PGP SIGNATURE----- --6tPipYVl+OcoAvSh--