Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp284395imn; Wed, 27 Jul 2022 06:16:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vkjGPoyvE5SvqI4d+9zNeglye5IXLVIY/JpDj6EBNyJY1IFj6olMszMyZtA8C3x57aA2W3 X-Received: by 2002:a05:6402:1011:b0:43a:76bf:6c40 with SMTP id c17-20020a056402101100b0043a76bf6c40mr23193586edu.352.1658927790615; Wed, 27 Jul 2022 06:16:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658927790; cv=pass; d=google.com; s=arc-20160816; b=U/0e6DBOEea9PuIjWoCJKOv9RsPM0/QJqu0C8bG7YwzxK6w3UWFNrwnj4kms+qHOCs Yeaz14UNATn/gN0YTTAqIcQ4zNQsxORezLr6WOMD1CmCU0LcqbcDYelIEcEXDmYT0ozl OtHdIFrOEiui9pqz2R3Cwe/K6wNwHURAZgDRzKx4suOVim6s5Zby7OomeznETBGKThTl pm4IPETZix5hArxpNlHt3DICKqRRDY7Fu0OqwZXACAGDdicNluC26aVayk5okIyYu7Hw 1dZwanBSf5AcA9erXvLUzb7bmFQ0Padzq21Rb9DlrGiS2Meo2+EkCBH+zJuDDvhOun8T 1SdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=BpbHcqfU14VeVOuTfeJvjqi53KIFSy66f9F7/hD67kw=; b=X/NEu1coh1L4ESeqdVcREkfsxPUGf+coOh8OvdUZ0T/Ae5GZtGsnSARjEQ7GkUcceD KXJwE93IYOUL4OG4qmhBasMyo6PeAMuwT78uOOjFU/NFLidswXJgBMqlQ6bqqaAV7ScO LsbJs50Zimq5Zyxlrs5SduVp5TCKUqXZmmZQAag/g8ojaiykBO2qkN5YplmvsWqExpRc St8EONPwsRJYgqKzZdynID+fLYbK4nUGLq8cZgj68d/YPJ8pKS+zSLFRTrP2nfOFT/7+ 1PpOFzBe09h/gz+ivSMhPWEUIh0yPTwspdGS8W9NwpBNe5BjV5bWOtjDNe07YI9EsE7t UJ5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=vSMQ+HkN; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020a17090672d300b00726ed19161bsi3262347ejl.921.2022.07.27.06.16.05; Wed, 27 Jul 2022 06:16:30 -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=@amd.com header.s=selector1 header.b=vSMQ+HkN; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233528AbiG0NCi (ORCPT + 99 others); Wed, 27 Jul 2022 09:02:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233490AbiG0NCh (ORCPT ); Wed, 27 Jul 2022 09:02:37 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2084.outbound.protection.outlook.com [40.107.220.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE989286E5; Wed, 27 Jul 2022 06:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iiboYGJzteCtdKIxxNwA/WM4xD3M3OHs1dKpPdz8xyKkLnMuTZc60FYOExGuO1mDNTh3LwWoZuTPN4XKFy9bHZMlU2bVM9/m1INhZpFvEOAfg/TqNd9qOwy9mUwAFugyL4Kg+GahGcjhJiOrREOVzkI+7xafyqCUHoipKGDpF0T56gUZW6h9aTziRoAjiWlFVjQPqfaXgQBG6B5b+gFibDJNOCwKEIyL53kfOS5gg7r26nYsf7vSD50yBVTc3mWb4CaegiDn6s4hnbGN+P1NsaDfBVmOPjmtxvI3zJRtdqq89GT6RajxxpD9dcrdKYVSLpkscSuRHyIkoDi2xE88AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BpbHcqfU14VeVOuTfeJvjqi53KIFSy66f9F7/hD67kw=; b=ccqN64jIrZSmXTRiLVM6miTWXlIJ2siJxb2pdJa1vLqgIruvAQT7jrmJbCkhlhlJafFzTkEmowZlHHjrfewTGu4FoT+WtOjCBG+0HoM8Fw91eMOXeQWGBISqV3IQLrOhkIHLJI96ePTgF4XByN4Yb/qZcsQ9e8RWHliceNHZYVyIsFe5VmzjiWd1vfYvqWsEcVWAgc63fraJ9hTcwEO/A1vbnkiBcFoKBk8BOE2lRLDfs+PGT9YTCf4KeFjjn1P+oF2k3pE7f9w968CTSPUUpqearm33qklWTCmWG6w6oPo+FrCNeeFRMWvfW4uY8j6deiOvaQRYf0PHOafA+kCBIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BpbHcqfU14VeVOuTfeJvjqi53KIFSy66f9F7/hD67kw=; b=vSMQ+HkNPN8tBOxaHeKdx7Vyhokusu9u25DPXjJkEWFEq3elmydZaA22hxHjjCnHekHWTUZxCE7/L5z1EaS1rAk6O4P27WCgkOZRtYDMk7uhLyVUDQHy6MeuBkU5C+vD9TpUWdO9lNk7QdENwcqK/KxhyD9jOqWJ7lZ0PbZ4qaU= Received: from BN7PR12MB2802.namprd12.prod.outlook.com (2603:10b6:408:25::33) by CH2PR12MB4008.namprd12.prod.outlook.com (2603:10b6:610:26::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.25; Wed, 27 Jul 2022 13:02:31 +0000 Received: from BN7PR12MB2802.namprd12.prod.outlook.com ([fe80::30c4:f356:a806:509a]) by BN7PR12MB2802.namprd12.prod.outlook.com ([fe80::30c4:f356:a806:509a%7]) with mapi id 15.20.5458.025; Wed, 27 Jul 2022 13:02:31 +0000 From: "Mahapatra, Amit Kumar" To: Mark Brown CC: Amit Kumar Mahapatra , "p.yadav@ti.com" , "miquel.raynal@bootlin.com" , "richard@nod.at" , "vigneshr@ti.com" , "git@xilinx.com" , "michal.simek@xilinx.com" , "linux-spi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "michael@walle.cc" , "linux-mtd@lists.infradead.org" , "git (AMD-Xilinx)" Subject: RE: [RFC PATCH 1/2] spi: Add multiple CS support for a single SPI device Thread-Topic: [RFC PATCH 1/2] spi: Add multiple CS support for a single SPI device Thread-Index: AQHYeZhXApErq+32kkmuJFVVfXogSAG7F8aMAeAoVR+snXQgIICishAAgCJ4JhCAAFqwgIAF7C1AgAB+foCACo7NsA== Date: Wed, 27 Jul 2022 13:02:31 +0000 Message-ID: References: <20220606112607.20800-1-amit.kumar-mahapatra@xilinx.com> <20220606112607.20800-2-amit.kumar-mahapatra@xilinx.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8fabb8b4-0571-4772-b095-08da6fd0440c x-ms-traffictypediagnostic: CH2PR12MB4008:EE_ x-ld-processed: 3dd8961f-e488-4e60-8e11-a82d994e183d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: eKkUjZ2eygXE/7T5JILEu/9eHa8/8vaTj8KSwJamyWUiG4mPQmKXRjkw/O1hQZwzVONDYUxdacgwQfY1N5/h88tyBWLD2PV2Mj2QtbvwsMGGqR1UX5FFgGO64nsMVDiKCKkDGbKUz5aeei0HLcpheVN+XguaNpG78vKiUDvbP1pIk9zvRkEeI6nvtE0CFrog2sr1r39AACFcQBB/ena0rhpKKK1D4a0QY4Lf257SNW9turWwTU2fL5dEBYc82NwvQZurCj/b3TvmDZONFTgsSM3qDjVa/TKq1bEElRJsbr6PvtKV+DDXov6nwAcwsCU/UOWCQkRrznynpzWUcfr3JH/r/l8y0TMHXVuB8arM+0HGNsX+Jy8SE07vvYARD+GIrpfzHDX6AsdexlrGp27tw8HL7vnhqjCYJWPx3nYuKqzWsq4mpj6dFlwqXU2HRMsq3nrvy/yWN/wHwkIXMj8cTc2VraVBrBaDZBSWmhJaseI7LPb/da6oRzayu8IfSgWLEP35ws5wAYzUQGvLqg4VrkQbVbk/zlmkkmU52dxglvVwTO/eBWYMqReIwMtL40p5BeenPdTAZNfDQhZemXWarnvrmxl8QOCzAis7M1Y7bzhsWIleddFPi0guOaKn30GABtxn0kPefBiFIP/YvJt/nmP8CzaqD5nKgxIMqVcyf3355i6jWSw2Zxfx63KNkojcfpeG3cDAC74YsM9jqprFbZ8uH1YspHHzx9ORDYC5qJSeUIe4C2KLx4MV50U7d8xm/akl8rQi/p+d1be8tUXGMCSE10YDhceNJEpXxnXf8sg= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN7PR12MB2802.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(366004)(346002)(376002)(396003)(136003)(64756008)(76116006)(122000001)(66946007)(66556008)(8676002)(6506007)(4326008)(66446008)(41300700001)(66476007)(7696005)(5660300002)(71200400001)(7416002)(38070700005)(83380400001)(478600001)(8936002)(52536014)(33656002)(38100700002)(53546011)(316002)(2906002)(55016003)(86362001)(9686003)(6916009)(54906003)(186003)(26005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ZEEm6Tqg8K4E5QgIO+E+DVwSNqmUjOuKr+9Y9QN/Aww6hsCPEq5YNdRdPnzA?= =?us-ascii?Q?KlZLuHM1HgDHKeT9Nf8PXpH47tD+YLslzBDT/R9z7INGP7ncGIZJaKNH/DOu?= =?us-ascii?Q?CFcNPrlrWFlepoBu0zDLsETY5FYUeFv54HCEVRCJzfHPUA087V+2SoxXUwJ9?= =?us-ascii?Q?/AF8RfHA+IHUadKUnJXZv7/rsXN+yN4pksKVIlz0dKSJAIb0SeUg04N5s6GT?= =?us-ascii?Q?q/9pxitIDVW/0jxHMll0ymXiz+j2y8vYqEwmolZVrTb1MvAYAVWbfEXPqthF?= =?us-ascii?Q?gvNb2GcAhPICDKrZOc3dxY9eMDnOZNESjeYuJESJ8Rp7BIv8Stsziu3xjkSu?= =?us-ascii?Q?9ZH4OnZM8S8SEeFeupafQMwh2RF6K14zrXubo/7xlItML477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Y3UB4MbMpQnbCj+2hMXdv8eLVTBrOXgVL8L?= =?us-ascii?Q?JhFfcJJ4lPemRjvCaW7E3lksJNjq9nREIXJiLf32Ysl6FSjkuXH39HzVYTJx?= =?us-ascii?Q?sJGd5Ap0ZEI5MDncAb10v4aPTBeIgZUlNk4n6Qd/0J1i/pzPGAjbn/eD5I3J?= =?us-ascii?Q?Xhre0Rz507lb6A6mpTmvs9kGCuxFN6oSMAqYmRFWeG0Z0i9caFfYbCjRf517?= =?us-ascii?Q?osXSLif+jgf9iBb4BIUuafz2mm2hcEI8/iaJXVINLwqU3TFGVwhd3z+wwuMZ?= =?us-ascii?Q?f5VuU01PtsESDn3bknE=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN7PR12MB2802.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8fabb8b4-0571-4772-b095-08da6fd0440c X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2022 13:02:31.1440 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BiRUQqhFX8P/DWO1HO56Ovrx6CSTg5Em33R2RLR58kuw1SgshG5ljyDPW3oWQh4iBtEgnMe+X7yI+WBlgjeoGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4008 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 Hello Mark, > -----Original Message----- > From: Mark Brown > Sent: Tuesday, July 19, 2022 11:23 PM > To: Mahapatra, Amit Kumar > Cc: Amit Kumar Mahapatra ; > p.yadav@ti.com; miquel.raynal@bootlin.com; richard@nod.at; > vigneshr@ti.com; git@xilinx.com; michal.simek@xilinx.com; linux- > spi@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux- > kernel@vger.kernel.org; michael@walle.cc; linux-mtd@lists.infradead.org; > git (AMD-Xilinx) > Subject: Re: [RFC PATCH 1/2] spi: Add multiple CS support for a single SP= I > device >=20 > On Tue, Jul 19, 2022 at 01:21:41PM +0000, Mahapatra, Amit Kumar wrote: >=20 > > I agree, so for checking the controller multiple chip select > > capability(using more than one chip select at once) we can define a > > new spi controller DT property like "multi-cs-cap"(please suggest a bet= ter > name). > > The controller that can support multiple chip selects should have this > > property in the spi controller DT node. The spi core will check > > ctlr->multi-cs-cap to operate multiple chip select in parallel. >=20 > I'm not sure this needs to be a DT property, it's more just something we = infer > from the compatible. The name seems fine, as does the flag in the contro= ller > data. I agree that we can infer this from the compatible and set the flag in the = controller data. >=20 > > > the chip selects are available and that the controller can do > > > something useful with them (and probably have an implementation in > > > the core for doing so via GPIO). >=20 > > Here are you referring to the usecase in which a controller > > implementing multi CS support using GPIO? >=20 > Yes, we probably ought to. In my next version I will add the implementation in the spi core for multi = CS support using GPIO, but I will not be able test it as I don't have the n= ecessary hardware setup . Regards, Amit =20