Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6312331rwl; Wed, 22 Mar 2023 09:02:38 -0700 (PDT) X-Google-Smtp-Source: AK7set/HsZGM6sRA6o5touYUu3wt1pMyzWwkPF1Xj87Rev8EgCStviBwvLenuzLjv+IVUnf+Baf8 X-Received: by 2002:a17:90b:314a:b0:23e:f8e2:9ec8 with SMTP id ip10-20020a17090b314a00b0023ef8e29ec8mr3995398pjb.16.1679500958403; Wed, 22 Mar 2023 09:02:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679500958; cv=pass; d=google.com; s=arc-20160816; b=pZK7VHmeYZ84U2wrlU1Itl9j96bg1SDLX51Spifqq6EAHUlyxkmu4sQMLQzT9gVwKl VghEKPi7mePtSD3qKZhCNfCj+l97rk5z+P3r3XT3Ytv24HmprepR6dEVk0daKkj/UA84 9AuwvqVjmHx0S1wi+TMly4OORbNQTX9qGU3OdQNtMk0sGLl66fsJUS/dMieWpkhWDM5e cOELBtDZAwPcMDnxb99UPAP/vw63APrZ5A6oOJH3zb4Vzg67+8y0Ed9moDui6nApymdC bYETqOs3B3mPUxcmRLIuJclWPvLnkapTn/VlIzFICqVffTFf817t7NN7470Ta0Osy9RR a8zw== 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=CQvttYhXmCTiCMNh2HYlt4RKFZ33qrQ8NfZl74Ign9Q=; b=UbkfhfrbrN4/duk3N7LTw1exDbJBR3WPFzGzuF1/R+TgLbFJpP/OfiRVVFYqoQitFt viXJCXoMoZSMiTwMMVWornrcsrzAmjTxC9gAg8dJvdQGvog4951fLCmUy5itrZbFOqNe 2PJUIlXsgwmcF7fk+2IAvm9j5o+al1vu7LFgaryL3/USpiUPAsCfOQU834Pu19rj2Dk4 XppCMgNe3yxRJRELyMkW8hlNcLbYkCttavcm/tCohTT4RmmWUiye+q4Z9mwLi2yNkW0C rGCp1yUwG1fZuyURXndV1EqV/fdssRqcZZZ3WC88P1Ltta5I6x4nMWCDg+uJ0wQc1VMN NseA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=L5yy5fbt; 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 k190-20020a6384c7000000b004fbd5d8c066si17166274pgd.325.2023.03.22.09.02.21; Wed, 22 Mar 2023 09:02:38 -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=L5yy5fbt; 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 S230218AbjCVP6h (ORCPT + 99 others); Wed, 22 Mar 2023 11:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbjCVP6f (ORCPT ); Wed, 22 Mar 2023 11:58:35 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2053.outbound.protection.outlook.com [40.107.7.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5A3B3B644 for ; Wed, 22 Mar 2023 08:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UsYBTqb0Q9PcWXe+Z4YlU5p6NyLko5rIb2okiU599/mLYyt72qJxrq89YEFYDSgI1cpS710SJYwumdEMRuBLIYQlDe/VdPJmG8ZlUz1/elFzbVM660PoZYhYv3LRkCOdGkKtMuL0PIcPpP0O10tU8/Lea/pw/yhzKuhyabWyOBx8Vnfp+hiZ6ZYQuB3gfw7KTQBKoxrrkSgFz0s4BOs2FAtRLk1LvkKxAZkhCwSGTehT8ztPi/oHdJw6IVxEf4gvdjdJtkU5gSAD9rXnhq0rmoBCPyJw0Iphu1MbohhDqLp2PG75nx8o3EtM7yzdZSiL5LhPCwNfz163d5OrGtFykQ== 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=CQvttYhXmCTiCMNh2HYlt4RKFZ33qrQ8NfZl74Ign9Q=; b=A4fCuaAuGORctrfBxelXiXcXZRFNlNP0xCXP7Ya6gPZnn7HtmU42yeET5qFigtbppdKxhnoHcjY5ntZdp7Y6OGMlzJOMB/YlgE6a9Ixyv2r8fSMLUrHm+AL6jk8MJy4SRrvuRuAT6vkfZVyc/K+1FzYpsyG6ct67rBDJsOb/k956oVGArv0HLFGCisOa3ovHtHuTnEyq9prersOKUjzqHtqYoYObixPYlMgy2fIs6XNGWpXtnZGzY+UR25+VOAosmHJ2u77i2KZ+xgcDVGR0M/Jf7HWmWI7g98p+SDglmL2tfKFXDdp9rybwhIqwmJqj/kp8dRUMz5FgqoQwnsCB5Q== 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=CQvttYhXmCTiCMNh2HYlt4RKFZ33qrQ8NfZl74Ign9Q=; b=L5yy5fbtSLmK78CVBrZOARzPcWcgkCXH3IRkr5NUiLTkiNhHRczO7nf0xKjCRGAcpQtqgIINIXSk9YGo8rglC1sA2MQjP0sojYH1mchSpH0lNMgrqiK+Jwi4AGnbKZFW+36iJL4h0459le8cXUCrDavllafYnJHNS7vVNdBSCWo= 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 DB8PR04MB7113.eurprd04.prod.outlook.com (2603:10a6:10:12a::18) 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:58:32 +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:58:32 +0000 Date: Wed, 22 Mar 2023 17:58:29 +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: <20230322155829.uecwlv23r7plgok4@skbuf> References: <20230322141130.2531256-1-colin.foster@in-advantage.com> <20230322141130.2531256-1-colin.foster@in-advantage.com> <20230322152551.q5sjc62yu3ijp4wj@skbuf> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: AS4P190CA0034.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5d1::10) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|DB8PR04MB7113:EE_ X-MS-Office365-Filtering-Correlation-Id: c2040bc9-67fc-45b4-8d1e-08db2aee48f5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G0hEJZ0scT8oji4d0dII4sY6dAvf+E8oOFovukWtSyOEQFusgvfk+lnZaLpxEdgggylIf4vF1dM1nQyOfGAdoGShbeRI/juZZYlqipSRJpt+sgOsVvD4Jlk6mskdOxu3lgnjtoXdBZDBnLr5kCvld2YfqURNMGR51zDMAU4b/ob2eOwu9gOYR12Vcc21BSOQT3738PAEs/cVy6Rh7ivp7hvLUy1VlIvxe+nfVbK9Hr1M70fWRjKsnhgs5s82DrPj0oHFT64VtxOwyGbBYnY3fYBzauhI8amCoWEFwzIudhDIzdR8rtM1mfmzkEQM8xJGsmrdO396awqFsK3sqbjmHI5BgjuQ1bVlOCet3FunMnP5UekzuDUMQ5OmE3TucqdjqGCNyYe2przyLwLdoMcVoMPC72tzD4d0saT5cmr0FJv2REfUAoXfnTjAgk41cDZPNctrpIv3ojObo/YjF6lb/vZZdS2WbHJ8uPQc1BxgG2iGCwVu2ZUqeUj+eOjU2A4fXa6D0z5dIO660JXaRwhQ3aQ2whoSdYqG/90YTbOhoQTpDUrb1sI0k0RoftFIjICdXVwQCKgGlqDpnBm2mQ1ddF0Bp4Ltqwd3RHhmvNQYO0dpsEaAA4FkijHR7ykF3hXS 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)(4636009)(7916004)(39860400002)(366004)(346002)(136003)(396003)(376002)(451199018)(86362001)(33716001)(38100700002)(316002)(966005)(83380400001)(66556008)(478600001)(66946007)(6916009)(8676002)(4326008)(186003)(26005)(6666004)(6506007)(9686003)(6486002)(1076003)(6512007)(66476007)(8936002)(4744005)(44832011)(2906002)(41300700001)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?xZ4/X4e6HacP81guXrdtvrYYJL9JEbAXty6bNbnvaRUP+2TiFvuVFM5JHq2l?= =?us-ascii?Q?h8dcCwrw/WUYS1Vo/EFni1kM4I3S64jqUhIyUBfBYmYb38w/tbhN1KQ/jJhd?= =?us-ascii?Q?Vlii9gHLvaoFPdv7U1NtwBYOqnMGRdB+plY+VsVGz+ba5V0PNy9DDM4EF/VM?= =?us-ascii?Q?Vxpl26t6+p1g7/Tj6QJ6SNa6PJJsFtOtuncXJhvLnGa+hRgyMP1QR9XpkeDP?= =?us-ascii?Q?I2/u0Z/KuyCUSygHpbXoaeNGgFDNRLM4hThBwurNs8LggEOFvgsKvy/2d4nR?= =?us-ascii?Q?k90+VoG87EtkbzwP+37sIBh2qYCQRV+Eqtyx4n7yLCxBByyRb6rdwiGUtvnE?= =?us-ascii?Q?da6/ORVj0loPKdQEZd+/R7PvR39pgdLfbCmGSaJkL8tgHnawppuVjabrQ8va?= =?us-ascii?Q?axuh/ec6KZognu1NRAn811DrUn0eOW/46TvStZ0uYuI+/eYT2xyi2GGS7vhy?= =?us-ascii?Q?UlnhnnlIA6PzFwepIjU5/LMa8jN4rtUD1YSCxS2FMGdjXTJ/8mIrRhdiM39o?= =?us-ascii?Q?meZ/i8+2tgwU3ldIi/s64zzppKXnsXS806w/RRaOkSVbqtWV041RsOzp71PZ?= =?us-ascii?Q?wJjKjV2xb7wooM/7ovU5f7A5GuDcDSboNSHHIJWq7yGSM1wPxv9/VUWxHl8i?= =?us-ascii?Q?wRvdl8qBkH299cjh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4iEu1C/pZw?= =?us-ascii?Q?Wz1DuuFIv3/HaEvPK3q7flPYENkhbVBexLHiEqB0SibSR1GGWgzHsqHaN2aI?= =?us-ascii?Q?bw=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2040bc9-67fc-45b4-8d1e-08db2aee48f5 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:58:31.9723 (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: GmGrR0DxBBsz498kLvHZPfcx515sDatlh1lvUnPT4iSLDO6KZt4SZfyQK4TYGdkIB4YK8EOdHHCJzG7nOUItQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7113 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_PASS,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 08:45:32AM -0700, Colin Foster wrote: > The chip itself doesn't support bulk reads. Every register read must be > "Chip Select \" > "Read+Address Command" > "Padding" > "One Register Value" > > "Chip Select /" > > Figure 74 of [1] shows "SI Read Timing in Fast Mode", but that is when > the VSC751X is the SPI controller, not a SPI endpoint. i.e. when the > VSC751X is reading _from_ an external flash chip. It also has a blurb > about "After reading address n, the SI boot controller automatically > continues reading address n+1". > > Figure 63 shows "Read Sequence for One-Byte Padding" which is actually > done when an external CPU is reading _from_ the VSC751X devices. There > is no suggestion that address n+1 will be returned in this scenario. > > [1] https://ww1.microchip.com/downloads/en/DeviceDoc/VMDS-10489.pdf > > I can update the commit message as needed. I have no further comment. From my perspective, resending the patch is not needed.