Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7817680rwp; Wed, 19 Jul 2023 00:13:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlGgw5yHwxSL9LBIfg9coA/ToEWmZkD/b9HhKY6/jN5luLFY+IfUKKr9FWPEfNINvUPVhi43 X-Received: by 2002:a17:902:f681:b0:1b6:bced:1dc2 with SMTP id l1-20020a170902f68100b001b6bced1dc2mr1860336plg.0.1689750794893; Wed, 19 Jul 2023 00:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689750794; cv=none; d=google.com; s=arc-20160816; b=MMbDCPZ0L8njWJ484uQ+Hqc4SRhOjKRUfi52nV6Ho1aXLVGq5Bd0VZNaOXr3HkIieC YZRI1v/XSis7I8Uj+aaQ7NUvYYAUlNlq7i0r7RwystqRsvWGfqR3CWdeTkV9zj5VV16K 6ekV6OEbDMsTyZB3br7Ip3AB28rc8Q2tqEmC0KZtv6WoJnsJ7IhTcR7dHGb5VcqIjxIm T4kk9QIyoJRhUuVp/qjbvvfItKKo0dfTEAnIOifcIwYIX9ZsH7PSboH0fFznr3+hqRjJ qmOHPQQLw5JcL5v0UO0kPww2dERQ0XKX/ENVzMlx5Imv1xfRKESC6E0NgUyBWMBvEBfe Bhsg== 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; bh=L871SGQNnuXmlObn+T/exZhx12Sc10CP42LE4vGE7gw=; fh=Yn5c1H8qVHvA2ltUvKuBQTucL1q/BejTlZEECn4bTNY=; b=Z8lXJaM2xpBw0oqkv1eahCPqIULF0976VRRJSSWe9iqs3e0ggBFRKkbGfzp9P1LuSc 5bovBUW8PeJx2aLk1UZIuduN0M6u5zas2Zze6kFhxhodpRELvqhHYMclnSpuXKNPzcEn qlts/103lVYVWVTXfiMuNBRHcj7Rh6AZyLl/jBxHkKj4z3gqEGy4A5rz7/vAkK1WWuA4 DQAuaPYtP4pUKNSFiCmkKTMOVfMOfAcGkXUwsWvFyYdWWj0/wtJABeU7TN2889jeoYoZ l9cM76mT7m0ntvwwLT+19ubajbWwYgbrwIS30zNf6J3TLJ19Y16Wk4qkUJe0ooAYmt/2 46dw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a170902dac200b001b8ae8ed8c3si3192514plx.535.2023.07.19.00.13.02; Wed, 19 Jul 2023 00:13:14 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231325AbjGSHBa convert rfc822-to-8bit (ORCPT + 99 others); Wed, 19 Jul 2023 03:01:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231322AbjGSHBU (ORCPT ); Wed, 19 Jul 2023 03:01:20 -0400 Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B51A1FE6; Wed, 19 Jul 2023 00:01:19 -0700 (PDT) Received: by mail-ot1-f54.google.com with SMTP id 46e09a7af769-6b9c5362a51so3164649a34.0; Wed, 19 Jul 2023 00:01:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689750078; x=1692342078; 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=XfvTxWqrssmy3dy7P0UA783KTXrdwpHemZ850a0qhdU=; b=QN2MTd0AJvdj4NcqRcnYCJJ2pptMIEAWi2090jRQmwcEo4WV5bsvwbm2ABsT+rtM3M AxjDu7KviU1oJ9AvAbl5F7SWh3BCRv4MwXGg1JUKX1kYUsa6JizC0AqP38r5B9nJJbcP wnSZvBGA3dhxOj1p2JowBYO1nVbDimYgFI6TggXyQDQrff8Y/QAilC8J+IC3HsvoP+Fk tgtjeyMtb799+e+EF/1BE1ACf4AEUEQgKpJBQzRBIVve3t5RxyQqI7oFPVGsMZRmsGff HfZIxK9CYMDsAqblhnalZZbacKHpfPAQg/TiBfacbgAIAZqQxW2uJXbeC0y7M37fmVOX 09Fw== X-Gm-Message-State: ABy/qLaFux3thraebRqrFF9ZBdz6kzs4MOiLmuHMGalRVfkn4iFVVMp1 oTUL8wXevKYLfa9I/hvTC+xqXc+4vrJq8Q== X-Received: by 2002:a05:6830:1103:b0:6b8:7166:ea5a with SMTP id w3-20020a056830110300b006b87166ea5amr2024637otq.13.1689750078093; Wed, 19 Jul 2023 00:01:18 -0700 (PDT) Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com. [209.85.167.176]) by smtp.gmail.com with ESMTPSA id w15-20020a056830060f00b006b9ad7d0046sm1497637oti.57.2023.07.19.00.01.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Jul 2023 00:01:17 -0700 (PDT) Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-3a44cccbd96so2465041b6e.3; Wed, 19 Jul 2023 00:01:17 -0700 (PDT) X-Received: by 2002:a05:6808:1a25:b0:3a3:8e77:ddfd with SMTP id bk37-20020a0568081a2500b003a38e77ddfdmr2079679oib.8.1689750077750; Wed, 19 Jul 2023 00:01:17 -0700 (PDT) MIME-Version: 1.0 References: <20230718192453.543549-1-fabrizio.castro.jz@renesas.com> <20230718192453.543549-3-fabrizio.castro.jz@renesas.com> In-Reply-To: <20230718192453.543549-3-fabrizio.castro.jz@renesas.com> From: Geert Uytterhoeven Date: Wed, 19 Jul 2023 09:01:05 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/4] spi: rzv2m-csi: Improve data types, casting and alignment To: Fabrizio Castro Cc: Mark Brown , Andy Shevchenko , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Paterson , Biju Das , Lad Prabhakar , linux-renesas-soc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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 On Tue, Jul 18, 2023 at 9:25 PM Fabrizio Castro wrote: > "unsigned int" is more appropriate than "int" for the members > of "struct rzv2m_csi_priv". > Using void* rather than u8* for txbuf and rxbuf allows for > the removal of some type casting. > Remove the unnecessary casting of "data" to "struct rzv2m_csi_priv*" > in function "rzv2m_csi_irq_handler". > Also, members "bytes_per_word" and "errors" introduce gaps > in the structure. > Adjust "struct rzv2m_csi_priv" and its members usage accordingly. > > Signed-off-by: Fabrizio Castro > Suggested-by: Geert Uytterhoeven > --- > > v2: This is basically v1 with the addition of changes to the data > types of txbuf and rxbuf and related touches. > Also, both the title of this patch and its changelog have been > changed to reflect the new additions. > Although both Geert and Andy kindly allowed for their Reviewed-by > tags to used for this patch, I have dropped them in case they want > to jump in. Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds