Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3771742pxb; Fri, 4 Feb 2022 16:32:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQ6viE1DSPp7NQTXUtkLrcO4ZVxf8urV+nAl1igkk84pIOAKiB2pTFeKzLn0MXxQf93Ipw X-Received: by 2002:a17:902:b493:: with SMTP id y19mr5615078plr.97.1644021137053; Fri, 04 Feb 2022 16:32:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644021137; cv=none; d=google.com; s=arc-20160816; b=jqKkwWYjgk6DI4fjv10EYOUmLEBmb2x0uzO8jpwLF5htX7g/2bFEamyE1MoUE0TRvy J3obUl+bOq7QBzTyYgnWdJhzxnJJAprsbrvZ+9jrQ/szSrragcP+WSrTUxZXJUsJtiQZ e/NDmbkUUTKvGxHPnJKcXfxawFOY3ntx8WD/56kjFE/J0M3bykPiW1qzK9fzc9tzV1wN O5o8dPyPEQnMRUDMWvsXzjiBhnWSXfUJ2NEP5yMAEuquYb24C2EIrBufwrW2Q04aGSBb Bmpy0Fn32cl/v8lvahbQANnAtvREtXgPmDSaXcknu6ctZQUaO5KiqCl1rTTR1WqYPGYi 3WOg== 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=tDbWqLvc76hUNGyV6m8dM+CvNcJysI6md0z7CuUzWqA=; b=GzsSRTCzTL8Wz87YbmE0wF7rJaDAwC6JB8eGhvDVhxB/fAilcqzbD+ax4Af/NSiRe1 e/uM1e03+/2LKYkBpELKxT6ECavi+ZzAm3tJkto06++Pl/VnLKQGPl2o6vlOok+WcIDI xcOL+xa1eKNccCXHrVU1aZl9FdKqcruO2RQ1SmTlMIRhJIDyDYs9A+bCMclCfSybrjAS zfgGIn3FhI+NjNLmN9hXQJAIMSsbzsWXmy9SKly6l9NbaXgxx61QevzqtRfnxhlM0+3T RAPW1ZxpnGFj9sxIMydpqr2TMnQuWX74aari+o6kIuDpLZTxRHd03ClGl6pdWICfg2oh NbCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zTnE2QWg; 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 b7si3018535pff.301.2022.02.04.16.32.04; Fri, 04 Feb 2022 16:32:17 -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=zTnE2QWg; 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 S1351113AbiBCOz0 (ORCPT + 99 others); Thu, 3 Feb 2022 09:55:26 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:48372 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230492AbiBCOzY (ORCPT ); Thu, 3 Feb 2022 09:55:24 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id A2DA4B83477; Thu, 3 Feb 2022 14:55:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF798C340E4; Thu, 3 Feb 2022 14:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643900122; bh=Tv8nbPdlGMSs7EERPUna/DYO1nA6+2a7H/RHmD15kAw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zTnE2QWgxy+jjWpV/4ILOU8wmfuzskAonZ57J+sBcSED82JbcR63bZSxY9kPc7XKr Akzw5W545tX9HCrKpCAm9a4Ua3CZIloHUcVMt2n4MFlR5LfPHJ5JGxd0jZ4wN+sKkT E4UELY3WIODrKTw8PiHzO3aekRNmkFYyOvo61ivc= Date: Thu, 3 Feb 2022 15:55:19 +0100 From: Greg Kroah-Hartman To: Heikki Krogerus Cc: Guenter Roeck , Benson Leung , Prashant Malani , Jameson Thies , "Regupathy, Rajaram" , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/3] usb: typec: Separate USB Power Delivery from USB Type-C Message-ID: References: <20220203144657.16527-1-heikki.krogerus@linux.intel.com> <20220203144657.16527-2-heikki.krogerus@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220203144657.16527-2-heikki.krogerus@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 03, 2022 at 05:46:55PM +0300, Heikki Krogerus wrote: > +/* These additional details are only available with vSafe5V supplies */ > +static struct kobj_attribute dual_role_power_attr = __ATTR_RO(dual_role_power); > +static struct kobj_attribute usb_suspend_supported_attr = __ATTR_RO(usb_suspend_supported); > +static struct kobj_attribute unconstrained_power_attr = __ATTR_RO(unconstrained_power); > +static struct kobj_attribute usb_communication_capable_attr = __ATTR_RO(usb_communication_capable); > +static struct kobj_attribute dual_role_data_attr = __ATTR_RO(dual_role_data); > +static struct kobj_attribute > +unchunked_extended_messages_supported_attr = __ATTR_RO(unchunked_extended_messages_supported); Note, no 'struct device' should ever have a "raw" kobject hanging off of it. If so, something went wrong. If you do this, userspace will never be notified of the attributes and any userspace representation of the tree will be messed up. Please, use an attribute directory with a name, or if you really need to go another level deep, use a real 'struct device'. As-is here, I can't take it. thanks, greg k-h