Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp358324iol; Thu, 9 Jun 2022 05:25:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/XeNT7YnRPBqfRTi45LcI1h3mkt7oqCsbdA9NjbSuDAAbbDcU20c2K/2KWcjpIJvyUKA8 X-Received: by 2002:a17:907:75d4:b0:70a:e1dc:77f5 with SMTP id jl20-20020a17090775d400b0070ae1dc77f5mr34236647ejc.65.1654777516451; Thu, 09 Jun 2022 05:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654777516; cv=none; d=google.com; s=arc-20160816; b=r5Hqvxh9s9k2p/FJfSeVRxLocYMGpnYswWNWbYs0dO6rJeI2iTV077r3worF89G+pj PNK7kY9QPK5q8l24D83Y44NNgpoArbMKySu2f6j8L3JEjJc7lKS/pLQ7gkffLn095WPf 9quhH5zwgJOXuQozVoUmB7t8chJkoxFOxuyj1g2jMYJb6tgjFHTFh4kx9L9Ids7eRc1R HlZw7sFIAO+R2sHTvflEYTZdlcw0nRn9LGpUexie7buy/1TOa63Q4fBtBsIM1uS+hve3 AkY+YANBj8qm4mbA9XacBD4G8nPiPWtYL1qO3sT7BMP19fPkF+dVLJFrQkwx6syoYOFc Gx2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=L/1oNIJiEOmIXhzdiWWZo4Edqw9sRe0Wti6S3ERpb4Q=; b=NNND5Pw0itjHesftg9BxTDsixpKyvSNJ9F1Kyatsx21lkGroo1gapfSVpV8UImeffU k/+1LvZp31Tlz/0GtxjmzmfofGdLThFwJMJIK3YJ6PpyatGxeVxWcw9rq/7VlFXlapwE qTRwOtg36WBXZc+mGR6fHnfs0RdbiO7/b65a8RrxhOCa1gfkfOaqQqEzpTmth7y9MywU 2mW7I6gpmPzUBW+4R41BNKST2gjK1wBKUM/T04FZBjv23IGE8HS4VG8qd14CtGLXL8Ba D3AVXc3sMSz8fVa2+CBAQ90jd57EYMcQfKha0HfTRes7FJq5fXkGef2Wm3qv4Gn7f/Xo 1BkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T4tHsGIz; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id tk6-20020a170907c28600b0070efb6a9b59si3673688ejc.985.2022.06.09.05.24.50; Thu, 09 Jun 2022 05:25:16 -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=@kernel.org header.s=k20201202 header.b=T4tHsGIz; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234891AbiFIKso (ORCPT + 99 others); Thu, 9 Jun 2022 06:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243033AbiFIKse (ORCPT ); Thu, 9 Jun 2022 06:48:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B71D14015; Thu, 9 Jun 2022 03:48:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 39D0DB82C04; Thu, 9 Jun 2022 10:48:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FD59C34114; Thu, 9 Jun 2022 10:48:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654771710; bh=fzrWexAskT7761OX6YVLpBV0uk5ZpeEoL980M4D3UYo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T4tHsGIzjTjEj6emD016kI2+9negOY8WK6XJwW/Czy9mjKVCilf0dspL6QLJFZWMe m/CXhgKNyia+kNN0KG6CRloxkv7yPn49QagcfAqgIyRDAf24xpG/aXzFzZ1i78HO7y AYVe/KlZWI8JRsW2V9sjLlbXWu6RqSdy4uLMHQpAnWg5uuH00l8FwYEd4suhPZkSU6 boPl/mJpnbPGuJDl0zt1eGK25+lf73zfFT1bJR3f0nfcGAufXq9qGYHuxiUywTFBsN 7wM8DR015BDwak8YJkABHrI2Yqjkvpri32Rh8KX/rXAkY2rJm1sQ/cr+RkeiAo/id0 aJOkyEuolb2YA== Date: Thu, 9 Jun 2022 16:18:18 +0530 From: Manivannan Sadhasivam To: Ansuel Smith Cc: Andy Gross , Bjorn Andersson , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , linux-mtd@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/3] mtd: nand: raw: qcom_nandc: reorder qcom_nand_host struct Message-ID: <20220609104818.GE2758@thinkpad> References: <20220608001030.18813-1-ansuelsmth@gmail.com> <20220608001030.18813-4-ansuelsmth@gmail.com> <20220609072240.GB2758@thinkpad> <62a1caf0.1c69fb81.a67af.bdf8@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <62a1caf0.1c69fb81.a67af.bdf8@mx.google.com> X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Thu, Jun 09, 2022 at 12:26:53PM +0200, Ansuel Smith wrote: > On Thu, Jun 09, 2022 at 12:52:40PM +0530, Manivannan Sadhasivam wrote: > > On Wed, Jun 08, 2022 at 02:10:30AM +0200, Ansuel Smith wrote: > > > Reorder qcom_nand_host to save holes in the struct. > > > > > > Signed-off-by: Ansuel Smith > > > > If this patch gets moved to 2/3, you could save few changes. Also, do the same > > for other structs as well. > > > > Thanks, > > Mani > > > > Since 2/3 already had lots of changes didn't want to put a struct > reorder in it since it does touch also other values. Tell me if I should > squash the 2 commit. > Not squashing but I mean to move this patch before the driver change (1/3), so that "codeword_fixup" can be added in the correct place. Also move the respective Kdoc comments. Thanks, Mani > > > --- > > > drivers/mtd/nand/raw/qcom_nandc.c | 7 ++++--- > > > 1 file changed, 4 insertions(+), 3 deletions(-) > > > > > > diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c > > > index 06ee9a836a3b..110f839c9e51 100644 > > > --- a/drivers/mtd/nand/raw/qcom_nandc.c > > > +++ b/drivers/mtd/nand/raw/qcom_nandc.c > > > @@ -475,11 +475,13 @@ struct qcom_nand_host { > > > int cs; > > > int cw_size; > > > int cw_data; > > > - bool use_ecc; > > > - bool bch_enabled; > > > int ecc_bytes_hw; > > > int spare_bytes; > > > int bbm_size; > > > + > > > + bool codeword_fixup; > > > + bool use_ecc; > > > + bool bch_enabled; > > > u8 status; > > > int last_command; > > > > > > @@ -490,7 +492,6 @@ struct qcom_nand_host { > > > u32 clrflashstatus; > > > u32 clrreadstatus; > > > > > > - bool codeword_fixup; > > > int nr_boot_partitions; > > > struct qcom_nand_boot_partition *boot_partitions; > > > }; > > > -- > > > 2.36.1 > > > > > > > -- > > மணிவண்ணன் சதாசிவம் > > -- > Ansuel -- மணிவண்ணன் சதாசிவம்