Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1000185pxb; Thu, 5 Nov 2020 20:35:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPeq/ZBX4DHLG4OITPMW7zYlQgstrNBxN8PV3r7WxcIeJXVaqPgVKDxCKHHOFoik1M0J4l X-Received: by 2002:aa7:c704:: with SMTP id i4mr144191edq.51.1604637332605; Thu, 05 Nov 2020 20:35:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604637332; cv=none; d=google.com; s=arc-20160816; b=jfyeWBl4Z3Au9ncZW7M0Fk7/18Eb1o0fkBKQiHxitupHUD3lulXBs/ZZXXIHuRjf1g 0A0Pct450V7ublz6xT6l72mfCKv7uMt6L8lNGFM2C9fHTQo6xLUcD3IUO+/hm8xlLvHc YrvJ4bIqvh/IhAsTdaiEn33CAmF8ftyL2Ycr+HRmimP1/D6WDO0V47cci3lWm8H83PbW DuZPZAGk8GeWRKpLnd+lMFadwkAQ8gkzYGgk0jgjxd742rwMFGBbSouB27d9fsY9Xn++ HnUGhoeL2IeDnxhfI4spFT8whvpTv06j/pkNWHgvRrHFSEpIr1hgGry0ot2A8fNswjHz QgUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:reply-to:ironport-sdr:ironport-sdr; bh=mX7N4gkxEdNLI7NNmKvLhW8C7iJXkEZr3M1h/QWkhxY=; b=nHRVCZCSuyilcH+w9smIQMfolWUJyWGqj4Hqb8hcXD4SzZGanRc9OEMPYec+cSkzrq os8aBFdxuQ2RmQnSkHAQfJu0X4/PLfzvv8pxIdJ1sp+6pcWr/Plpn1TB7zD8uDQWITwO v7ceFkG1tWIiXhggf4OkKXCUw8oT9V1s0QxB/Ya22L+hU17h705VgWUSTz6oSai6fHQ6 zItIQv974nLlqQ4tMHyjtq3R0vWO/UWcp3I4JgY0wV4a3wHhJLJGIjz/yBSjGq7+Z7zb OS8U0X/Qo9n5JrkLuhjK+v+rvcbIIaPqc6CTs7yd7DkSrEhrDF17yR0O/wqAMTyQ8ZAc 1B0w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p22si113991edy.347.2020.11.05.20.35.09; Thu, 05 Nov 2020 20:35:32 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726194AbgKFEdN (ORCPT + 99 others); Thu, 5 Nov 2020 23:33:13 -0500 Received: from mga07.intel.com ([134.134.136.100]:29066 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725979AbgKFEdN (ORCPT ); Thu, 5 Nov 2020 23:33:13 -0500 IronPort-SDR: XJ21RBExyM9V8nzps9v9SCnDK0GBZczcSO1dKLB/u1oBTj20cRXu3bP8y/rocTl4LFSMcOIk34 m7pWgQg/1dIw== X-IronPort-AV: E=McAfee;i="6000,8403,9796"; a="233667386" X-IronPort-AV: E=Sophos;i="5.77,455,1596524400"; d="scan'208";a="233667386" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Nov 2020 20:33:12 -0800 IronPort-SDR: 7SctOXFUOGmjDkRR+9WJYNZt298Uat34XoyBlMrWswJPKKqaMnyWUyTDE69dsX4EWvcWq9blw2 mh8/xkQm99VA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,455,1596524400"; d="scan'208";a="326282609" Received: from linux.intel.com ([10.54.29.200]) by orsmga006.jf.intel.com with ESMTP; 05 Nov 2020 20:33:12 -0800 Received: from [10.215.162.127] (vramuthx-MOBL1.gar.corp.intel.com [10.215.162.127]) by linux.intel.com (Postfix) with ESMTP id 73C3B580841; Thu, 5 Nov 2020 20:33:08 -0800 (PST) Reply-To: vadivel.muruganx.ramuthevar@linux.intel.com Subject: Re: [PATCH v6 3/6] spi: cadence-quadspi: Add multi-chipselect support for Intel LGM SoC To: Linus Walleij Cc: Mark Brown , Vignesh R , Tudor Ambarus , "linux-kernel@vger.kernel.org" , linux-spi , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , =?UTF-8?Q?Miqu=c3=a8l_Raynal?= , Simon Goldschmidt , Dinh Nguyen , Richard Weinberger , cheol.yong.kim@intel.com, qi-ming.wu@intel.com References: <20201030053153.5319-1-vadivel.muruganx.ramuthevar@linux.intel.com> <20201030053153.5319-4-vadivel.muruganx.ramuthevar@linux.intel.com> From: "Ramuthevar, Vadivel MuruganX" Message-ID: <5a4f6085-0408-d5e5-5f40-efc7814cbe42@linux.intel.com> Date: Fri, 6 Nov 2020 12:33:06 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, Thank you for the review comments... On 5/11/2020 3:11 pm, Linus Walleij wrote: > On Fri, Oct 30, 2020 at 6:32 AM Ramuthevar,Vadivel MuruganX > wrote: > >> + ddata = of_device_get_match_data(dev); >> + if (ddata->hwcaps_mask & CQSPI_SUPPORTS_MULTI_CHIPSELECT) { >> + if (of_property_read_u32(np, "num-chipselect", > > The standard SPI bindings in spi-controller.yaml already has a binding > for this "num-cs" so please use that. It is also what your device tree > binding is referencing, yes, you are point is valid, I will use that. so if you were using "num-chipselect" the > YAML check should give a warning? In the example, I just converted from existing txt -to- yaml that's why I didnt face any problem. Regards Vadivel > > Yours, > Linus Walleij >