Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp895069imi; Thu, 21 Jul 2022 13:07:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vDfWg2S0LPuN/qnAcAp2i9AjXDcpN9VqOL91QrDOraxz2xZeOc/8ZK1kNpFOi9Tt6JmdAp X-Received: by 2002:a05:6808:1202:b0:322:dc37:2c3b with SMTP id a2-20020a056808120200b00322dc372c3bmr5447397oil.298.1658434052278; Thu, 21 Jul 2022 13:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658434052; cv=none; d=google.com; s=arc-20160816; b=Z0/5IM8Xx8iryuqYrXcHNmBDMHlV4MBddaEg6j46KdakTgfDHNdRq6J85QMo4P251X 0ABP3vz8PlbJ/+E4rPktZPrN9iY+OITFE8fjyF6WmgPDICxMAoZYOsFpij1jNHm6YXwc FTETBdEr/8ehLFw1PLr+IWuv4hQ+xtVKlKx/PNxBHgC//Qs5TA4QE5oBwYY30vmvnZZ6 Cqu7wl1zl3R5DXngnWFvAREZtn88jcSInvXiaoyy5ZxRXvtoJu7DZS1Q4AhrMvgK7FZR fTObf/kY9MssWRfJB81fr/bI4yLXfXoJJx+0FfMGQCzJIDWuRjEGLBv8irBFMYouhbDV r+1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=tRouX2WhMj60MCJP1Wi+NNyPNR4xsUgxpIedquKlZTM=; b=zCYn/4kgd0p6AGxxjqH+YCu+f5SejGXlVJvMaZRjX+yXS0D+kuJPHO7jOtyBcZ6p4f FE9Zuq3Pgx9jT4sbDi56dk3TmoMuLj7AfIfwELPwmvCp4vqwTnqw/pkweDcnai+VvbJp Jc+LhrdZQDUn+4eLBsIkbyvtdgrlShXAShaojt7MCGu7kWvRjBmoj0BZSA4qYaqMZLFx l5uDVG55BAkTu5JkfdW1X3J03mX4wQ3dl9754b2+DPocOGy5O6CRUx4A10ODgp9Z5yj0 j/rRRtMrIrcMIYANj+YyAvnCUq/x5hHWHS2YwYsHRAr21VkC3dyoeNCy8FE1Y3gDK2cp XfQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ck1VZV+5; 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 f11-20020a056870210b00b0010da2ce7c21si1824752oae.286.2022.07.21.13.06.48; Thu, 21 Jul 2022 13:07:32 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=Ck1VZV+5; 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 S232750AbiGUTyj (ORCPT + 99 others); Thu, 21 Jul 2022 15:54:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiGUTyh (ORCPT ); Thu, 21 Jul 2022 15:54:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12603691D1; Thu, 21 Jul 2022 12:54:37 -0700 (PDT) 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 AFA9962098; Thu, 21 Jul 2022 19:54:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FFF2C3411E; Thu, 21 Jul 2022 19:54:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658433276; bh=n0LUlDFRxvmloJIBnwb8oeIMcuhkLDWUpN3AnMOXSBc=; h=Date:From:To:Cc:Subject:From; b=Ck1VZV+5yea8vUj67fFZ9L0rykyv+jIoTeseyZpFa6kZX8n2AwKrluA1tOS5SKflr XHQioX4J3oNrA7V95QdX94vRktvDQ8OVFHx1futsGqK7LGkJcuKpYbx6nz8rgpPCxL PvupmD7f91D/gV75ItpLurZIiJKc1K299XiVWGyT0EXg7LIySe2ZJAmKtdzHUCCfmU s8kfGArkQx1o42KpRag8sm0RH8uFaUDVKIMG3ypX4zbALi6Nwh841ByuJPqr+ksbAL HB84rn13wW6/5vENx//kM2iznBU6oJI4ZCpO2dycg0nxNoTES8lDPHFZWP/g26jTYs ZaTPpFL20KSTw== Date: Thu, 21 Jul 2022 14:54:33 -0500 From: Bjorn Helgaas To: Kishon Vijay Abraham I , Xiaowei Song , Binghui Wang , Thierry Reding , Ryder Lee , Jianjun Wang Cc: linux-pci@vger.kernel.org, Tom Joseph , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Pali =?iso-8859-1?Q?Roh=E1r?= , Ley Foon Tan , linux-kernel@vger.kernel.org Subject: Why set .suppress_bind_attrs even though .remove() implemented? Message-ID: <20220721195433.GA1747571@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-7.8 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 The j721e, kirin, tegra, and mediatek drivers all implement .remove(). They also set ".suppress_bind_attrs = true". I think this means bus_add_driver() will not create the "bind" and "unbind" sysfs attributes for the driver that would allow users to users to manually attach and detach devices from it. Is there a reason for this, or should these drivers stop setting .suppress_bind_attrs? For example, Pali and Ley Foon *did* stop setting .suppress_bind_attrs when adding .remove() methods in these commits: 0746ae1be121 ("PCI: mvebu: Add support for compiling driver as module") 526a76991b7b ("PCI: aardvark: Implement driver 'remove' function and allow to build it as module") ec15c4d0d5d2 ("PCI: altera: Allow building as module") Bjorn