Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp899056rwb; Wed, 7 Dec 2022 06:24:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf5rkBxP0FpzjNCAt1B/VXr2UBQrhfF3cvb2BdIp7ZH9cR+UGIY+xP7ziIPL4J5cLdrtRkHh X-Received: by 2002:a05:6402:3886:b0:463:ab08:2bc6 with SMTP id fd6-20020a056402388600b00463ab082bc6mr64227951edb.143.1670423040923; Wed, 07 Dec 2022 06:24:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670423040; cv=none; d=google.com; s=arc-20160816; b=vv6YRWuhCyWLAU/2Dw/M3WOza2kcBFtbqfXRGcdGW799Lp/CnBHdSc3dWDpYHGbmIf bKuhff1QelOWMmd2xIgbdmuOAmT9rEgnfbkCi+q68Jgvrv1bL9bPy2swsfkohIAUcqOg yYFSLJqt7qCyM48GwfucD5yokj1oEz44JHzj22cH3wcsiErkqUFIimP9EnC+WlnS0j82 9kN5b520hlyIPh8PoLTIH3LkoVjBU2Va5rFYyuwtjQY/G90/5nmNNOkIZvzIGeWZG5uP OVTtMw5rR5MUZm5vhCsDQbK/2UzhljwcK1JZsd8z/oWEK+odvle2qBBB0G5BYWruhYwI bRfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ryDZZZ6JKAoBRBhrHwHk0EO0/iXDruePNTueoau6cUM=; b=N7tdk8YGdx/QR4dg7i/4R6XTvP+7SALPN1+touX68HN2KMY/en3jSnOTSX8IbTesZe NuPZcKOXnOUwGtj/OqtHEIF2O+kb5JNfiHwBqm8DiU1k1Kym/tpYTbGzwtKip0E2bOYq tSIS5P7oZX/F7XAIc6RCvkPk0frZFdOIJOIMnAZ3tbliOqptpZ4lWQ8OE/Hq5lbLb5t5 r6dj0ZuD0WF6TEuhSP15V3+TtrgvO9XJyAYs5crJlNnnW68jnT4UU4pnHog0J+bbOw9t E4xDUdFIxM4OlyZV8xHy+HoaJ4bo2umteN2Sr1QyRwTDM/gl1mqbdnbMGj5uh2fw+LjE VYMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t2L79QUv; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs10-20020a170906dc8a00b007c10ac8f9afsi4570059ejc.807.2022.12.07.06.23.42; Wed, 07 Dec 2022 06:24:00 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=t2L79QUv; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229653AbiLGNoZ (ORCPT + 75 others); Wed, 7 Dec 2022 08:44:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiLGNoW (ORCPT ); Wed, 7 Dec 2022 08:44:22 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 460D242F56; Wed, 7 Dec 2022 05:44:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CAAB0616F6; Wed, 7 Dec 2022 13:44:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3391C433D6; Wed, 7 Dec 2022 13:44:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670420661; bh=VFZvFoWtRtHDwGt2tI+fGMM46K2cotQeVJ2L5ZZaBPA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t2L79QUvq4uN2qx3Q4uSBjGr0Q/nhjo51yIDbF6HjGaYfGszqaYo7YRJ0kQVFl5cS xEZv6MDSl+Vic7G51DqR6GOXwVHkkBntKrorhQXEKDgcU6cRygXHwFUF+4Nh5Oplrx xb2VW5NVWqx6fIF17PXh3f/DFqNWRTe+x4jmO/vPGjs1s4JPCPaIfMNW2g8+Aotsmf ZfcKxJBsN5euprGFl3h8uGOeuo1gpPy89NsPsAjY9rCTwX+okEtq6tkiSCeUIdzjhA cOApRlgFifTdi43DUWiETpqMLr/VmJYhnuttWyl9xCyQx4ZzC98gwptD15HP19hnvw F9OotwLpf17zg== Date: Wed, 7 Dec 2022 13:44:16 +0000 From: Mark Brown To: Dhruva Gole Cc: Han Xu , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Subject: Re: [PATCH 1/2] spi: spi-fsl-lpspi: support multiple cs for lpspi Message-ID: References: <20221206225410.604482-1-han.xu@nxp.com> <4ed39c8f-3736-30d6-8d8c-92a4882b72e7@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FHJ0wrEYDAahKs6C" Content-Disposition: inline In-Reply-To: <4ed39c8f-3736-30d6-8d8c-92a4882b72e7@ti.com> X-Cookie: What!? Me worry? X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 --FHJ0wrEYDAahKs6C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Dec 07, 2022 at 12:08:43PM +0530, Dhruva Gole wrote: > On 07/12/22 04:24, Han Xu wrote: > > support to get chip select number from DT file. > > + fsl_lpspi->num_cs = 1; > I am not sure I understand why you are setting this to 1 here? > I am assuming it is because you want num_cs to default to 1 if > it is not specified in DT. > Please can you also add a dev_err and be sure to warn about this? The binding says that this property is optional with a default of 1 so it should be totally fine for a system to not specify anything. --FHJ0wrEYDAahKs6C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmOQmK8ACgkQJNaLcl1U h9DQmQf/dQmK1zhfWMV21+4MZi7jWAQPkVACX1YRD9SdP5J7ibe5UCdIXWgVK7Bd lwYspDicnRBZIDaXfvADRgPQLSup2v+exb+xKbRGjuCC/O7ksuy4o+5l8XDfGpU3 S1AdnIyj30a5glmYiFHqLSxE1bLAlcA4dT6sZ00aWv7lsiPH8HyRhtPWH4W2TgMv Ud76wPUbLFwz9tAF9tUUgRqlOPIRK+O51e4g1g6ErgruBvm0HrFgyUpYEqXS/Lwj McNBNljYHdAejLfh9BPnC0xvfg1WRYR+2+PfP9IRso8PMud4eAwMn/1ir0KVtcyJ czYfh9SX61D2s1KQ7alWZYQPfSxa4A== =pwb/ -----END PGP SIGNATURE----- --FHJ0wrEYDAahKs6C--