Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp548629imn; Tue, 26 Jul 2022 03:11:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1viR9JM6eR5QDNviXqdH1MJbgHNRPkzeHRFjyc5COHIa1az4H0y+sinaIHVLxTQImNWU2eV X-Received: by 2002:a17:907:6d86:b0:72b:5ad6:6df1 with SMTP id sb6-20020a1709076d8600b0072b5ad66df1mr14240030ejc.264.1658830265360; Tue, 26 Jul 2022 03:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658830265; cv=none; d=google.com; s=arc-20160816; b=Pn1idrEhnuAC9XZo6VePYyBaijFoNgDIaaxw9L/shRVGHQos4Tw/7nB8F2WRmvhTeL okR4qt/6krm8C7bzSuAMPk+vR6acWvxWMIKp20flJnsorACoNBCp0SMWRBUSZACD+lCJ 5sA+Mqwksi92SDVu6tD6ARcVv/hJzYqJKFCoga6Q1C9CXC1qcBG9Ceo5G679DFVqZwSl gytbRwBEbEW+Mcq13jFJEzDgL4E2An8NQgxwMIP7uLntFeoodv+DxzgyMJsoKZVGpclQ x4LvbAw/7TG9H2pdhkVPDlj9JBQmAC+OBt9557niD5phi8pTqFCMM02dGSRavlnAl3Lm oRFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JG0xRZmWb8mvx5i0TSYuzFaz/yiY+cwQ7/x7y0JIQ+0=; b=d5NqK1sgBM29Rv71vsQnVvVwDQ21l4/y2VEUfq1Myx2bM4CWEW1Yjrl90dy7HDRUmA m3u+q2Yrv7b/GvL0MTShvIm/E03hnZvqerb3uYRNVClmttzB8HDgoXXUOLycZqOilmxT dZUX2UzfXKjtNpohKqojIExFKuGYAhrbLAYY5/fjtyJA/rzsKugq6Nzxe4KVvzVbKiQs YBJSZlb1HClOM5rmNMdvUO101BEIBsB/CWDDJjN6h4Df0CyM32jUqEyPtNiaa29KjLyD Z/JTyj9/cl/dRyvkFmyu2i3dMKGEI8+ubPmQGt/wexYrMtA8r3xg+8eF8wgg91lLcDQD 6enw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eAYkTZ4s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lx14-20020a170906af0e00b0072eef713a27si12102873ejb.965.2022.07.26.03.10.37; Tue, 26 Jul 2022 03:11:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eAYkTZ4s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S238506AbiGZJr0 (ORCPT + 99 others); Tue, 26 Jul 2022 05:47:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238509AbiGZJrR (ORCPT ); Tue, 26 Jul 2022 05:47:17 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77B123204D for ; Tue, 26 Jul 2022 02:47:13 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id p10so14338276lfd.9 for ; Tue, 26 Jul 2022 02:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=JG0xRZmWb8mvx5i0TSYuzFaz/yiY+cwQ7/x7y0JIQ+0=; b=eAYkTZ4sTc+PK3E0Ok2+638pi4Yw+VDFEaWLrLgw9i2SeHuFVGjZBZ+oi0fzpCGH0L TkbDzx+cV7nvJXI5zCHMM45U1BHe2cdlJxmcUXbAItFoy7zsRsnFWft9jogs+BxSyifY ItkBpzVb9TIsYt5/dfXem6cQZbOId2mxD8BcRiEIdcVf5nMaxnRVKH9kWVLXhmZoLNd2 +rnAVIgPEcx4eR7YHId0vwmPQBLGJWdE/9n9v+meAeUqT6PPZpXo9AyvgBMUp9tM6bac 85/Dch0ioAmYIqDtLGVdzXjQVK+jB8cH+DE2mA3EB+i6clSIOisOd4hIyhU0LIc+BvyH sqtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=JG0xRZmWb8mvx5i0TSYuzFaz/yiY+cwQ7/x7y0JIQ+0=; b=JKzddtNUC39VDkteMrjz2joGILzKoWJNZlVH32X5EVzST25iDHun+VQaq98Ut6qa2a N7X7W4cyjy3FlcA+fGJn7bQVl/4JA2nsEuDAIk8OEW02Cd8iFaMn83bNT1y8f3F5FXkj yGsnTzC/v7n3dKtqOhqNnbvNhQMg8qBwW6W+AAr6Ch0ou5tkID1lCmZwfCoX5qDfgHE9 NJK5a7ZU8drBadmOEcRE683QFWfbd0waM53SfGxNLMO/19Tr2VAstNMcwIsQOm7BcIXo btur1fNBjNHqTPV8ioi+fqhcTx9hchHmZsNtgb8m2/0EnCVrR3S18oKVyTCJSiugPDny FaJg== X-Gm-Message-State: AJIora+blYXxXKl5rQY8A63XNx6Ud0DwcR2y+nEDva9grv7jb7YH0fmK uBfojbMEJULf49C/7eMTW41k7A== X-Received: by 2002:a05:6512:4020:b0:48a:8d1b:c8c3 with SMTP id br32-20020a056512402000b0048a8d1bc8c3mr3589538lfb.131.1658828831837; Tue, 26 Jul 2022 02:47:11 -0700 (PDT) Received: from [192.168.3.197] (78-26-46-173.network.trollfjord.no. [78.26.46.173]) by smtp.gmail.com with ESMTPSA id g31-20020a0565123b9f00b0047fb0d5e049sm3120559lfv.273.2022.07.26.02.47.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Jul 2022 02:47:11 -0700 (PDT) Message-ID: <20869b88-41f3-9e9c-347e-17c3d01baa5d@linaro.org> Date: Tue, 26 Jul 2022 11:47:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v2 2/2] spi: npcm-pspi: Add NPCM845 peripheral SPI support Content-Language: en-US To: Tomer Maimon , Mark Brown Cc: Avi Fishman , Tali Perry , Joel Stanley , Patrick Venture , Nancy Yuen , Benjamin Fair , Rob Herring , Krzysztof Kozlowski , OpenBMC Maillist , linux-spi@vger.kernel.org, Linux Kernel Mailing List , devicetree References: <20220722114136.251415-1-tmaimon77@gmail.com> <20220722114136.251415-3-tmaimon77@gmail.com> <0c8688d5-b0c1-8cc1-ec27-292acbb38dfc@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/07/2022 10:44, Tomer Maimon wrote: > Hi Mark and Krzysztof, > > Thanks for your reply, > > On Fri, 22 Jul 2022 at 21:57, Mark Brown wrote: >> >> On Fri, Jul 22, 2022 at 08:47:24PM +0200, Krzysztof Kozlowski wrote: >>> On 22/07/2022 20:43, Mark Brown wrote: >> >>>> ...with a fallback list required by the bindings so the driver actually >>>> binds. Note that bindings are currently not in YAML format so there'd >>>> be even less enforcement of that than normal, and as they're currently >>>> written the bindings don't require fallback. >> >>> Yes, the bindings document should be rephrased but we were living like >>> that for few years. :) >> >> The binding document as it stands only has one compatible, there's no >> existing problem with it other than the YAML conversion. If we're >> adding something new that requires a fallback we should be explicit >> about that rather than have something that's actively misleading where >> previously things were clear. I don't mind if we add the compatible to >> the driver or document the requirement for the fallback but we should do >> one of the two. > > is V2 good enough? adding the compatible to the driver and the document? > Or should we use fallback? > If fallback is choosen, can you explain how I should do it? I propose to use fallback. The preferred way is to convert it to DT schema and then add new device support (so two commits). Other acceptable way is to rephrase the TXT so it clearly states desired compatibles - one for old device, two for new devices. There are plenty of examples in current sources. Best regards, Krzysztof