Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4165794rwr; Mon, 8 May 2023 04:05:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7h4cHjYQl3Ur9rYxJ79iR16SCb/yThTzbokHMEHhWvhRWCgWfOwc98Irettim5riTDRxgL X-Received: by 2002:a17:903:11c5:b0:1ac:7237:c9ef with SMTP id q5-20020a17090311c500b001ac7237c9efmr4169660plh.29.1683543947329; Mon, 08 May 2023 04:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683543947; cv=none; d=google.com; s=arc-20160816; b=IC60H3yrQxbou5lxUnd/zXH9AU1incwunU1Tqed/F/puJkx/IA9p/2/QH8254FVBRV diMR7jucdwD13sHeeyMF9pNXwMTOFvangs+czWPyg+bOAOQjlopnhjsVyLPfYmyoRqHK Orm2EmrIaPwhsHAm8kbOSpFbWsU8mhSdXNpPl8h14UcaX7p2YUVf+KPDWwr4dUjsNovr IxX7jPCcLlHKmL7Tv+Etb5tuGRjcVwtdwsFaDZ4xpiEwMaH2w26sVEh4qfLbViP9V5fO mVzgn8GCsP/0ss3ajZLUjCEOn7lH/i8Xlc7byU8McY9yBEElmCbB2EFZ0iorR1yrFKRj Bdgg== 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 :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=WoayPO1+V8LNwfkHMuJ240ilX7k3KEl3RHP0op372Pk=; b=KzzP5U10YGs92Do5K/anNIld32LDVGRBfEOiEuRwfOweG9eZz/5wfxloFFcZGR/V+w Dw1ViUW+6SZTYK+JoezNq7ZpmB8o4LqOCKr59lU0j9Txnsc6ua1F7vMWNfhUQFyalnfO jCAvPMMtwc16lm/P+f8OjN7RJYLjlZdaIeO1ZiDCNsG06H9KCMNla7n121BL4jjSGybt u1fSE6wCQVhbsQUVFCIOVlMJ2vDou+uuqUc6Ee2vIjss1XVaSYMBQW2sjUNOpoYbGAJq ydcrxT9Z7w0Z8TvrV15a5oyStII9038sAXR7BU0FoApKxAfbLp1AhaE/rDXblWOsDbmi ffYg== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y3-20020a1709027c8300b001a9a87d0c09si7729750pll.496.2023.05.08.04.05.34; Mon, 08 May 2023 04:05:47 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233480AbjEHJrq convert rfc822-to-8bit (ORCPT + 99 others); Mon, 8 May 2023 05:47:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232438AbjEHJrm (ORCPT ); Mon, 8 May 2023 05:47:42 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 217C34EDB for ; Mon, 8 May 2023 02:47:40 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-133-aC6YXYG9OjSIkw3kXPonVg-1; Mon, 08 May 2023 10:47:38 +0100 X-MC-Unique: aC6YXYG9OjSIkw3kXPonVg-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 8 May 2023 10:47:37 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 8 May 2023 10:47:37 +0100 From: David Laight To: 'Maksim Kiselev' , Andre Przywara CC: Icenowy Zheng , Samuel Holland , Mark Brown , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Paul Walmsley , "Palmer Dabbelt" , Albert Ou , "Cristian Ciocaltea" , Heiko Stuebner , Maxime Ripard , "linux-spi@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-sunxi@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "linux-riscv@lists.infradead.org" Subject: RE: [PATCH v3 2/5] spi: sun6i: change OF match data to a struct Thread-Topic: [PATCH v3 2/5] spi: sun6i: change OF match data to a struct Thread-Index: AQHZgHJVw1wL+axJhkKYU1TQITl02K9QIrDQ Date: Mon, 8 May 2023 09:47:36 +0000 Message-ID: <702d085b3b814759a344886364c518f8@AcuMS.aculab.com> References: <20230506232616.1792109-1-bigunclemax@gmail.com> <20230506232616.1792109-3-bigunclemax@gmail.com> In-Reply-To: <20230506232616.1792109-3-bigunclemax@gmail.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,PDS_BAD_THREAD_QP_64, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Maksim Kiselev > Sent: 07 May 2023 00:26 > > As we're adding more properties to the OF match data, convert it to a > struct now. > ... > - sspi->fifo_depth = (unsigned long)of_device_get_match_data(&pdev->dev); > + sspi->cfg = of_device_get_match_data(&pdev->dev); Is it worth doing a structure copy at this point? The 'cfg' data is short and constant and it would make the code that uses it smaller and faster. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)