Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6966819rwr; Wed, 10 May 2023 01:46:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7SJEPZOgDeZ8Rv5wqmsbZU+bvxd+LRBg+F6aISat3Yt/NxizcE8q5G1UnjNIiWBoHukVUH X-Received: by 2002:a17:902:f547:b0:1ac:3e56:41b1 with SMTP id h7-20020a170902f54700b001ac3e5641b1mr21063458plf.30.1683708406548; Wed, 10 May 2023 01:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683708406; cv=none; d=google.com; s=arc-20160816; b=O+lLwly+u2Ecnn+xGOP+SMzjSm/8TfRRWCdWDKHG1co0gOoTRDrKub8o0g/QIaKlvi j8rMv+X1di/jrfKTnCTXVu6bBh43D3QOAKSkgaZLvmRYbyFAp+j9QshIEt5NJNPaeb/R ryt8NoBfGaMe2Isa/D4M7Txi19Gs1b7XuQFKVhaP/KkINsPdLCXQkAcGiiL9pH/xndlk jby5ZaFI9K9z1s9XYkHddMRjHxLh+haGmp0hdWRjgjSKyn9HSFcZGzN/c5E3E7xKKb1S HJ3A/W26Epm+ijgsrDjGPnwzfgp1I0KAFKLbx9mEL0ZHjvno/bq8/FZskpvWhcQt09pH 7nHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=B0p9eN+ggVsgeu7VJetFmhwwW1D4ZwxzfXfjX9kMJRM=; b=wjoAK8KD1JB76htOT9op7U3ZsuBg2Boy2o8QWtpavWDTAPfX2D7+lBV8cAcobVVtKV 3pqb5COpmX3ztZP5gpTA8NQYpi9YIHqsQeInkaTaMlFGq3FIX19Iir6wsYoy+ahq7p1i LK6rezhWyShk6dxkmXfqgqY46t7S/nO8+CVJP0OQNLcb59qB4WTlI4JC92lBsen271TI Rskr6ZuyOovmuSJUbp9Byufc+W00q4rtCX7Dhk+A/108ubJ97meBfXjTyCc87UIiTqfK Q4lWAJmlT6a4j0wnifWAOyEfqHNuUoqKsUTsd9TESxtv8J2Xxh0+8WjU6/X1Sdpx09nt HDMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=aeJMh3kS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ba1-20020a170902720100b001a80c0abba4si1214027plb.184.2023.05.10.01.46.31; Wed, 10 May 2023 01:46:46 -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=@gmail.com header.s=20221208 header.b=aeJMh3kS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236587AbjEJIfK (ORCPT + 99 others); Wed, 10 May 2023 04:35:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236729AbjEJIew (ORCPT ); Wed, 10 May 2023 04:34:52 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DB1786BE; Wed, 10 May 2023 01:34:12 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-50bd37ca954so66722965a12.0; Wed, 10 May 2023 01:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683707648; x=1686299648; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=B0p9eN+ggVsgeu7VJetFmhwwW1D4ZwxzfXfjX9kMJRM=; b=aeJMh3kSstDe1tz2bumuhjkcM10fYPnNrpPFTf8YaH+43l4LdtxVqZKDDS6zar4ITc Hqyxpo3mhZi7S8O/stKHeIkPNQubDmKQi8SGpJkxKOFdRwNDNhH3LTiSZx73UID970SX 013fKgK1EoMIFg0iEmRgbk7wzOrtA4JRBD3VzS6NgvmgOPdYGXf5Ygbz87M9CEQrZG87 w98LSZC1YVvPzzi+1uODZ3QtjeZbPvjh1op9tN/oulKncSxqKt09CrFJHKxfhWftL6n0 rwX5KAgGtkRzfriquYC1kaYGLT+z8RrY62wCWWEAo72iNN1rQv2ZBRYgnmhRbqe1njoH HVHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683707648; x=1686299648; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B0p9eN+ggVsgeu7VJetFmhwwW1D4ZwxzfXfjX9kMJRM=; b=g1KPI59tdl53McNW6Lqth6tDqUEQ19vBGbzrJuyAK5oC/F4Bfn5Xm7PkWasJUxSYNm w4mZD1XeKvko8KudK0vQc3pKtDPwCK6S/Bw0+HPiIDNi5Hd4Hhu7WPcvPUplrRwOlYls xuUJtvGVo0Vff/W80k5gbeUDalhb6fUUEX3tnh+1cBSMZgqrYPWQHezFvU6Ht3ZAt1+m A/KQOPextAbGBEu4+DfYJNcihEkJJCe0zeq9apTR8WBpRfgiBHB6D3vKPeKB03YdI0Zc HrF46OOx8rDE41tXwTyYxH8cyN2zZycrhmJiJ1Q5C+taWmqVQEOK8i4WxMj1zKqaE92o PcFw== X-Gm-Message-State: AC+VfDy86LyuaZ+RAfU9KwFZdxz5+Dqn7fEEocOQfT4Ezp6SgnzYBba3 Yx/GC3FVlCrcxCjRhWXRGoj08TFvmAd84kwPruo= X-Received: by 2002:a17:907:724b:b0:94d:e2ef:1618 with SMTP id ds11-20020a170907724b00b0094de2ef1618mr14022272ejc.7.1683707647722; Wed, 10 May 2023 01:34:07 -0700 (PDT) MIME-Version: 1.0 References: <20230506232616.1792109-1-bigunclemax@gmail.com> <20230506232616.1792109-3-bigunclemax@gmail.com> <702d085b3b814759a344886364c518f8@AcuMS.aculab.com> In-Reply-To: <702d085b3b814759a344886364c518f8@AcuMS.aculab.com> From: Maxim Kiselev Date: Wed, 10 May 2023 11:33:56 +0300 Message-ID: Subject: Re: [PATCH v3 2/5] spi: sun6i: change OF match data to a struct To: David Laight Cc: Andre Przywara , 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" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi, David > 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. I'm sorry but I don't fully understand what you are suggesting. In patch 3\5 we extend the sun6i_spi_cfg structure with the has_clk_ctl fie= ld. =D0=BF=D0=BD, 8 =D0=BC=D0=B0=D1=8F 2023=E2=80=AF=D0=B3. =D0=B2 12:47, David= Laight : > > 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 =3D (unsigned long)of_device_get_match_data(&pde= v->dev); > > + sspi->cfg =3D 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) >