Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2066591rwd; Fri, 26 May 2023 00:53:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Q81KJIqzcL9cjm5d0kmglaNxSV0zFCf+WsF93zYDWmQ/6Hu8laoeMYs2hda+a9lLD4Fq6 X-Received: by 2002:a17:902:c713:b0:1ad:ddf0:131f with SMTP id p19-20020a170902c71300b001adddf0131fmr1485955plp.51.1685087623099; Fri, 26 May 2023 00:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685087623; cv=none; d=google.com; s=arc-20160816; b=OLJA6zsdvpA1+ArcONLumv5vSryzJ3Vk7NgZrIjFKkX/24X7kaankiwUiBODn6FBbz ITnHZGH9R/HZgJsIJbGM22tMrwdRNfAfmZPyB97qsdrmbGmlAJVKlMXECAkZ1Aa8Xt10 xQ8lQyvbiVedZuXwO9XWnth/sejjbvvMYbtk+uTTHotB202cg0dNNLi0QBDVGn5y3BIW 0uOngp58AcSIaFkPa1sq1TDKvqbK8uM8lEcPJWIT88YjDx5LSnIkxKlqUpvQxD+RyQFf haAvKm4UsFQgHqOCb7hbvDfttAjJ9UIcRD52ylbWIDcLRXVCnLZQkBKB5jHjPMySWUQy GQ0g== 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=mshsQvuSPTNI/wn5RTa2fF88P4lhIknhqE542MC28NQ=; b=jaTVB17hLvuvks0u2ZIt6rXFjPtF4iy1nLx8dEfQNn6WXk1BMatdFtlMT4r5yqEvOx 9m1o7XJ+aLD/qIsDiP2rzl6lxzF/oOir3jni52RYrmQ2ScwPcS5lWUhnhQLpolxTMhqg uQHEbQse+zJIBr0R7M0YEZUnq8XBm4Tnyl4vOTbcmA1bm8PrCfZyGA5pyKvXEMWZJStk XxSX7aEfk9IW8mmYn3luyxiPtuQ9tgT7yGVP2dWEoCHc77TNdYhYzO+b9VtkocEESuDz Aut3fGIP4hr/lVVOLm5NS3iGeIJnoGizs/OOrWGnUyWhV4ZmvwDj9t+Ni8NBn2rw90rt UuwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wCQY+JmT; 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 d11-20020a170902854b00b001afd750102fsi3291322plo.498.2023.05.26.00.53.21; Fri, 26 May 2023 00:53:43 -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=@linuxfoundation.org header.s=korg header.b=wCQY+JmT; 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 S242451AbjEZHmP (ORCPT + 99 others); Fri, 26 May 2023 03:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236947AbjEZHmN (ORCPT ); Fri, 26 May 2023 03:42:13 -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 8DEF912C; Fri, 26 May 2023 00:42:11 -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 184F064DB3; Fri, 26 May 2023 07:42:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4D7CC433EF; Fri, 26 May 2023 07:42:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1685086930; bh=4IqElaefCGYc2iZiseeUTCrdGA3ycVVXumeAANzTmpk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wCQY+JmT4xxjP1TJ8Sf8ImKORqNlWlQpDLwo8MeoY1aQLbYYDLY0oHxaAmRffbyFs uZXsLQGpHisMJT8dxCTEIIZpoqln8X4/2IRAzSjgdTODYILvcO0Q7pA5EinulVU+Pf lyLmemdw3hKv6NVrocFmgOBWBgx/2Ft/ndLrPnJA= Date: Fri, 26 May 2023 08:42:07 +0100 From: Greg Kroah-Hartman To: Roy Luo Cc: raychi@google.com, badhri@google.com, Alan Stern , Benjamin Tissoires , Michael Grzeschik , Bastien Nocera , Mathias Nyman , Matthias Kaehlcke , Flavio Suligoi , Douglas Anderson , Christophe JAILLET , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [RFC PATCH v1] usb: core: add sysfs entry for usb device state Message-ID: <2023052600-survey-fondness-27ce@gregkh> References: <20230525173818.219633-1-royluo@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230525173818.219633-1-royluo@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thu, May 25, 2023 at 05:38:18PM +0000, Roy Luo wrote: > + * @work: workqueue for sysfs_notify() Do you really need this? This should be possible to call in any context as kernfs_notify() says that it is safe to do that, right? Also, what userspace code is now calling poll() on your new sysfs file? thanks, greg k-h