Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp270008iol; Thu, 9 Jun 2022 03:37:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLxb3qYdkrCATNWAxlckKzwzQ18y+P8rYS7dS1ryEGG4cRWesmrSXUH+ehCwl+Z0p1XxcH X-Received: by 2002:a17:906:a188:b0:70c:1e17:b833 with SMTP id s8-20020a170906a18800b0070c1e17b833mr31795368ejy.271.1654771060075; Thu, 09 Jun 2022 03:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654771060; cv=none; d=google.com; s=arc-20160816; b=yPqG4/M48hz+Rp/dlb7yrwv814qBdDjFZDkDMyPsR2u+NgA1IS0y4v8+xb0yTyiqul NDYhutsqy93Vp6RPIgBnzl7O1LRSchC1Va8RTcrdcexBxACpMpGdOENDtCbOzCZ6CIpH lv299nwBBmQkZ9aSEGKsYfhhHJYfvDtKw1zp403iLjFQ7MUgnnOLbSMvFwr/sjEyDd2m bkCrqIasW4DZ9DDNOHJ3Mat9akNmwTDuWw/xWlc7eFNdy486gUonN4ibz/j7jnJtjmWF PhwSxA7punNTh/ll5iw8hWQQPR9CZInN6PI8+Iajy3DBNlb2UavF6PvvrxbDcktFR9YH eatg== 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:subject:cc:to:from:date :message-id:dkim-signature; bh=sOUTYmBneU8iG+DbESjBMogqAliu7BQ9pIctsnxzzY8=; b=WrbS6FxYw609PsWviF2MEZcPY4GAcHSyt0faPCRDaX0QEGJneHaU4mb44/aB7ay/zp MzY2s3xMlk9dZIwemUw2iSCH5KSp2yPuRlbpUxiGjRZrylvjVfZV4knoIr+bfeg2Llp/ DDHGfOjGhqx1rKc24BPI1PHge66T2DRdueRQUeAxof3j2IO7UmdF1JDkfiYpQ7rO9Uel KYEq1sc2Q/biw2LHA4QOf8jY+4P9ejG4BkWzIij9pxdaSrCUerhQnSN/Wg9JY99O46Id sPV9oPwv68WTItq8uP/MjH3KQQHaL7Qg8o0UVHqrmvwgEmIdUecfS2dEOnh3NYVUPhNU crHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KcbtaW+S; 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 cs18-20020a170906dc9200b006fef86e6003si16478128ejc.914.2022.06.09.03.37.12; Thu, 09 Jun 2022 03:37:40 -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=20210112 header.b=KcbtaW+S; 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 S242648AbiFIK1B (ORCPT + 99 others); Thu, 9 Jun 2022 06:27:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235536AbiFIK07 (ORCPT ); Thu, 9 Jun 2022 06:26:59 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCDB61FD2BE; Thu, 9 Jun 2022 03:26:58 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id y19so46547173ejq.6; Thu, 09 Jun 2022 03:26:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:from:to:cc:subject:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=sOUTYmBneU8iG+DbESjBMogqAliu7BQ9pIctsnxzzY8=; b=KcbtaW+Syi3OQ9ucjj23DpcuP7IxuMzTv74WDyxY7k5J5wFm1XFA8r9gg4Y46WISer FbzmwndkTD9CXu7nZ6q1A1/8quMVRTePoENvbJCJw9Ayht6xn2JcDb6HuKHCVmfeVLOz bOTo6Z8tmPX2biiHCMn18E75JRIUt7T6NJR0FgOHouFb2hH01PdT1P9hP3yVR8hXbmTS dUcQDvanXVtJ6u2rCrnWa2l5bbV7kYDkK/1etnVJt6pSAjbIRcHvtZunyn4GJqdPlRUw GHHPJjYwDAzxZARBO6A4wDQ0LU5I5+zgr21ZfCss2ziZ6FlIlc2AgvmKiwlics3wdzab S2NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=sOUTYmBneU8iG+DbESjBMogqAliu7BQ9pIctsnxzzY8=; b=PZGd7nZBSJI8p/eVUFim66NDmcal+RwJDwkCAGhySdpn9r84JLvWUTAltXLZVqWCcO RJ0YH4bui1S44KdDpPZdDHDbXb2Ekx0OWGKAa82dQtzvoCxCGaDtF9jMdFubDl25SlVU jLTjTttpY9NtIRa2f35jU5LRfSeF2zqT3ZgJjtLLrryRALvTeMg3HA/VUOY0cbXlyt4o 7b4qGQ3ryKAwnJqd7TJXFAp+rK3Lo43nFeG7CjLkxvQcVKDsF7nji2qHCBiyKETbM/CB vlJYmMUEeJBqzzck9ckaKD+uw1/+erVJQF0iu1ga+OFJTzwkqEpg8IZ12oMLj40GUbKs Pz8A== X-Gm-Message-State: AOAM531wqn0Bb8kM/JWqrMSoLCvaRBqqIQTZt8+CAxaEjTyLBkiTO0mS MD69/LhsfO8MZ6wHC7L11FBvv/IUjqw= X-Received: by 2002:a17:906:84b:b0:70c:d506:7817 with SMTP id f11-20020a170906084b00b0070cd5067817mr32323334ejd.206.1654770417293; Thu, 09 Jun 2022 03:26:57 -0700 (PDT) Received: from Ansuel-xps. (93-42-70-190.ip85.fastwebnet.it. [93.42.70.190]) by smtp.gmail.com with ESMTPSA id o9-20020a170906600900b006fec8e5b8a9sm10456213ejj.152.2022.06.09.03.26.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 03:26:56 -0700 (PDT) Message-ID: <62a1caf0.1c69fb81.a67af.bdf8@mx.google.com> X-Google-Original-Message-ID: Date: Thu, 9 Jun 2022 12:26:53 +0200 From: Ansuel Smith To: Manivannan Sadhasivam 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 References: <20220608001030.18813-1-ansuelsmth@gmail.com> <20220608001030.18813-4-ansuelsmth@gmail.com> <20220609072240.GB2758@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220609072240.GB2758@thinkpad> 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 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. > > --- > > 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