Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6285179rwl; Wed, 22 Mar 2023 08:41:22 -0700 (PDT) X-Google-Smtp-Source: AK7set/Hcp0hiQ86589WCHifDXEU2s1tYazatKlD08Liyen7N5MqS8xt0qsGMdRFEXOhKUtV51oi X-Received: by 2002:a05:6a20:be25:b0:db:443b:58d0 with SMTP id ge37-20020a056a20be2500b000db443b58d0mr85413pzb.12.1679499682675; Wed, 22 Mar 2023 08:41:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679499682; cv=pass; d=google.com; s=arc-20160816; b=gB/N+ekJEB2uMui6FETUdQH/SFtwWQIU1Z9ZngbRNTrvdDsifv4mdjD11104IOdnNg 5gSs2ofBkazxB3CxnZeIz+M1UBZJFOXFfDRvK8eDrGor0rSvU0tt8pVuCKXJI0smDzWc 0Q/HGWCitvF+e/3hpOpf9Rn1d+uYCu0nCN0MV1t0m7t/XKpSz4hTpgIBcsyk94IFBbLX D5Q0ZPNQMx5lQT0UD2XJWg+dFKEOkla+woSsoE2TaSqp91a6QCI4egpOrs1NZpgi1FUt LqJl8QdgFUD0T+yEi0AHGStK+7Vx7Tog05vmCD+vk8d48rmfoTaMHR6kXQkiL8gPpjfd EuoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TFJ3YesztHquD0nm5em9+9Nu0IJw5d4pfg/EFpi9D8I=; b=UEReDMd1wTkwvJFMDWJOLIHWM4nAGrq7JPZIjFnwhltOIRYsGDqvrDeCHJLExDLPxV dImYJ3g7a6JFtq+l/XjnYqUV/eYxucV4Qk0H8UZcG8//P85Va/eqklTfHRNxUT/Fdu/W DmJAGkUbPcI+HG7yhXIkZBcYScXtJh53tJZh2mXAXXgDXE5xoO672mVN/ANHX337igXy YFMpNJTu1KmORnP5/Rx38CysZaPNyIKoEiEWQrJ0A47zG/kbrs1JCw9qCLs0Sw/cMKum eoQG5RbmuZoRnhgUcuF94u07qachtl9wMtJOkfd8hZGrHuXqNqob80O5BVAgrlQgtwqp WcYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=meMWFjo+; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l70-20020a639149000000b0050bebbffdc6si16382886pge.586.2023.03.22.08.41.10; Wed, 22 Mar 2023 08:41:22 -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=@nxp.com header.s=selector2 header.b=meMWFjo+; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231235AbjCVP0C (ORCPT + 99 others); Wed, 22 Mar 2023 11:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbjCVP0B (ORCPT ); Wed, 22 Mar 2023 11:26:01 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2059.outbound.protection.outlook.com [40.107.104.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEF2461333 for ; Wed, 22 Mar 2023 08:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EReBtrL9dWpx0hvGqCDaHbMvvj77vae0kA+y8g3vm33QFq1NdXC76njgddb87eTAw2kRbpR3eNRgngUEEWcNBZaYmcyn0+qR0YnuzIlMZ+Yp7z6MNOHGQeJ2DVjr/j+zfgKaWJopurZW2MkkY+QLMsGpsWbdzfxeaB+Tr1YLpuxOFSycPEgDI7TFPWJex0+45I3ORydBpKInz+Bv4Zb1Nx7WKVT/MQi7ULBNGgCSYJk6U3ujkOO12LJfFhTbGlYxBssRQYI7cPMpUTqoTr9zFZr4NvQP+1LJXvUWq57aDoYeReoadhp8WZTVWPFlJl6mQyIRVIOiFRkGy91hPC/+zA== 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=TFJ3YesztHquD0nm5em9+9Nu0IJw5d4pfg/EFpi9D8I=; b=AxvsR5oP6LNsSCVBoWbhV6DMhuKzHNSw3NAfRui448eq36P2PIcleA2CevhgZier1r5jRBaokMDkpxCbNXPToa9Hw5SgwWaiOlCQ9KEfzpx1tbvYGRvIJazcL7QVGBQ8lXXaQLc5Pfw/yaBiP5ZJl0iE0ytFvCE/Pd2j/XK8dyCS6WPx50C8akB/tRMp5mQbmX8ySuFG/wG1M1dgrqQp2ZZMIx9vWtSwj1SOxT8CrM68e8AwukdQKuR/YGqGMWtMz1I+99/0bMdmDLegorf1YzTuWige2yACBldPmLZZQTVP0oWOqJIVRHdzHOj6Zn14tNvuyGp/w02S9coNuQozIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TFJ3YesztHquD0nm5em9+9Nu0IJw5d4pfg/EFpi9D8I=; b=meMWFjo+iWBM5gqgvD+vYAYMV4qGFb+rvYTTQIKmOe8UzDzz9zUhTa8dlzXhQkAXi+rpoeE46hvGsKZCpQ0q0I97vdFQBUg0n57i3RR8+jinKI8Wc0myshPWaTP1496P/tqnlwwrQmY3XTA/sVc2Om4pyu6ua1CMbF0NqWV+rHE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) by AS8PR04MB8401.eurprd04.prod.outlook.com (2603:10a6:20b:3f3::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Wed, 22 Mar 2023 15:25:54 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::29a3:120c:7d42:3ca8]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::29a3:120c:7d42:3ca8%7]) with mapi id 15.20.6178.037; Wed, 22 Mar 2023 15:25:54 +0000 Date: Wed, 22 Mar 2023 17:25:51 +0200 From: Vladimir Oltean To: Colin Foster Cc: linux-kernel@vger.kernel.org, Lee Jones Subject: Re: [PATCH v1 mfd] mfd: ocelot-spi: fix bulk read Message-ID: <20230322152551.q5sjc62yu3ijp4wj@skbuf> References: <20230322141130.2531256-1-colin.foster@in-advantage.com> <20230322141130.2531256-1-colin.foster@in-advantage.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230322141130.2531256-1-colin.foster@in-advantage.com> <20230322141130.2531256-1-colin.foster@in-advantage.com> X-ClientProxiedBy: AS4PR09CA0014.eurprd09.prod.outlook.com (2603:10a6:20b:5e0::17) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|AS8PR04MB8401:EE_ X-MS-Office365-Filtering-Correlation-Id: ce921e47-4124-441e-4f05-08db2ae9ba6c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1LcyjhlOVaSKwV5eLbrsrBICIayv/1Ymv5LHdFpjNJ6ybMrroRjaKFhYM91ivc/ecwyoORGlRtwn6f97RKbhErDSbTU0W6L7LHLieS+DiNSKYkPUPhbTJ92LvYC1Z4uSMXP0xNNyKAPIcv5FF6m5wbDpp+9gqtjR0VDmUEffJognoyMzv69Kq7ibWWHtIPqLKxlKAr29vML799hQF/C4M+6F/S701ChQJAoLhUCQN9IM3z/AzgftkHuRBGIaWfEfcK1HbvyOp61pBtPpkIO5oHlpOx9VH2c7t//nOzZb5WIY0wzCgNynnyUyFuFObKv/BqbzuQ+Vwhj8KWR/ZPp3aWSBhUjhH067A/M8Nws+lHAjwAlIj3oJq1rxRo7oFwKlsJMNv25kpBaxieiViW950fC9jBecjUv/cJyO3nkWjUeVSv8cQP28pWZlja1l/NnD/CRyfRY55oVy1tq6N9RekUa6CPFgAer0x73MdnjKuLfzXlGlQvslHWMWOTGV4J7D3zndBexnxAzNZE2TAeGiHMxkxg7DyTi25RXC2bjhOsv81CJbAaThrs1DBJELNiQk2fmvzi2Q0DDqCRZV59ScbVUFJoc5PuGQaRXf1D8JnATEvnibsv7ydpjpBAK+06k10DPjfKgEngKt5XSpSfUsDg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6452.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(7916004)(4636009)(346002)(366004)(376002)(39860400002)(136003)(396003)(451199018)(186003)(1076003)(6666004)(6486002)(6506007)(9686003)(26005)(6512007)(33716001)(38100700002)(8936002)(4744005)(2906002)(478600001)(86362001)(83380400001)(316002)(44832011)(8676002)(66476007)(5660300002)(6916009)(4326008)(66556008)(41300700001)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?NFj9R5TKEPb5D13b6XgC9wY3QynJffchPFHBPcW96b2ZrjgQX5rFNKY2YGai?= =?us-ascii?Q?6wuSSiWTP/vTURBBXlc0n2dO0JRrZYyEh5DeiWOq52vgG0lerrHgvqjcNhdH?= =?us-ascii?Q?MBWSYBb9U2oFQ3zF6N2imlg0qS/dyIiXYA4B43d2Hs+cK4O0ZxHC1rIKSxfp?= =?us-ascii?Q?9zaKK0eCX2p7qBVoN/coG1OwZdQwdfvUAh0oKC2WONyHVRHyc0cdplBLC8jv?= =?us-ascii?Q?merOOBdFeFgrGecJBWHol5xfPvXJbeEdU8UwO16RM2w42wfQcHbcl57M0GG6?= =?us-ascii?Q?cP93evonZItbHuY/IQZfpmcc3G51dh77nPxw+1B9qS9rHAHpVkT1qk2HP2Cn?= =?us-ascii?Q?ekpxmuOpW6jcs8fzaXPCKlIZ1QmoVjoOsu9lbcyN8TtIPKr1VxpK5Yqia1FO?= =?us-ascii?Q?eGlvSKVnOMt3mIgNiAK3+r6EQ4S3eDCYMxThAt/WV/Cy676z0VCCXvata+1I?= =?us-ascii?Q?WdKt9he9luStDHgmhGfq4guS/lzQTfcdKD+MOqCgW9hbE2kMLKAb59TZfm2L?= =?us-ascii?Q?jmbKGg9mgP/YBxufMfshwo2tNnxk3qicLiM5GuX9D7PUMftRJ4ALoXHESnQd?= =?us-ascii?Q?oMdLUXUkyg/7rHmyebtpTU+S68L0Goct45H5QwQ7PpOwE+hAmnV5sF/l+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MdYSbnU3b+n/DFpmEI2Z+uTrlZB+4Ittb9HnepjG4k?= =?us-ascii?Q?XKwvXayC5sYIikyNu+i5aCYFGVHiUpbM/f7xR7+I/u3J6BU1StI+FgglOpj6?= =?us-ascii?Q?3g=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ce921e47-4124-441e-4f05-08db2ae9ba6c X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2023 15:25:54.8026 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YxzGSWIEeVCZmsGMxDXL2qc3QfG8X3/7izbDP2mQWRi2EEGnElSWenY/HJd/TQjsEfmUqnh12yh0bTJtCj7tDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8401 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Wed, Mar 22, 2023 at 07:11:30AM -0700, Colin Foster wrote: > Ocelot chips (VSC7511, VSC7512, VSC7513, VSC7514) don't support bulk read > operations over SPI. > > Many SPI buses have hardware that can optimize consecutive reads. > Essentially an address is written to the chip, and if the SPI controller > continues to toggle the clock, subsequent register values are reported. > This can lead to significant optimizations, because the time between > "address is written to the chip" and "chip starts to report data" can often > take a fixed amount of time. > > When support for Ocelot chips were added in commit f3e893626abe ("mfd: > ocelot: Add support for the vsc7512 chip via spi") it was believed that > this optimization was supported. However it is not. Details? What about bulk reads is "not supported", and not supported by whom?