From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-x233.google.com (mail-ot0-x233.google.com [IPv6:2607:f8b0:4003:c0f::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DF343226C7C38 for ; Tue, 3 Apr 2018 08:33:59 -0700 (PDT) Received: by mail-ot0-x233.google.com with SMTP id m22-v6so19820320otf.10 for ; Tue, 03 Apr 2018 08:33:59 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <152273076087.38372.4803377088477706610.stgit@dwillia2-desk3.amr.corp.intel.com> <152273078779.38372.13062348829183334140.stgit@dwillia2-desk3.amr.corp.intel.com> From: Dan Williams Date: Tue, 3 Apr 2018 08:33:58 -0700 Message-ID: Subject: Re: [PATCH 5/6] nfit, address-range-scrub: rework and simplify ARS state machine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Dave Jiang Cc: Linux ACPI , linux-nvdimm List-ID: On Tue, Apr 3, 2018 at 8:29 AM, Dave Jiang wrote: > [..] >> + if (test_and_set_bit(ARS_REQ, &nfit_spa->ars_state)) >> + busy++; >> + else { >> + if (flags == ND_ARS_RETURN_PREV_DATA) > > > if (flags & ND_ARS_RETURN_PREV_DATA)? > > I think the spec allows other bits set in the flag byte. > True, and it might be better to pass in the kernel's ARS_SHORT flag rather than the firmware interface value. _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm