From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="UTydyzgl" 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-Google-Smtp-Source: AGHT+IHxmn0xHdwcOe8J8slylRP8BO1emqCK/Lm1LnQPUY17Fiyt3TUyFc0RlSUnQc7x52p7IIlldg== 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