Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp323444pxa; Wed, 26 Aug 2020 11:35:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjlJbIfCh5TOcEZnz1Jn1wmPuzrAKlMWh7N/8Z19Jl+FDrXmuauuKSG99Oe5ei+jjW0ZRL X-Received: by 2002:a17:907:35d0:: with SMTP id ap16mr17889302ejc.457.1598466902800; Wed, 26 Aug 2020 11:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598466902; cv=none; d=google.com; s=arc-20160816; b=gGRuz/LjL0oOGA0WWuWwjiF4MTJDmNo4EECBedVcB/wemAsh49ozSYBiETk1fYeIPb 0YSVD8w9pkA7cCOKr+igPST8oZgs/yti4koGVKcjLhNVsR7q+JpjwbC3EePdBSCmOndX fKD0sm0WsvEUGCyHzB5GXp0DNdnK/5LiJkeyogUv5URFY/CK50rhUVQ7c9CcWeQLdrjh 6eiev176V2xrzAnr44NqWrH/NJrDDG6SU1A0+8AHy5TNOiIoNyXt8raGysMq3l1f3mPM KKlueLKmY1H/Rr5Du7k6NTHncfpA0ftWuPn1zZcci7B66kZxwVaQ8hLprqa0jC4n3+/V 8knA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=r5kmOizgxtwlauHhhTaD0zLARzpI1VK6AvYoiDVPxbI=; b=uKdt3GmuXdxAW9x7oOVc8et81BazwyG7HW/qXjbBH7OXA4G6pfg64+VI7tvtthn36B K4tCHPcafhWgJM8LIoz9Pod00hg8FZkcrCOudh07YaiW3tCFJejWJtWISOC0OSffwTPO +cVrcaAsgaKlGkvi6rxfmXCLS7Fwcisamgi3wF3gsDOOt2Y5mzbUOapAamrfq12L5PHY DWDBdQU8Zx7EHOUH/5QZa4fJvpPC1/69SevSj86/BlSEJKBcuIn8Tj7abygJf/X7HTiP 1m+8j/rJZMbL0zIKb2GoXjE5wOs6IwezAFgXyt2XPFJrAOK7MIAO3wweNhtkx5ErBOoe lXpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="G8W5/xzw"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si2457450ejq.699.2020.08.26.11.34.39; Wed, 26 Aug 2020 11:35:02 -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=@gmail.com header.s=20161025 header.b="G8W5/xzw"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726820AbgHZSdo (ORCPT + 99 others); Wed, 26 Aug 2020 14:33:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbgHZSdn (ORCPT ); Wed, 26 Aug 2020 14:33:43 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08050C061756; Wed, 26 Aug 2020 11:33:43 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id l23so2608466edv.11; Wed, 26 Aug 2020 11:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=r5kmOizgxtwlauHhhTaD0zLARzpI1VK6AvYoiDVPxbI=; b=G8W5/xzwifQCjyEKbG3xTJZCOrYyj91kZ7Mh8iovYXInrjXwbIWRxvBJbkhWUOZwst YwsPhO8jN86sKW0tNXXJWZukIt16K7EG4Das5IrOifYSNFIqKFj02t8tN4IxtK6dSDGC WS2nDA5qSX00tEutTvPjF6LstQlxJHcuWN0AQ0poRHC5F4PCwL5gLw/VZ4JzD7C8gyT8 x3PjwOdjqgup/KoxRco/669QBZdZiTg8+ku/JBV3maW7MFQmbgAmK46cnJpcGFGFAZBH 7ziT60smA77rfBzTOwL84v13bIEamkaqgXaVheJ5OTO+aDPM5If/5dyQGgOGFM1O4Dnb V+MQ== 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:in-reply-to; bh=r5kmOizgxtwlauHhhTaD0zLARzpI1VK6AvYoiDVPxbI=; b=O8S8HgAdhD/mHw6QhIxy44i1KT3ZkJcH5wsDPV+7ZEkmhmUioQK/OxcEFwQzzUq/zC W9BMrEoQ8PTTGUUn7M1E4oQNZ8JxtE1fTqoOXBsBJYJZDrQFqTnAqZMX4620FsCFQaQc /dp+EzRXJFOQr4CeXnkKmSQOiN9nViMJ7wHPiwOBfntBgPPM7QVyJH5gL1B7Pnsqs1BE +tn/5Lfj9RnXAeDFvG15mPePvichieV2s2GdPxRXgwH1vwkid37FQLDv7AaeKFxU0Lyd 2qq+GSuXKmTqET9THdHK0JBn9Deq9v0V6W4kmMnI32M48rSSbHZCDDEGGQfwCgxGLau1 iF+g== X-Gm-Message-State: AOAM532W/izc2e+gim9wZ/LBpsDKIsVG5DJPhjBAuPip1XWryodUQ2HC s4U1UsK6f9i+Dxt5jBa9YC8= X-Received: by 2002:a05:6402:1210:: with SMTP id c16mr16543655edw.71.1598466821634; Wed, 26 Aug 2020 11:33:41 -0700 (PDT) Received: from skbuf ([86.126.22.216]) by smtp.gmail.com with ESMTPSA id g11sm2648135edt.88.2020.08.26.11.33.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 11:33:40 -0700 (PDT) Date: Wed, 26 Aug 2020 21:33:38 +0300 From: Vladimir Oltean To: Mark Brown 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: <20200826183338.rwacm5cstialye7p@skbuf> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200826165552.GK4965@sirena.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 26, 2020 at 05:55:52PM +0100, Mark Brown wrote: > On Wed, Aug 26, 2020 at 05:47:44PM +0300, Vladimir Oltean wrote: > > On Wed, Aug 26, 2020 at 03:23:12PM +0100, Mark Brown wrote: > > > On Wed, Aug 26, 2020 at 02:47:58PM +0300, Vladimir Oltean wrote: > > > > > { "NXP0005", .driver_data = (kernel_ulong_t)&devtype_data[LS2085A], } > > > > Based on some other stuff I've seen with ACPI on NXP stuff it looks like > > > they're following the same scheme but only caring about that one SoC for > > > the time being. > > > So, no argument about caring only about ACPI on one particular SoC for > > the time being, but there's a big difference between a solution that > > works for N=1 and one that works for N=2... > > > 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. Thanks, -Vladimir