Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6140737rwb; Mon, 5 Dec 2022 08:27:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4xRqjU0ehlmLvW+jpKd2Xc1Hd9ms17S10do4uDCWZgQBd3lIf/WpmXuYKRKXImBHjGr+4I X-Received: by 2002:a17:906:7f90:b0:7c0:ba2c:a4e8 with SMTP id f16-20020a1709067f9000b007c0ba2ca4e8mr14584235ejr.642.1670257628009; Mon, 05 Dec 2022 08:27:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670257628; cv=none; d=google.com; s=arc-20160816; b=OJ5bTiwIKBJwdgDwERtrNUMMfJQTJP0QDOKsMjw22BhKD8BrulZ1ybXj/cXQfFsrOM F4xjKBgjZ5PefY0c0RgR85wP8w8rBvXaCDlJy9ZBP5ltWG9++XlSnTWC3g/owUppoXC+ yXL7Cl0LGpgAslpUrZdSjtRj/DWq6vjOhLsRSu6qtIik2F1aGwL7tcSBQFZbMLogeQnx 27LNUBdjwA7f4jycn1L1cfiyv0brrHqTDODcbCINVa92zYzvAoTvYJiBmBfv29EeVpHQ AuLOUIT0IHuiDcbKiHj0AN29Pme4C/kbuK7GdO71xDEQRdMfoUXOQBuEDAQrDBPAlMMH ghNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SsfM7aFW5WAuqVHMYpHMBCaogpjhOqwenu/EppGvid8=; b=yzsdqU2O5t1xcGjqLIll+YPwwaaTRn93tDjog6T+fpuH9SJuVOYqcDZVHeCiffD2pE IJxpC+d0Ej+F3hYDiYX0A//FJayoJlY2zaMKpzkNkmuxJbIeYBGwt2hQUwCSvSl4JtQK H/078HaDol2nBriHN+Qoe0FGkHiQsg9G0VlVCRXhFiZ5xXAfWsllze8n6rDqqlEB4ZXI FYsS12mHK/1ArzFYtGFVAQ5kjfXwivho3oR9l7VJcH7Fm+L3s3owenlZza3Z8AEAxhNW dWl5nLxm7aCDZHgQE55A/BqCHCX0o+ZkE4ju7vPPQLIi43qL1YAv6LP2i8DXSNH8u1lv IYsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EXkPiPH9; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id la26-20020a170907781a00b007c0c8084a0bsi5572762ejc.970.2022.12.05.08.26.48; Mon, 05 Dec 2022 08:27:07 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EXkPiPH9; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232132AbiLEQA6 (ORCPT + 81 others); Mon, 5 Dec 2022 11:00:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbiLEQA5 (ORCPT ); Mon, 5 Dec 2022 11:00:57 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C8921AF1E; Mon, 5 Dec 2022 08:00:56 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 08740611C5; Mon, 5 Dec 2022 16:00:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D945AC433B5; Mon, 5 Dec 2022 16:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1670256055; bh=trNrKrfKjsfA/iJHoM4RlcQMgCcsX15/LCiL4T/xuJ0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EXkPiPH9jpu2QDhpC1k592OE6zoYsvZ6Cm6TtkRBZj9flj8DPe/+/ck94MscE/Hy+ PVn+ynbqHg6LhzriIAOKH+7f1fPldEuUHPztcK+v0tQmwdicxIaCw7If8OtrPmpjh+ OYAzWhpAg9ucHwpcZ/6qG8GRvR0WojmPy76I8FYg= Date: Mon, 5 Dec 2022 17:00:52 +0100 From: Greg KH To: Dawei Li Cc: johannes@sipsolutions.net, robert.jarzmik@free.fr, jgross@suse.com, sstabellini@kernel.org, oleksandr_tyshchenko@epam.com, roger.pau@citrix.com, srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, xen-devel@lists.xenproject.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/6] Make remove() of any bus based driver void returned Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Mon, Dec 05, 2022 at 11:36:38PM +0800, Dawei Li wrote: > For bus-based driver, device removal is implemented as: > device_remove() => bus->remove() => driver->remove() > > Driver core needs no feedback from bus driver about the result of > remove callback. In which case, commit fc7a6209d571 ("bus: Make > remove callback return void") forces bus_type::remove be void-returned. > > Now we have the situation that both 1st & 2nd part of calling chain > are void returned, so it does not make much sense for the last one > (driver->remove) to return non-void to its caller. > > So the basic idea behind this patchset is making remove() callback of > any bus-based driver to be void returned. > > This patchset includes changes for drivers below: > 1. hyperv > 2. macio > 3. apr > 4. xen > 5. ac87 > 6. soundbus Then that should be 6 different patchsets going to 6 different subsystems. No need to make this seems like a unified set of patches at all. > Q: Why not platform drivers? > A: Too many of them.(maybe 4K+) That will have to be done eventually, right? thanks, greg k-h