Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp664485iol; Thu, 9 Jun 2022 11:12:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzERW7EK5IXg89H1k+9niqmkcCtUKJVvYFdRXFP/AY+bOeHeLxysChjOpMWY2rJbKzsXDv X-Received: by 2002:aa7:d456:0:b0:42d:d7d9:34c1 with SMTP id q22-20020aa7d456000000b0042dd7d934c1mr46898886edr.21.1654798345883; Thu, 09 Jun 2022 11:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654798345; cv=none; d=google.com; s=arc-20160816; b=Rpw0QOnTL6EfluvKBGU6yPYeZMu9AwNFoQtt+nIxKnk0InCCc8w19JKfNeIEMWjViF Fe3aTemLNsXM53OqDCmK07qFoUYGPUTmQAYV+hKOkpc84au8IJtdlW1PTpkykwqrUEpP ckHPTqwEyob0WMO+5K6vT5FhV6I10qkQzz7XOr+m4JwU84u1ynhhLUYszoOWbtpCCOTH 2W7ZCBCj1a2PKKtVz6gilH6tKaoovVI+uRJGVkhifIwAJQqzMJoVA/PRu2SvCMlCNqtI jgK3yBCfLUeqgzwqN+BsW7ri5q/m/+I17nwsNV/64aaAQFsh785UzgvYt7lqJqxz4JDl Cvjw== 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=qFL6xn2mV465xRktNGoqPHKSTXksnpFpLKOMgrpfRBU=; b=KrXTJ8Z1LMId7acNDGWmQqLX1u6tLUGFxe4haxt0B0BDFXFtbRmqPDxiCTKXz7eWXK AGPNHcqFqm+ftalxPZPQtTwbQo9wN+zMUBRlgCJHfOnedrFhLN5v+Jzj+rqzKtJ7r0qt m13R9Ir8ex1+w/uXrQFUVmJMPzvC3q7c0dv6zU5zvKALhFmAq61JLTcMvQtL0BJ+CTzL kO3W7KpRlrvrH31KRcZe9Qm4POLBPL2iBSdGUAChEIkzFSPoDS+676XBDMA1J+qyl9vY UMPCQTZRGjMXQ4pGMZIg7DkHWczGluAQu8ROvlRw9kEdOYPALDf4yzMDd4xTnNiG3sQu vQSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f3E+ZiKD; 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 g3-20020a056402320300b00432bcdfe6adsi5731637eda.451.2022.06.09.11.11.58; Thu, 09 Jun 2022 11:12:25 -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=f3E+ZiKD; 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 S1344924AbiFIRHq (ORCPT + 99 others); Thu, 9 Jun 2022 13:07:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344602AbiFIRHh (ORCPT ); Thu, 9 Jun 2022 13:07:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2CC2E8BBC; Thu, 9 Jun 2022 10:07:36 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 4168561A36; Thu, 9 Jun 2022 17:07:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5366EC341C0; Thu, 9 Jun 2022 17:07:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654794455; bh=ee5TZiNlW7vDizss9nf0y5vrWyHbm4ptXDn+z57/BXo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=f3E+ZiKDLvoyP4DzfdYnYL4itaZqOWEFERshly86nHvB4ktXSUT4zhtfL6P+BTW9f 6NrIeIdNoVr6SwR6YizswrCvZKS9i0iXZbEryoHZRbNk3vIY4bNvydAZCJJWz8ip27 L5wTeHmr+I6amg2hyzkrvV9OHZvXgc8JnKyqhMVOw9BfW9Ikd0HiMCW3vYSqeFY2PA LNBZyn3Z8TSi5t910HFskQ8Zpt5iUA+56jT8zYSUBgne/SY055KskmPEBNZB0w54GY WVrmttEz60MLOpuFp7hMLzq5nFxJQyNJUvBP8kVeAUXA/hnrY4k6fbwfaUioqqoEEL SlQEyMY65XtgA== Date: Thu, 9 Jun 2022 22:37:22 +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 v6 1/3] mtd: nand: raw: qcom_nandc: reorder qcom_nand_host struct Message-ID: <20220609170722.GA5081@thinkpad> References: <20220609132344.17548-1-ansuelsmth@gmail.com> <20220609132344.17548-2-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220609132344.17548-2-ansuelsmth@gmail.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 03:23:42PM +0200, Ansuel Smith wrote: > Reorder qcom_nand_host to save holes in the struct. You forgot to reorder other structs also as I requested :/ Thanks, Mani > > Signed-off-by: Ansuel Smith > --- > drivers/mtd/nand/raw/qcom_nandc.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c > index 1a77542c6d67..7fbbd3e7784c 100644 > --- a/drivers/mtd/nand/raw/qcom_nandc.c > +++ b/drivers/mtd/nand/raw/qcom_nandc.c > @@ -431,11 +431,12 @@ struct qcom_nand_controller { > * and reserved bytes > * @cw_data: the number of bytes within a codeword protected > * by ECC > + * @ecc_bytes_hw: ECC bytes used by controller hardware for this > + * chip > + * > * @use_ecc: request the controller to use ECC for the > * upcoming read/write > * @bch_enabled: flag to tell whether BCH ECC mode is used > - * @ecc_bytes_hw: ECC bytes used by controller hardware for this > - * chip > * @status: value to be returned if NAND_CMD_STATUS command > * is executed > * @last_command: keeps track of last command on this chip. used > @@ -452,11 +453,12 @@ 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 use_ecc; > + bool bch_enabled; > u8 status; > int last_command; > > -- > 2.36.1 > -- மணிவண்ணன் சதாசிவம்