Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp449767rdb; Thu, 18 Jan 2024 08:13:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmq+LhkPSeUaB5JTaB61X4ssmGqZNFNNVPpybvgqhatG2x6N7ZQtHOxG5S27ET0H3GTXwr X-Received: by 2002:a17:907:bb89:b0:a28:dfe4:1d0b with SMTP id xo9-20020a170907bb8900b00a28dfe41d0bmr356405ejc.31.1705594424527; Thu, 18 Jan 2024 08:13:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705594424; cv=pass; d=google.com; s=arc-20160816; b=z8ML6CeTdgtwn2R6/uM/0/zz7XAa6/l8A+zv/ebeTnSipxoBewIW8US972aGOJTO/2 7ixsTIkhwdA3K7SkfL+xMFQXRoncGyAaxlvb3R74yzEMh+IanFMtIXvNxKsVQj4kqHu9 bvYK0diJqi0h6n9g9fYKOqmqarj7ockx00UkSCH9qEpsK1AwmuZOVIGgwBcQYUxce6V8 LEZOdXOJSlEt0/bjzmSf816oB+K6ByyFKKr+deJYTDRNTca4Sv9Z4HZkl47ioIBqfjLG tUu3mfNCx177psJhHUr/SxMTv/3ffWnZO1AoD6htMVnc/SAZJUHZxBsWonZ/YLdgqeJD pKXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ASbIsDuH6/1Mo4MaDgTuPSwi0dXnfDHc/QyBIdAIL4I=; fh=gKHHYhBSPHgIcpYGlguw4gAnqwmtsDdEUQbfzvsh51g=; b=eKeCRASLtIvFdp5N8yfGdnhsD+ifIjmGbbX+bEuwVsazC/d+xy712z/7YBMZ2vgrI7 mlWgvcFQs1yuk/T06idxFEsJFAwryqy47EntnTj9sLRPTaHDUxO3y3uTrUbMuzqcDCS8 8Q+sccZyLS+ogH1dYRwjXVvqL01MIoyFa7VN+bMV+fs8OW1DqANVker6vPxuRnxlcmK3 XZLGtsRN8XGAr13RB7Fvdzsk5VhoHG8NHyl6TmjqJ27TDIW572DcFBM5X3mvRAsMyomt J0LW3l34CG6ChLV3doS7OvYoz+WBvHdPOQjiKB7MLYKGFD1fnnDaAjuwWJx9rBouORRt l1Lg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KQc3e6NI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-30338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h25-20020a1709063c1900b00a2e9fbfb043si2220114ejg.538.2024.01.18.08.13.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:13:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KQc3e6NI; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-30338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id DF4861F23A8F for ; Thu, 18 Jan 2024 16:13:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B451E2C6B0; Thu, 18 Jan 2024 16:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KQc3e6NI" Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 807B128DDA; Thu, 18 Jan 2024 16:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705594381; cv=none; b=Kce6Iyj1aiNQF8ekBQg9YlqEUvwlOovrwu7Fh2eFSKKOhzoxokmtqrK1XP71T4jlnPCLGc9pwuUAQJECM6VDWYH/FWwKkvbWsehH5sAbfCf79nfXqhKoGJRgQtQlGjdHzs6KqG7e0mHilGj+WqYXa3G8uVXU1iMGc1fytKkAHRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705594381; c=relaxed/simple; bh=8NoStMZp0TB8q3jrITsXs6s0yhquDXW9LljJq0jQBeg=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:Date: From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; b=o1pIIkpuVOJyJiQfEEnI9wtX/M5BCMcD23uNSXKFWbexYu3xtOeKIomDCRkEVPUrrPXW5hwkHHy2CFOZrm8XZrpFkygn2F6Eg0AvRyRgMi3Z/aNhRBbzF0av4nxBxKGkzStSLc2OvhJIe1t/1pP+704rlmkMN3N46OV5s0SWXC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KQc3e6NI; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6daf694b439so6974207b3a.1; Thu, 18 Jan 2024 08:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705594380; x=1706199180; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=ASbIsDuH6/1Mo4MaDgTuPSwi0dXnfDHc/QyBIdAIL4I=; b=KQc3e6NIxPsaVVum9svsy+Qq02eWH/rm2kIWUGzWW+0VguGAONjtbaJqOQrC/2g0vv 7irJ4m4k4NMbNLvVxoy/4UjQ1NCEaYM5lTsYwhOoY6SqR/J4F7iMbQhPZNiHxuKnRh5h FaMReeaD0190nn9lpKyZPVgTdBOewMhlGxnLaT2epmqxX+Mw1jJ+zY1f6YAf62djyCCU /Rk59UpZvGbmBTDJ+R+B1DO4/veCdGC2QIS3LVyuqrDy4RckGH9fHVdAsXettIUPOq0m 2UPLQ5PkBcF0vvd8Pp/jheVKKMj+Z35S/Hnp73On2Cigahcsu2TL8VrUhrrEL8hiXRPq 8xdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705594380; x=1706199180; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ASbIsDuH6/1Mo4MaDgTuPSwi0dXnfDHc/QyBIdAIL4I=; b=ndS1mH1YX3AfN+sEzenClYA8gIH44kZhQXrzvS/yyo4ao9ZzUqWOdPItl51EYFI6v6 Iav+vmsoG/WvH9TI13lfTX4W/biJGb4yBBVDFon/vsJEU7yU+FanmvsAGFVfmQAF7Z6K Go5fdDEwuF9TY3S/DsFa4CoehmQkqbY2OC4g6sFCHD6mNcsqshMdDlwx6JYML/DMIOxI kcamX/rLbaGe8NgebS5BmMuDb0obKdkS96NIV0ubRaBcWNlVf72r5khDmyJl2hqU/fdl FB1ZwnbG3B81TV2rx0Ia1u3t1mDZUFZTPQmo3cpsqS1A0a21XnhwtHF5r8Ea2vJPbVVM UJvw== X-Gm-Message-State: AOJu0Ywm4y50Atif3+CJQ0y5/VIkGbNJ+EJhIwTNJ2htPLFsKFIX8BLu 4CARz5Rw1HsmZeUfQ8eU0i8oy3Olhovacz6cT/tUtEwgTlXmI7qU X-Received: by 2002:a05:6a20:d38e:b0:19a:3b4a:22c8 with SMTP id iq14-20020a056a20d38e00b0019a3b4a22c8mr1167907pzb.14.1705594379663; Thu, 18 Jan 2024 08:12:59 -0800 (PST) Received: from google.com ([2620:15c:9d:2:77ac:1fe8:3f5:523d]) by smtp.gmail.com with ESMTPSA id o8-20020a056a00214800b006d9a38fe569sm3466683pfk.89.2024.01.18.08.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:12:59 -0800 (PST) Date: Thu, 18 Jan 2024 08:12:56 -0800 From: Dmitry Torokhov To: Mario Limonciello Cc: Mika Westerberg , Esther Shimanovich , Lukas Wunner , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Rajat Jain Subject: Re: [PATCH v4] PCI: Relabel JHL6540 on Lenovo X1 Carbon 7,8 Message-ID: References: <20231221-thunderbolt-pci-patch-4-v4-1-2e136e57c9bc@chromium.org> <20231228132517.GA12586@wunner.de> <20231228133949.GG2543524@black.fi.intel.com> <20240118060002.GV2543524@black.fi.intel.com> <23ee70d5-d6c0-4dff-aeac-08cc48b11c54@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <23ee70d5-d6c0-4dff-aeac-08cc48b11c54@amd.com> On Thu, Jan 18, 2024 at 09:47:07AM -0600, Mario Limonciello wrote: > On 1/18/2024 00:00, Mika Westerberg wrote: > > > Before my patch, you see that the JHL6540 controller is inaccurately > > > labeled “removable”: > > > $ udevadm info -a -p /sys/bus/pci/devices/0000:05:00.0 | grep -e > > > {removable} -e {device} -e {vendor} -e looking > > > looking at device '/devices/pci0000:00/0000:00:1d.4/0000:05:00.0': > > > ATTR{device}=="0x15d3" > > > ATTR{removable}=="removable" > > > ATTR{vendor}=="0x8086" > > > > This is actually accurate. The Thunderbolt controller is itself > > hot-removable and that BTW happens to be hot-removed when fwupd applies > > firmware upgrades to the device. This is quite interesting take. Does fwupd rip the controller out of the box to update it? By that account your touchpad is also removable as it may stop functioning when its firmware gets updated. > > Depending on the consumers of this removable attribute I wonder if we need > to a new ATTR of "external" instead of overloading "removable". Isn't this the same thing? From Documentation/ABI/testing/sysfs-devices-removable: What: /sys/devices/.../removable Date: May 2021 Contact: Rajat Jain Description: Information about whether a given device can be removed from the platform by the user. This is determined by its subsystem in a bus / platform-specific way. This attribute is only present for devices that can support determining such information: =========== =================================================== "removable" device can be removed from the platform by the user "fixed" device is fixed to the platform / cannot be removed by the user. Note this "by the user". Maybe we should add word "physically" here to qualify the meaning completely, but that is what it is. Not that it disappears from the bus or stops operating for some time because of firmware updates, but it can be physically detached from the platform/system. Thanks. -- Dmitry