Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp142726rbe; Wed, 28 Feb 2024 15:14:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXHy8VNQcs/D6cAyPH9+3Abelbg/8SInU5aYa+/MhXQabFtX2UAt8OAVMt1hTaZ/48ViF1NOoBZNiGtKycnFQM7GkZJ66KCFBIy/aVjBQ== X-Google-Smtp-Source: AGHT+IG995aOo0nRqyjvV52WQLB7aI22bSj7ajHHnS+1yLXquy0dfIMOoGuhZFVZEFp5YTQLzIVg X-Received: by 2002:a9d:63ce:0:b0:6e4:8767:dba8 with SMTP id e14-20020a9d63ce000000b006e48767dba8mr362319otl.1.1709162081724; Wed, 28 Feb 2024 15:14:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709162081; cv=pass; d=google.com; s=arc-20160816; b=a5mIIr0EFjdtEjyOvHtfS2zY3gAhw27ULe3qy8Uxh4FqXxUhockW2sb3kyLNmiKA+t /OkK7p0lGA5GWKeA51kA4B6jm5Th4o1maFzG+rradsbfNwt3MCGB7WfKF9/B6YklojfL WvOkutFv/tpP1ZhZFv5cC4oEkzNVBG9gZh+f+gTCOygqhT1QQK2v1AJMtZ058aymDCgI Gnrn8B3zRS7e6xmgonJbaAroq+LxCuCh+Pbfkumc6jU/R6MtQWZHWtPAJ5t1VvYsxAJp 3gOWoSgZZSaPoA3Jb8uxOBUBiWfCVSG/+2fzeopTiIqroiSw3rjW8dr2ZFcR+aj1gSsF s+1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=fcAcp9JyXZdmgBhUYq0E0dm3aQzmCgek1VqMgRhoKKo=; fh=XQ7db0PhvO4mjhtmJE8x4YhaF2NXJg9oADaYEpxGKY4=; b=T/vYUKtZDZocSmnE2nFzpVFTiyUCDTWCAUxO7wy7X6rzV8RSmJ/+HiHSf4sWoSAVha /w/nql5tyC81foascuTTH49yqvdEggu+K/kSjQNqPTOXXaExV5XfbgYU2tIfrvAStYYE hUlqpi8vLfo11V1luVZ7x+QI4HEKtWWFkdXUbWLHSCyZltIMOwDSXpl5stLB6KtRfBkT PNHsqr7NlzXLGXFcOJ9ATABHZwvHa/jVoX8eX+hq3W8xhCflzogo04fMZ4/fYGro8iol DRmq3Ll6nmBAae/NlfaS+ZuqyP7k4jRJjh0UX+yIhclOf3a+JURqWSQ0XVs59RlpR9Vu 7YGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EzXS6S0E; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85825-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85825-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id it26-20020a056a00459a00b006e0fa5b8bafsi394205pfb.250.2024.02.28.15.14.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 15:14:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85825-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EzXS6S0E; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85825-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85825-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 66F61B25B98 for ; Wed, 28 Feb 2024 23:03:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A35FE7D071; Wed, 28 Feb 2024 23:00:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="EzXS6S0E" Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B27E76F1D for ; Wed, 28 Feb 2024 22:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709161200; cv=none; b=tMxgNiZI4/M5oTu7wfD0CMQW3K9KPn/kHGKfw7FdXsqR6Haardr2uopOyqQYVGax5n6Q12yQpXuBSnulrXswa0CHNFFRBE2/a/+bfUrymUxTAMp9+F4xqW7MwnS13uPDBCvgMaC2kOoAq4mAyx9HIN4BSDCyQ6yqfh3Qqe6/cSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709161200; c=relaxed/simple; bh=KLhVl79WXN9Ubg4coyQwz8bkIRdnew0Yg2ZrB2f1ZII=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=nSI7HTWG/nu2JjVHlTQ1ZA1xGNIJhgj3j14aATcA8SxQbHni7PpnikkyYEB3GT9D24KmGprRBC+e4ugpLkfPlXMBl5FTjGtUaUxnkbP+VeQN2kAdSlIH150PitlKqccepz5qKFiRDL9M6STp51m/zIS6BdTfYkc+tGyc6kevvA0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=EzXS6S0E; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-5654ef0c61fso4980a12.0 for ; Wed, 28 Feb 2024 14:59:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709161197; x=1709765997; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fcAcp9JyXZdmgBhUYq0E0dm3aQzmCgek1VqMgRhoKKo=; b=EzXS6S0EUoEGGHhnHGckWrAK1X0BLkXrXBlcpmmS8D2gGxYqFRX2BC5O52xMPEoiFw 5/B8n0Wjjsc+nN7Q/DidplqCm36KqbF1sI9XOJ2xiPf+OmqiJopwUaAcU5nEubcHooPR RnhXG/JJFSzzzlsXaMw1oV6Kbg9olUErGz3kNIUOGVe+easPX62td4rQlnSA8m7vzF+u vglxZzUIHwwfjPaegOsS8/IxkofB0lyTpQ/WNDfgjOJJ+QXFElW1xVFoi0GBD8hoSt8Z dRvgjhHXtc7YdGDJ+jk3Fha++pk2t4a2KQpQZemg8ozeRHhialdjMjQ3cqyV/0+97dO2 aJkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709161197; x=1709765997; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fcAcp9JyXZdmgBhUYq0E0dm3aQzmCgek1VqMgRhoKKo=; b=KZALiw4ucm1MIDW4GV0TwXS1s0IIJGZjG4btd/6NFSjcXek56qR+tM09rFqx+2CRyD ViW34BxMD8YySEGaWR5IoOc11uqYLe+wZnIvnHlL2u+P4TX3tfw2180LS3SRM03IVz1a CVJ3GeNx2b6I89zDK6epaCyspWSNoWaCXG6bb7b1cE0ZfQZn4gzHgsK3EWvu44ZxCJ5+ dUFsfTI7DpG3Sn3tmu4dAQgFaRByTSArYSVZy1nNKlkHB8cNL4rPW+7gFTsDBr4kt2e0 6MsZ6VwtR/dz2cleQqyj5x3IHBgm5J3RiYhgYZqB0iPrRAtR24IAavSP4wBmvt6loi7e LMFQ== X-Forwarded-Encrypted: i=1; AJvYcCWuLY0vIj1xxhKbcDX9T429wPn80ZZf50/PoEW8WZ6rhF6kf3EeDxz7W+bgt1JZ+e16ZXvfuPkhOOtO2f3sLPGNjWkMR/2V4u1DIrzc X-Gm-Message-State: AOJu0YyopZEmVUq4kvFjok3WJeFIFrzGcMhBvLiWbidVgB8XA9BwcnHd mmWcpIlyUFtVSmPNGpZO5YOCIdtoj23wGIysLi7SXyQsU0+b78YnTS7WQfRTElZM2PRXIMwxmZ1 /jEtmZFHUp7kM5H/muW5GZpxQCSf1lY20dch5Y+nSILGfwVRsXw== X-Received: by 2002:a05:6402:5206:b0:565:4f70:6ed with SMTP id s6-20020a056402520600b005654f7006edmr27867edd.6.1709161197359; Wed, 28 Feb 2024 14:59:57 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240226234228.1768725-2-rdbabiera@google.com> <2024022731-dusk-posture-b83f@gregkh> In-Reply-To: <2024022731-dusk-posture-b83f@gregkh> From: RD Babiera Date: Wed, 28 Feb 2024 14:59:45 -0800 Message-ID: Subject: Re: [PATCH v2] usb: typec: altmodes/displayport: create sysfs nodes after assigning driver data To: Greg KH Cc: heikki.krogerus@linux.intel.com, badhri@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 26, 2024 at 9:20=E2=80=AFPM Greg KH wrote: > Now I am going to push back again and ask why you are even attempting to > create sysfs files "by hand" here at all? > > Why is this just not set to be a default group? That way the group is > managed properly by the driver core and the driver doesn't have to worry > about ANY of this at all. Bonus is that you remove the "you raced with > userspace and lost" problem that this code still has even with the > change you made here. To answer both questions, the driver had always created its sysfs nodes manually so I did not suspect this was not the preferred way to handle driver sysfs creation until I found your article on default attri= butes after your email. Will fix the patch up. thanks again, rd