Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3071683rdg; Tue, 17 Oct 2023 03:56:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHACjDQujy0/s2F7g9a/uTUPmzPtdapI2KoUdixMclFfM3v+6u70fzkXgpQlQyFqtB40FvN X-Received: by 2002:a05:6808:200f:b0:3ae:b06:2131 with SMTP id q15-20020a056808200f00b003ae0b062131mr2310509oiw.0.1697540208999; Tue, 17 Oct 2023 03:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697540208; cv=none; d=google.com; s=arc-20160816; b=R+Ynsx75EpYfNoIVODtOduPaBXTyqYFkMqarcRObY0DUwpyoBfoiru7HIyiGvA0ZwR RQF9XLNigMzWSr1ynatMV7ZYb93fnFiy93FPE3AJ/YHYnAWjCWI6rwoBnc77rJptQLVj aDHwjDR7kDTQUDFgXmEuXPa3Om02DIBh9E+0AOKvW7/VhFoL1KfzRg5FPIlmvZ5WkgK2 EkwEOrTLJhP5I8S3+bkIsIGJu60I/R6YmYQRB3txAenVsIx8WDG/+qVmEhFHJCUKzVv0 yUdzYxCNXfxtFmE2ziyEnvdm0fjk/cDkii06ZqHOd3WyfkVY/EQ4fQxUoE2jPr4CeGLa xKpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=ibDbnI/kRZaXY5DeDQZ+vSQ/19u/KrEGRxC7+kaGVeI=; fh=ZheuRlDZy0kWbDm/n0eE11/HL9TQY7Hn1625NvATyVA=; b=D6/wFTQZzfh2nLorW+rLRVJvlB/1kT3bPvSESP761n24pwVShaArBql7hUnlQI+CAi wFy8uLOBVAsWnXjQgKdjECdb2yveRXUVE6VbmO8fOPqUcjlOFBenx26EpayVCLcdS/qb mXRSPdIgHEMLVTYYCvjeI0OvtLimk+2RdCB7MJyZlLYPrBH3OcjT8lBeuYMn4M5WUUko IAUFNjWTCdGQ8TcTx37noVXaI+YiYe2pOyZlDPcV9pfYNe4tx3YR3lOLObG4mU45LRza sGgN/g32q4CY0KojmhLf1lhQ6c77ngdICoT6iobE0pulY6PWDx3f7Xhg92Jl3qIMoOoR 1GFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id e192-20020a6369c9000000b00563deb65f93si1393892pgc.200.2023.10.17.03.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 03:56:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 889A9807596B; Tue, 17 Oct 2023 03:56:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343708AbjJQK4e convert rfc822-to-8bit (ORCPT + 99 others); Tue, 17 Oct 2023 06:56:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234983AbjJQK4V (ORCPT ); Tue, 17 Oct 2023 06:56:21 -0400 Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49979D41; Tue, 17 Oct 2023 03:56:09 -0700 (PDT) Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-57de3096e25so1150694eaf.1; Tue, 17 Oct 2023 03:56:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697540166; x=1698144966; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2R8cNjbejuukXKtHRF4WxJOF67p0UWK9QqgSbWSP+S4=; b=evyb7TrnoIvToi7xe3I2aPbaNS9JqZNccod9C9jJ5m7OOfB4bRB7j7CaQ0qrM/4E1D FuN0shSbmPWdZA6J0HXrjy+BHJugRnb+kj7mo/rs/Jp0J7o+fPU5mbCzwbhsY96OuuxC N6J9M2CSUM4lwCeVWoelLCN7pYnViG//b8xu8E1KSx97H/TPblC38THT5fV8u4QOB9Ik TC+tHR6lWsRPdLSAui0VIBsqIA1R41X7KLKhjPqIxrvGGMgI8QnRx8pLWNvnMFC/FDsu Z2eUz8mGPzGsU6f/XJSl83PRo/pUoCrS6ffxWNMvpaQDlawvkFijMQ0wfM3UZbw3kquX T26g== X-Gm-Message-State: AOJu0Yzg0nH2Ex0ne+QmGw8aCGlGS+KS2CBOIZwf9BBOgzekTiwWd1L+ u+vgkCrso+sYrxQqh2rpm9oZeb6MXrGlAunpwH56t8EM X-Received: by 2002:a4a:ee94:0:b0:581:5990:dbb8 with SMTP id dk20-20020a4aee94000000b005815990dbb8mr1758159oob.0.1697540166076; Tue, 17 Oct 2023 03:56:06 -0700 (PDT) MIME-Version: 1.0 References: <20231006173055.2938160-1-michal.wilczynski@intel.com> <20231006173055.2938160-6-michal.wilczynski@intel.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 17 Oct 2023 12:55:55 +0200 Message-ID: Subject: Re: [PATCH v2 5/6] ACPI: NFIT: Replace acpi_driver with platform_driver To: "Wilczynski, Michal" Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, "Williams, Dan J" , rafael.j.wysocki@intel.com, andriy.shevchenko@intel.com, lenb@kernel.org, vishal.l.verma@intel.com, ira.weiny@intel.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 03:56:46 -0700 (PDT) On Tue, Oct 17, 2023 at 12:45 PM Wilczynski, Michal wrote: > > > On 10/6/2023 7:30 PM, Michal Wilczynski wrote: > > NFIT driver uses struct acpi_driver incorrectly to register itself. > > This is wrong as the instances of the ACPI devices are not meant > > to be literal devices, they're supposed to describe ACPI entry of a > > particular device. > > > > Use platform_driver instead of acpi_driver. In relevant places call > > platform devices instances pdev to make a distinction with ACPI > > devices instances. > > > > NFIT driver uses devm_*() family of functions extensively. This change > > has no impact on correct functioning of the whole devm_*() family of > > functions, since the lifecycle of the device stays the same. It is still > > being created during the enumeration, and destroyed on platform device > > removal. > > > > Suggested-by: Rafael J. Wysocki > > Signed-off-by: Michal Wilczynski > > Hi Dan, > Rafael already reviewed this patch series and merged patches > that he likes. We're waiting on your input regarding two NFIT > commits in this series. I actually haven't looked at the NFIT patches in this series myself and this is not urgent at all IMV. Thanks!