From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1115BC77B7A for ; Fri, 26 May 2023 07:42:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242499AbjEZHmQ (ORCPT ); Fri, 26 May 2023 03:42:16 -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> 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