Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp301009rdb; Thu, 1 Feb 2024 08:53:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmKy7vvnqM7hP1FjDR/z+sbfQhTK+fOgsZwOAHGAdVBvrWeiFd/aI/gf4kzGmAm4xrY3EX X-Received: by 2002:a05:6358:f08c:b0:176:5459:a9c7 with SMTP id ig12-20020a056358f08c00b001765459a9c7mr5003404rwb.28.1706806392664; Thu, 01 Feb 2024 08:53:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706806392; cv=pass; d=google.com; s=arc-20160816; b=bviCy1Nbu4L5vFN/J3BShzJo+BTsINAVi4OlZYPskx9vukl7Vqz6Ndx3Bl8JTeLA0D +D7srRKn/sdjVY115/ZspGraEnIUcazNawD4HNyyHiez+vApJbXa1XjLmxMI6eLmM9to NovmrR3DEk1AR/M/SMPC3Cyl9pdXSmOAJslSy08+UByGaht7ojE6nXp6HuMx4fsskXFF wlM1luNDzRXITf98qAcgWGB4nb9jVMoOJCiGo1/XLNxjEe+9N4HRkq0W3696ty/4A6ik WaDfi3RnF8rJXhOlcb3VhjzPrIkmn7wH2NtYWQ5lvICJC8RpOSpQLYgsHwqRnCbyhGNe unfA== 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=b1DMfysap4JrKaVpmot/Ile+whuj0cOJvZWdDpBWCyU=; fh=1KOgbH0HMkzvO3iNcb/az4Vg5G4mnUYlUBO+otUTKGY=; b=eiMWJ1FK35fGM/WsD1FJSMCIhIFV82g20hYoFvFOLgv9cx2psVncFdrgg7JUnQ44a5 Pxlyw+P2075Z70pmLhVDvuMnxasgwgV6SOtWEec9/UgAsrsgl95wh5QWFezDYE8IcfM3 L6lO5n+l/bQpy6HvrVuPJfQ0BOlnbGa8lg0aSqOsRdQfoHYtTsfPLDzuXxXWIiMURyGt 0VuM94tu2JE1uVDBUWVY1TrHCaWIAvSmE/yTsp1riMOpDNtmu3sjfhik6R2RrNjAuTEe CNV+LOH+3tAyRaQZgOtE1v1H6ZVbAL5qUwJ5KLgwxmEaLypN0yyIL680v2XaDZMZyOK2 lVLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=d7TOtrL7; 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-48465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48465-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCXwgPZuaojnU7sd1ZdTwjEAMJ+IgI0uRquQUTrWx3UQeO02iPWP0Z3lu7ZVTPgQp/Gr/ridqdG3+BI2D+ifz1AGdgsSBHwo1pxt9lQDxg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b16-20020a656690000000b005d553239b15si12704020pgw.493.2024.02.01.08.53.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 08:53:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48465-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=d7TOtrL7; 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-48465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48465-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 601A9B2D015 for ; Thu, 1 Feb 2024 16:02:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E62E4626D0; Thu, 1 Feb 2024 16:00:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="d7TOtrL7" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 6C9225D46E for ; Thu, 1 Feb 2024 16:00:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706803249; cv=none; b=T8zyOH6ee1cyXzDN+FAVpAu7kpO3/MMGCyyrZEsDUWnwbrc7tYhHKq72kNe4/SQUCuj9PwsjfYmiHJHtZlGyS8TA4xwFKxAI16xdZAt1NqWotoDyURz8653oIMpZCOmNAp9Ms8LMAzH1UvdlO9aUWSP4tv/oRaHQ8+IBqClFQqU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706803249; c=relaxed/simple; bh=LfH8VcU2Lhb55/DWAFRHRgTWaYRH6XpZml+946QsT8g=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KjaM3qB+06s7MTyd2G0BSW4vpXzeIwPo+mE5NXtc9IjjAZABBo7AAR3bj6PlqAb7/tDmY/CZFW9ODljsJWXjnHfaAWt9vrNOrBRprf+EJx7G5BcKTVjAEJt6p9m4awp56XWqBOSo5TB9DbvMqG0bOeI3XrXP79V3x6kSSkGwabU= 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=d7TOtrL7; arc=none smtp.client-ip=209.85.208.44 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-f44.google.com with SMTP id 4fb4d7f45d1cf-55f63fd3dd8so14286a12.0 for ; Thu, 01 Feb 2024 08:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706803245; x=1707408045; 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=b1DMfysap4JrKaVpmot/Ile+whuj0cOJvZWdDpBWCyU=; b=d7TOtrL78rNkvnkc7FWdKyZ+Hc5xhLoH5jtiU9FFaTygKqsoHor/4LSsVk99fxKkmr tmBEWwIc4sRBiPlVfvUPK5dsPE2Mpl16mYc97RGRqEM0W8PMJ7Iw8kGmG3TVVMbQeZCs Bh5UqbeNy98rYGiy8nlyLUVHri3LOVljCRD2w4H1R+cxHL2Kr01/R3oNiuFRQ5lQVHzE J6Wa43X4M5XhveYIOG2AptagT/9k9mpeBRZQmHvsDV2Q7QDqb3peil0ho79SiSERuDD3 e5cKqSr6Qr0ySCvfcdd/yncEkFJUIL6uWgAeEETM4KSGJOh9TtKHwNiLIsv30f5oejLE TzzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706803245; x=1707408045; 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=b1DMfysap4JrKaVpmot/Ile+whuj0cOJvZWdDpBWCyU=; b=N0hbGFMvW5bKcxv0Gq2+QYMAjHLvPb3swmhgPwS0lFjlGccln2wARY2k0eRDDMLwY0 W/iilq4iHmbnO4HUwZZvpyc4GvlX/NQc8EWaM4/IWeCL4f/07AIQJz6AQK+iBvwgCNtS vUWrOIdrFDKfPuEoCZ0oyUjPCXD7l5El1NNKTDbFB9btMDT1jqbxgun1Kuaj/zQO9lS3 Oo9vkziqfBLIrSHBzf2mAr+w7k6zl40XRvRsRpC5LezWj9Cjl0NwTa5XB6+6xYPCp/7/ /QmFbp1TvHIkucAaynRQbMuU4F7UJ0c5YpKTevLEloN/3qsOR6GONkt8yfO/D3i/jUkv O5hA== X-Gm-Message-State: AOJu0YwnTFTgcNt/BsdXMq+kfoiXvqCF9zgVK+uixGgceNDZCKWETmuC IfEMmXpehm4OCRxxcbnHMFDOA0h3tYnT8fWk3TEuFtPM9rI9ahAlidqk9D9lXU1EN6qQab4hejj jdiAFEZJykzrHFlCOYPnD22h5jOhWeP0LuONq X-Received: by 2002:a50:9fcb:0:b0:55f:98d7:877c with SMTP id c69-20020a509fcb000000b0055f98d7877cmr192536edf.5.1706803245323; Thu, 01 Feb 2024 08:00:45 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240130064819.1362642-1-guanyulin@google.com> <0e4221b5-bafe-4bea-b533-0ed8add81ef1@rowland.harvard.edu> <09fce208-72b1-49e8-988e-ea149fbaf0b5@suse.com> In-Reply-To: <09fce208-72b1-49e8-988e-ea149fbaf0b5@suse.com> From: Guan-Yu Lin Date: Fri, 2 Feb 2024 00:00:00 +0800 Message-ID: Subject: Re: [PATCH] [RFC] usb: host: Allow userspace to control usb suspend flows To: Oliver Neukum Cc: Alan Stern , gregkh@linuxfoundation.org, mathias.nyman@intel.com, royluo@google.com, hadess@hadess.net, benjamin.tissoires@redhat.com, heikki.krogerus@linux.intel.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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Feb 1, 2024 at 5:38=E2=80=AFPM Oliver Neukum wro= te: > > > > On 01.02.24 10:02, Guan-Yu Lin wrote: > > On Wed, Jan 31, 2024 at 1:12=E2=80=AFAM 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 mi= ght be > > other co-processors support more subsystems, but we're not sure about h= ow 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 > Hi, Given that in our use case the co-processor only supports USB subsystem, I'= d like to proceed with adding the attribute exclusively within the USB subsys= tem. Please let me know if there is any further consideration, thanks.