Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7536040ybl; Thu, 16 Jan 2020 01:05:12 -0800 (PST) X-Google-Smtp-Source: APXvYqyO3zIQ+mJKXthQfMPeNQsPKhcgCdAI6ACcUs0TvlmTixubRGiYm6jsJRyhpmC7E2H6Zr4g X-Received: by 2002:a54:4896:: with SMTP id r22mr3392786oic.30.1579165512795; Thu, 16 Jan 2020 01:05:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579165512; cv=none; d=google.com; s=arc-20160816; b=pgd17Adb+rrGkp9ko04+zz5GrkuCmy1ka9C8tVeDbg14QBiCOR+vTkQNOAWUNVwbMV R2EWyYY5Isu5occ+/CUjbw0fvs6JctQzkHC4ohiOuLNuWzveryVxKdZ63qKJ9dme4cui czXQoRuYGek5eSIJKcfY0UfRA9s04qduQjQcSJayaO3//65TO/luPzmmyoOf7t93yLjI EfAInOGAnISPMxZavj3hXWiIi11eTAL1iUCun1LAZXGF28i9RpHPHpBmBNPlRBUELsZ9 UIVfc8Mq64vUwoer7zbBU+8SnzI38hg4rmLaVSfEj5LtdCsrEIy2QC6HmO7zrf0162E2 rDhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:from:message-id:mime-version:subject :cc:to:references:in-reply-to; bh=I0AIWgMBWdEHUJoaDRt3FhXhRJm5/XtDrotEP9tYY3k=; b=aMnP4ZvbHI3kz2nq+S4s/DQzH1ToN/P0d/wYK4fwIL+9DiohaXA1mjfISijlbDc+Ge vv6F6fwCIJLvfxke/UUYda1qYHOtyDAUidJDGJzLDi9MAdk0KINedwFOt5mGAMdhy+wn xMzZ66gyzrtB5uAT0SljU4Ahrn9dDPSHkv7RtViEwItIkLM39vfjnkGQ/NtUEyakYiHm N4gLwNrNKmN045CFiOZG6YZ3VYKJJv+DNSNmdHs0b6TajdpZppXEo9nHGCiyMdqfjM/J JNZEib4lfyauofeJ/W0jTX2dC/MOxyYZLkljyaXe0av6kNf7y/w2jfqzuNxGVod08XUX pBYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n18si13291958otf.285.2020.01.16.01.04.59; Thu, 16 Jan 2020 01:05:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730717AbgAPIck (ORCPT + 99 others); Thu, 16 Jan 2020 03:32:40 -0500 Received: from twhmllg4.macronix.com ([211.75.127.132]:33973 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbgAPIck (ORCPT ); Thu, 16 Jan 2020 03:32:40 -0500 X-Greylist: delayed 1321 seconds by postgrey-1.27 at vger.kernel.org; Thu, 16 Jan 2020 03:32:39 EST Received: from TWHMLLG4.macronix.com (localhost [127.0.0.2] (may be forged)) by TWHMLLG4.macronix.com with ESMTP id 00G8AbNj002958 for ; Thu, 16 Jan 2020 16:10:37 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) Received: from twhfm1p2.macronix.com (twhfm1p2.macronix.com [172.17.20.92]) by TWHMLLG4.macronix.com with ESMTP id 00G88t5X001519; Thu, 16 Jan 2020 16:08:55 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) Received: from MXML06C.mxic.com.tw (mxml06c.mxic.com.tw [172.17.14.55]) by Forcepoint Email with ESMTP id C7E8CD0B9083E6CB0B56; Thu, 16 Jan 2020 16:08:55 +0800 (CST) In-Reply-To: <20200109175107.57566c18@xps13> References: <1571902807-10388-1-git-send-email-masonccyang@mxic.com.tw> <1571902807-10388-2-git-send-email-masonccyang@mxic.com.tw> <20200109175107.57566c18@xps13> To: "Miquel Raynal" Cc: bbrezillon@kernel.org, computersforpeace@gmail.com, devicetree@vger.kernel.org, dwmw2@infradead.org, juliensu@mxic.com.tw, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, marek.vasut@gmail.com, mark.rutland@arm.com, richard@nod.at, robh+dt@kernel.org, vigneshr@ti.com Subject: Re: [PATCH v4 1/2] mtd: rawnand: Add support for Macronix NAND randomizer MIME-Version: 1.0 X-KeepSent: 1A1B3ABF:C0D61D76-482584F1:002C75E4; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3FP4 SHF90 June 10, 2013 Message-ID: From: masonccyang@mxic.com.tw Date: Thu, 16 Jan 2020 16:08:56 +0800 X-MIMETrack: Serialize by Router on MXML06C/TAIWAN/MXIC(Release 9.0.1FP10 HF265|July 25, 2018) at 2020/01/16 PM 04:08:55, Serialize complete at 2020/01/16 PM 04:08:55 Content-Type: text/plain; charset="US-ASCII" X-MAIL: TWHMLLG4.macronix.com 00G88t5X001519 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miquel, > > drivers/mtd/nand/raw/nand_macronix.c | 69 ++++++++++++++++++++++++++++++++++++ > > 1 file changed, 69 insertions(+) > > > > diff --git a/drivers/mtd/nand/raw/nand_macronix.c b/drivers/mtd/nand/raw/ > nand_macronix.c > > index 58511ae..89101fa 100644 > > --- a/drivers/mtd/nand/raw/nand_macronix.c > > +++ b/drivers/mtd/nand/raw/nand_macronix.c > > @@ -11,6 +11,14 @@ > > #define MACRONIX_READ_RETRY_BIT BIT(0) > > #define MACRONIX_NUM_READ_RETRY_MODES 6 > > > > +#define MACRONIX_RANDOMIZER_BIT BIT(1) > > +#define ONFI_FEATURE_ADDR_MXIC_RANDOMIZER 0xB0 > > +#define ENPGM BIT(0) > > +#define RANDEN BIT(1) > > +#define RANDOPT BIT(2) > > I forgot: please be consistent with the naming. okay, will fix them to #define MACRONIX_RANDOMIZER_ENPGM BIT(0) #define MACRONIX_RANDOMIZER_RANDEN BIT(1) #define MACRONIX_RANDOMIZER_RANDOPT BIT(2) thanks for your time & comments. Mason CONFIDENTIALITY NOTE: This e-mail and any attachments may contain confidential information and/or personal data, which is protected by applicable laws. Please be reminded that duplication, disclosure, distribution, or use of this e-mail (and/or its attachments) or any part thereof is prohibited. If you receive this e-mail in error, please notify us immediately and delete this mail as well as its attachment(s) from your system. In addition, please be informed that collection, processing, and/or use of personal data is prohibited unless expressly permitted by personal data protection laws. Thank you for your attention and cooperation. Macronix International Co., Ltd. ===================================================================== ============================================================================ CONFIDENTIALITY NOTE: This e-mail and any attachments may contain confidential information and/or personal data, which is protected by applicable laws. Please be reminded that duplication, disclosure, distribution, or use of this e-mail (and/or its attachments) or any part thereof is prohibited. If you receive this e-mail in error, please notify us immediately and delete this mail as well as its attachment(s) from your system. In addition, please be informed that collection, processing, and/or use of personal data is prohibited unless expressly permitted by personal data protection laws. Thank you for your attention and cooperation. Macronix International Co., Ltd. =====================================================================