Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1821098rdb; Tue, 3 Oct 2023 01:48:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjRYGhgd3NSWZ3V76k3wmd1pXnqzLgX2IXs0JMezq6ROchyJIi0KVoqhxjZMReM7mN924d X-Received: by 2002:a05:6808:1910:b0:3ae:170f:a39b with SMTP id bf16-20020a056808191000b003ae170fa39bmr20852386oib.17.1696322939368; Tue, 03 Oct 2023 01:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696322939; cv=none; d=google.com; s=arc-20160816; b=bGApYTlgBkDVM9ukEIo3uLZU/uKeAUBNJJIECtmmZK1bt+kOh2WW49Tb2QL3fZuDFX 2HBdlTP9c81ebt2plL+aAICqgWKQ6eNylg67bqz6EAZHD7AGFA9XfTxvBn9IGMZ4Us57 uJT7CVL60qXX14ZiM6X/uKWigLiitc2sXPEpaqA9mMoB4B2YCll20QBAN5jegKy/66WZ mc8soYQUGnn/HV4tS7QoqY0wZpT67YDMWOeIhDXL7GY8wwqkEDWZg0bkHhZiaRIkSwgF 7PDynwocgjKrNeXYaVYUtrU+2D++vISYh4nhl+EG1j1ubpbvdgxaPYCGfFNQ8Pse13hW dLKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bjrxVnnZCCAnYJZI1vW3bXQg9EkIZqCzSZQH6eRtGwg=; fh=v0qFm0G43NtqosOsMxke48DE8nUq7Tklq7YKgMfjh3Q=; b=wcydoqY6s6ive2NE7y/4FznLDo3StkLJNzJ5AJG/1iXAhGLMfyj6HivMUArEru2rbO rLfdK1HRsf62KFLKEAvOvmJ+dFCk9p4/zhkucFbA8eAjFvTcgQQ11+hncTb5i3XCFP0C JEZaE95zV8T6LxDC0IqeuM53D2tPHGY/+EwqmPk3iFGNnAotI4FMweFul20XolHXCZGM Idmcst4y6kdngto9UweA5Hda20eTW71z+z0DzaZqKf1xOKvb2hAbq8VLdfUYC18BMUDw hD1wCZ4aqEOJ5Yk6yTfqSbn4ahi4i0pcySnV4SCNfTm/yEOSLuMYBM6p4BI6U5Iu00PN yreg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E9Nk42yQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i131-20020a636d89000000b00585a45417acsi957007pgc.454.2023.10.03.01.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 01:48:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E9Nk42yQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id CE91D8095667; Tue, 3 Oct 2023 01:48:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239293AbjJCIsv (ORCPT + 99 others); Tue, 3 Oct 2023 04:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231241AbjJCIst (ORCPT ); Tue, 3 Oct 2023 04:48:49 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B44CA9; Tue, 3 Oct 2023 01:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696322926; x=1727858926; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=x8PAGnQYc2NcxY6KGr2gS4Kpd9E+7T9nG0n2qjbE0G4=; b=E9Nk42yQdXYVPv9CemGIYi4TtUEjDTDueZJnm4x31IBnn7+Au0xUuaLI ZI0QTQc2AW30Sfe7B5J1GZoB4MEMZJRiRqtTuEjqwcWCLysuWUZn+4Xie JcQzJl3V/Qk293lvykAMSOO2Ye7MLdcShGh04nyy9w5SVore2/ZSnOLSa RVMcZ0E48rYqJssYGxZKuczM3o/RShFy9AkQIy2rHVJipNmk83V+vJVFH DjudnMJWJCDWsKaUie2irRZ/WZHpA3kgkLGEZrb8XMs0Lnji7DKUeC0ze p5rFivJeJAu3MxMNVLK+Ser5fXMdArpOwRYEu2GfnfurKzU0SS62JKaWT A==; X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="380101442" X-IronPort-AV: E=Sophos;i="6.03,196,1694761200"; d="scan'208";a="380101442" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 01:48:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="727546647" X-IronPort-AV: E=Sophos;i="6.03,196,1694761200"; d="scan'208";a="727546647" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga006.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 01:48:42 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC1) (envelope-from ) id 1qnb55-00000002R9j-2xen; Tue, 03 Oct 2023 11:48:39 +0300 Date: Tue, 3 Oct 2023 11:48:39 +0300 From: Andy Shevchenko To: "Wilczynski, Michal" Cc: nvdimm@lists.linux.dev, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Williams , Vishal Verma , Dave Jiang , Ira Weiny , "Rafael J. Wysocki" , Len Brown Subject: Re: [PATCH v1 1/1] ACPI: NFIT: Switch to use acpi_evaluate_dsm_typed() Message-ID: References: <20231002135458.2603293-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 03 Oct 2023 01:48:56 -0700 (PDT) On Mon, Oct 02, 2023 at 10:27:02PM +0200, Wilczynski, Michal wrote: > On 10/2/2023 3:54 PM, Andy Shevchenko wrote: ... > > + out_obj = acpi_evaluate_dsm_typed(handle, guid, revid, func, &in_obj, ACPI_TYPE_BUFFER); > > This line is 90 characters long, wouldn't it be better to split it ? I dunno it's a problem, but if people insist, I can redo that. ... > > + if (!out_obj || out_obj->buffer.length < sizeof(smart)) { > > dev_dbg(dev->parent, "%s: failed to retrieve initial health\n", > > dev_name(dev)); > > While at it maybe fix alignment ? :-) I don't think it's in scope of this change. > > ACPI_FREE(out_obj); > > Just nitpicks, functionally code seems correct to me. > Reviewed-by: Michal Wilczynski Thank you! -- With Best Regards, Andy Shevchenko