Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7865764rwb; Wed, 23 Nov 2022 11:50:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf6N5Ji5aRZEX5UXAHDaZzBfGgqTHiJTpG9GfAxC9F1lAmcaSd/KNu7akrK12BGSdejN/TP7 X-Received: by 2002:a63:484a:0:b0:46f:f432:a3fa with SMTP id x10-20020a63484a000000b0046ff432a3famr8650365pgk.125.1669233057982; Wed, 23 Nov 2022 11:50:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669233057; cv=none; d=google.com; s=arc-20160816; b=ApR4ohojXpFoHYwMuzq1duQTdzX93sWq6rsLgXLlY+0L7fazUvihXxp7AoGrWbb/Tx pQPmLWIQAtXTJfMvcZnTbxlx0UOdz+9N+hiBzlzPwNzRsWGoCRbbBa+LWMrnaCxa2y/3 nd7rvFf9fW8nr0LeQEiu+aga1Twj214qt3XEHHxl40nVvFL7PNCkPYkFY7PXYqIFNMsa 84NB9IdjkYH4Wted/lIkaXa33+rwiQcb9WqkoZ6HJ3z5aydwqkivqKanMnIZ9OjC5HMF CyJM6de8wxlEM/bZMcKbVXXwLmIrp533fOSu9WTgoC4syrfcS4LC7Y3ppT7a/QwvWPfI DoCw== 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=sEF2rkqOZdJ07PYrJSZ4NYGoHRlpw4g42Tb2XhG9MjQ=; b=VVLHXrCHqR8y3A3LQCBUOEjgszKFmG3E/sB/Hlq3tajgsiiEqG7kAytxH0wyDOGdRM dVrA2cFrOqg3VZKq8H3befMTF/bKCJTZWA3gWM2Q/alvYbYxKVTx/Ok3Gi2P+ji1sofL Q2uzcfY8UmfLTAyP3mlrdo89QhvUEIkZzY44ouZK11HyONOp5KGizj0MnCc0LXXGQ/k5 rxtEtbqFYvWZ7iA6pzBsNhjjXnoeT0dtVFvX8lHcyLvVBbAhSA5GCW7pDfVa78PWkfsA 4f0q2NvCUJEKzo7DzYkCvKPod+Gn4crvgy8WoqHtBK3rnPb2ER4A3Ra541ebQZfagwCY igXw== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6-20020a6548c6000000b00473c36e3b85si17879862pgs.678.2022.11.23.11.50.39; Wed, 23 Nov 2022 11:50:57 -0800 (PST) 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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239743AbiKWS3u convert rfc822-to-8bit (ORCPT + 88 others); Wed, 23 Nov 2022 13:29:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238849AbiKWS3b (ORCPT ); Wed, 23 Nov 2022 13:29:31 -0500 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91BF91039; Wed, 23 Nov 2022 10:29:29 -0800 (PST) Received: by mail-qt1-f178.google.com with SMTP id h24so11776990qta.9; Wed, 23 Nov 2022 10:29:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=dsfzpsvEfdcI9CvvzszRzTXDzyFxBt5oFZ6I9d30cN4=; b=EQgLsa0V6JWSTTnkVZ1zOIL0hNZxEmTgsNr1elhU/jLMI2nl5KOa12SmdDitOO4LRq 1gtTbHzFvZYmfu7kQjQDzqxeR2/5kmychNQVhLqKRcqj5GeuNzvURcV4v04vssrzUKwN DfaNeLcdGb+Z4Yv09YhtiCBbvEi4EdT4XpZibU0rXElEmm88jY5IZ0RrQiwPRF+lIavw XHvKagJt7davw1i8rP8N7xfr943NIGQNPsgLz6XurWO6wTF1oGG8WDVp7+vqvb4+LYsC zAHLWTLEw9UE6NQgoou4eDsa6GPplQMe8jxDB4IjmdxtVUT/7Qqxm3grjCfPCK/9X4Kn N3ig== X-Gm-Message-State: ANoB5pncgfz7eAD1pHPgJnZ/G2F3ZsIiHhOzxgG8szuwtlDjEu7KwXCM RfJ9Nz18LHddsFwbEwTZaMHEaugXmCrppWFvRok= X-Received: by 2002:ac8:1482:0:b0:3a5:1e6f:7e05 with SMTP id l2-20020ac81482000000b003a51e6f7e05mr10093865qtj.357.1669228168694; Wed, 23 Nov 2022 10:29:28 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 23 Nov 2022 19:29:17 +0100 Message-ID: Subject: Re: [PATCH v2] ACPI: make remove callback of ACPI driver void To: Maximilian Luz , Dawei Li Cc: gregkh@linuxfoundation.org, rafael@kernel.org, u.kleine-koenig@pengutronix.de, dvhart@infradead.org, andy@infradead.org, lenb@kernel.org, arnd@arndb.de, peterhuewe@gmx.de, kys@microsoft.com, kronos.it@gmail.com, dmitry.torokhov@gmail.com, bleung@chromium.org, sujith.thomas@intel.com, vithampi@vmware.com, lee@kernel.org, wim@linux-watchdog.org, jgross@suse.com, davem@davemloft.net, linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Hans de Goede Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Tue, Nov 15, 2022 at 10:00 PM Maximilian Luz wrote: > > On 11/13/22 17:26, Dawei Li wrote: > > For bus-based driver, device removal is implemented as: > > 1 device_remove()-> > > 2 bus->remove()-> > > 3 driver->remove() > > > > Driver core needs no inform from callee(bus driver) about the > > result of remove callback. In that case, commit fc7a6209d571 > > ("bus: Make remove callback return void") forces bus_type::remove > > be void-returned. > > > > Now we have the situation that both 1 & 2 of calling chain are > > void-returned, so it does not make much sense for 3(driver->remove) > > to return non-void to its caller. > > > > So the basic idea behind this change is making remove() callback of > > any bus-based driver to be void-returned. > > > > This change, for itself, is for device drivers based on acpi-bus. > > > > Acked-by: Uwe Kleine-König > > Acked-by: Lee Jones > > Acked-by: Dmitry Torokhov > > Reviewed-by: Hans de Goede > > Signed-off-by: Dawei Li > > Reviewed-by: Maximilian Luz # for drivers/platform/surface/* Applied as 6.2 material, thanks!