Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp54710rdb; Thu, 1 Feb 2024 01:41:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9ZM7HMf8w7C20RXEVuNUuoHiv8RgpguQHMfVXns7YXnm3UCTevqErmTMPBqFAEbBf353t X-Received: by 2002:a05:6a20:c223:b0:19e:3a94:6309 with SMTP id bt35-20020a056a20c22300b0019e3a946309mr1559750pzb.5.1706780495221; Thu, 01 Feb 2024 01:41:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706780495; cv=pass; d=google.com; s=arc-20160816; b=cY3GAzywVQSdlxm4251oZhXnizQ/CXP3o6nYofpgkTc7zjtWQPkzNBZLU/7UtMWDmt btJUByTAc1jVKME/u7zib+e0/Q5ZBix3NLxBHgKEYFnrFKYq8035YMiWvE9KaYFBX2qT ggdn++dd7keJJyRm9eVVGg/EcioJP99El9DjMUBmP0l92zGqDNjTVp2YbPgDzieqGY6Q hPK0HZifbGTwBawyjL4dB22xkcu7b81jruJK//dnvh147AXSwjB/OkTtlHcs18bMgDL2 OjSs0aUe+SyhwK1Nh7UyfEt4qefHFW12P7EGj/NoC7gpKQ+y+XDfLacsLQ7P6pnMyiFj 5dRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ETrdbaHyveHNyICbP2DXqhvu68zNHBWwdNewWmRtz18=; fh=PQw9QLhyE1CTUx2HVH3g5ABRJQ8rrjhSePvnlh5cWvw=; b=eAN/SmnU7X47IkVIkt7kcwqen1kvAnYkgfiiRvSigo33plHohjWSGMU6gqmmtrja88 yHAM55Pd/PnKSau30k8MS79LIZNUYuRKh3dq5BO3L+A5e3rcRqF9Fe/Eh3T6o6qTFGuV EUj+h3Fo/YbLKuVHRCz2e6yuhrjcrrytEM57U3M3ANyJhzaP2As2jMtuudZsJU6xutF5 wQjTt196gMcuxnzupejcc1xskE6TmcCfOnxwEz4USOldjcb3WdAOy61wvXqhB69yINsi SAwZ8ghvhTNNnP1PQ6/MwPPI0djQgd/RDKEOYAdPWJ9kWipK9dpObpfrvGA4xKLiM7/U p/mA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=UTydyzgl; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-47895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47895-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com X-Forwarded-Encrypted: i=1; AJvYcCX7uv8Y4DvjdRNvPTlktOnBLdp4eOY3HEcJIVqv59Fy1E7ItcWt7Sskwc4d09OUvSYJn3A8hDaoa3Z/6VxRHMfPQ6553C/Ba38at9upHw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lm10-20020a056a003c8a00b006ddc3620a09si11153512pfb.71.2024.02.01.01.41.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 01:41:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=UTydyzgl; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-47895-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47895-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8049728E6DA for ; Thu, 1 Feb 2024 09:40:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A5E515CD6B; Thu, 1 Feb 2024 09:38:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="UTydyzgl" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 5C71415D5B2 for ; Thu, 1 Feb 2024 09:38:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706780330; cv=none; b=WtbzO0cYTeKYeZAxYV25BWVuEiX2Q5yt6wYT7JrLq/L36cyxGolusSYwPEd+IQ/i9hb50Excxr0Twhv/Gs0scoOZNJqzzbSxS0aN0s9PIALdkh1CVaehhZlA9bXIoYVhV7XqbPqSxtM/o3v7wEPDTqCehLlLGKsqISvFUOecu6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706780330; c=relaxed/simple; bh=9l/wcXT+bs/WGiyv1cRps49ciJ9TEQfO/iHpcmKSk20=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rDyK8tQ4z988PcwAjhNodRG6KmLhSt8vXxu/ay8zyzA0KQwolVE9iJrJjhkFrM9BkwnEj/W9UmNGcuGQroROfUtWkqeOAQSEC346tka3hE7jEoRfoNymBwJvaxFkMDgtLNQLowopF/KOH/6zGRF4qUzJZRMMfjBmADWCBwouiH4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=UTydyzgl; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-55a5e7fa471so840035a12.1 for ; Thu, 01 Feb 2024 01:38:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1706780326; x=1707385126; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ETrdbaHyveHNyICbP2DXqhvu68zNHBWwdNewWmRtz18=; b=UTydyzglxjJxAhMsW1gDk+FG3EiXNSuEQaqXcodPIqr46Yz1vJJXJLQU2GM42pqPsR wk1BgVO/DybEnV3/8yAnFETHBe08ZIeArnkutsuDV5EJAOCzx/2cY8w2y+9nXgHGNyx+ d7RuejNI0kS5RY/rWXRODyBxSMFck58x7EbeMV5bQJk7oAhgimxaM0gi9xOCuAZqw47v mBbq5E7l1zLXldKNUA7QXqZ6qWdVG0NrUZ7xhiiwQnx8Puo2G/tJhJN0lODHXIHRzAGd rH2I/XCCosdiJptYNwUI8EOITzDNVpETOE3FrgoG70DOon0/g7YmVDpMtC3flSNhuNNp U4dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706780326; x=1707385126; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ETrdbaHyveHNyICbP2DXqhvu68zNHBWwdNewWmRtz18=; b=YXZOaTisdn1fKPwcmxKxR0zIoiDtDLZ80P0HNcg6/z92NoSQxbSblHxS7gyjeQGSAZ sh2DI3FY8qBTVB/jGzkD2UO/TiFey55e0FrcsbivtHRH/1goV2PxNBCqylNCjrGGVZgO 6q7hSiuTHRmLn7VCDocXD+uy52GhtcIlg71XJODQ//ObNAg7jJioigb2FyNfWO8WXqie oU/MTHZGwowRZvvNpzEzWr3cizp8B9DJLIQpGEAYN6LJ0+4shig/cQCqRjpaCAftW/Wl Sfy8DA+i8CMH9y6QyHOMArTWT3rq1N4N7N6xnb0YvNT4VF2V3M9idiGoQh7lwaNZfKMs 8aBg== X-Gm-Message-State: AOJu0Yx7mniLVffJp3CO1jb1fqRkzptKmEeSBA6x1lc+0DDRc7O4AfF6 8accOh8TiV6KgZYCc55ji8Moe8aVgND1eIVqY/Ph87C2PH3EazLoAQZvfa19tQk= X-Received: by 2002:a17:906:5fca:b0:a35:fe4c:e76b with SMTP id k10-20020a1709065fca00b00a35fe4ce76bmr3021090ejv.66.1706780326536; Thu, 01 Feb 2024 01:38:46 -0800 (PST) Received: from ?IPV6:2001:a61:1366:6801:7ce4:a9a1:7f22:a638? ([2001:a61:1366:6801:7ce4:a9a1:7f22:a638]) by smtp.gmail.com with ESMTPSA id rs6-20020a170907890600b00a26d20a48dasm7002102ejc.125.2024.02.01.01.38.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Feb 2024 01:38:46 -0800 (PST) Message-ID: <09fce208-72b1-49e8-988e-ea149fbaf0b5@suse.com> Date: Thu, 1 Feb 2024 10:38:44 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] [RFC] usb: host: Allow userspace to control usb suspend flows To: Guan-Yu Lin , Alan Stern Cc: gregkh@linuxfoundation.org, mathias.nyman@intel.com, royluo@google.com, hadess@hadess.net, benjamin.tissoires@redhat.com, heikki.krogerus@linux.intel.com, oneukum@suse.com, grundler@chromium.org, yajun.deng@linux.dev, dianders@chromium.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, badhri@google.com, albertccwang@google.com, pumahsu@google.com References: <20240130064819.1362642-1-guanyulin@google.com> <0e4221b5-bafe-4bea-b533-0ed8add81ef1@rowland.harvard.edu> Content-Language: en-US From: Oliver Neukum In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 01.02.24 10:02, Guan-Yu Lin wrote: > On Wed, Jan 31, 2024 at 1:12 AM Alan Stern wrote: >> >> On Tue, Jan 30, 2024 at 06:47:13AM +0000, Guan-Yu Lin wrote: >> Why does this affect only the USB subsystem? Can't the co-processor >> use other, non-USB, devices on the system? >> > In our use case, the co-processor only supports USB subsystem. There might be > other co-processors support more subsystems, but we're not sure about how they > will interact with the system. Hi, it would be very good if you decided this now, before we add attributes. The reason is that if this feature is needed for multiple subsystems, the attribute should be added to the generic device structure, so that the naming and semantics are consistent. You really don't want to repeat this discussion for every subsystem. Regards Oliver