Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp700749rwb; Wed, 14 Dec 2022 01:28:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf7SUcBhhu4E/+DfQIhRo+9r1kQ9xbHwGXpxnKfVZmX7eacg+wD7RYMesRNi3A1/6/M16WVB X-Received: by 2002:aa7:cc97:0:b0:46f:fb60:8bd0 with SMTP id p23-20020aa7cc97000000b0046ffb608bd0mr8792271edt.5.1671010099166; Wed, 14 Dec 2022 01:28:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671010099; cv=pass; d=google.com; s=arc-20160816; b=cUPqigeb3PrjVZJTRFi58MVfd5NPYlNRAVKrGqQW7ESEGeK9hSSUYprloIuP9OILqS znaRVdDKB27pyrwS6eA0anMJ8bZZTkBg7KjhTrFHNyQaqsWw2S6VtVl+sNt/PtjLd4nk QIrnFywV2myYiVj/kXruGvBoUhqURleMoybr5pKx/jA+Zd3AzHff4mYKOfUFJYulF534 f2SCo2acbJRW6A5cUfhy7V2lgo+aYBYpuvHCzYkpsjWx4PkAkgn1uPNVHmdJ40wwW1WP y7Baon1/BkRa/Q6KFC4+5lVuBaS8szxXUcl6Ap/V1Ha5Dp15vKWjYKG5VpoC6v/J54Mb ceVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=VNEBkLSVvKcpin4VtmcYFGEDsFF4SwtY9NhrZdCEsG8=; b=VHRc2kJJdCtcynlsAf5ZsEqmHt5Ay+fgH+XdKfhV65WFWHc5zUsdqSw711+gDjIOMX eWLISsEcLhGcyHCrpglIOr2Mkr7GMGOjoNdVWDhJfU/uG1Ga2jc5TgrEhdtdZbwmW/9+ SIdY9Sjvvmy9MFZl7fDkmtq2lhzVSUm/JoulwOLeSdHTK88lHyJc8B8gqYQ8U9VFA2/H b3K+pWXzjtQapccDnKWyP/ZSH7PfQ3RKUoIVInIjIqfGoar2J6EZLE129ED+YEoK3BT6 hxqGU4NOCjQaytxo1A5S+jdHvAxANQpMmZdIxz3Uw0zaC/XHHb3d0HQcC24CylMWAjUx JfIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=s93hpoyo; 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-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a38-20020a509ea9000000b004573107a5basi11848623edf.352.2022.12.14.01.28.02; Wed, 14 Dec 2022 01:28:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=s93hpoyo; 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-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237486AbiLNJRj (ORCPT + 70 others); Wed, 14 Dec 2022 04:17:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbiLNJRh (ORCPT ); Wed, 14 Dec 2022 04:17:37 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2071.outbound.protection.outlook.com [40.107.8.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA521D648; Wed, 14 Dec 2022 01:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IiE/mmP3YzFdg8YjoohNRtMNlwAHQzUZ2OsSEDlyIy7g7N80BHfY1p8O01Gm9UrhLU4lrtckhWfYm0l678xmKAsnDoVAthJpKKDTmUcmEnkVWpRFfRN+9dM61LQ5LtyKCo6ojR68uY0BVzXIf5H+HUQKS+/CDhkbajse3FQzyRIsTCIg9uKczHFIsJIvwnSP7C9jibyTTbonTZTGx/zZqOrT7V+zhYLrFnUNT4bfgQPXAqKM1lLuHdUCW7Gr94I/ereO9G4UUJaBYM1ZuoJiZ21FOJY7JulApToCwAD6iQ1093kAtMEOZfBOhR4rFh5AjVqCWxTA31t4WiCahZX1Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VNEBkLSVvKcpin4VtmcYFGEDsFF4SwtY9NhrZdCEsG8=; b=ZknGW4MuhtLGSaH10oFdsclUYL12N9LJkjF70qyOjLHs8LQpzrNrIdhO2freS8Nz1nAe/4c2NA3CpQTOjPLrj9KLRk+1Fym73Qxrvkf4djU+fkHX0DZYAqGsJO2szZ7O7vFcc5cv7bbI+mVR8VxdC4EA61t54EC3WayNDdKZXMgCTlA3OIXLr/2JRSEXw6SrYFfRrjUDli6GRyVgUK4sc33GJalMFtxchMRjEPLjQKxfNYg+mfRVioIrwKB8MB/K+AMqSpdRHsvOIayw4ULb57G7ijQcY00bHsZNDpG91GW8PUlzEHGJNYFKIWo0BRCKtNJIVwczP2G/n0yzHLVYOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VNEBkLSVvKcpin4VtmcYFGEDsFF4SwtY9NhrZdCEsG8=; b=s93hpoyok7HTI5h3+MU3OGApvDfIrXg7MyhSOjlinfB36rt2MNAD9OHWCWhMZOYlmEly7VFWKY7rcnS3ub0TmCWuB/1QWkdoFjClyqV1VfsOYg2l8rvcQh8jMjEVZgyK0D9DfGZqewVPIE/LBTfY1AvOHCtL45eBQTH+Dt5fpmufCj/f74JVyo2/2emgrPB3lUER0Mj3cTlpKuWkiFdbFvv7Jt/TueITS21xUe7UHxYDfbcoTnSa7DSdZkBT9Zg061TLwES66zpWlH5RN4XYdAhxx6iatiGmCWAYX2lodHNunuvx5q+ikYtUG18dRlPoAzoMuXEF52VqQrFHU8uEGw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) by PAXPR04MB8639.eurprd04.prod.outlook.com (2603:10a6:102:21e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.11; Wed, 14 Dec 2022 09:17:33 +0000 Received: from VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::ae59:a542:9cbc:5b3]) by VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::ae59:a542:9cbc:5b3%8]) with mapi id 15.20.5880.019; Wed, 14 Dec 2022 09:17:33 +0000 Message-ID: Date: Wed, 14 Dec 2022 10:17:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v2 0/2] add hooks for usb suspend and resume To: Puma Hsu , gregkh@linuxfoundation.org, mka@chromium.org, dianders@chromium.org Cc: albertccwang@google.com, raychi@google.com, howardyen@google.com, leejj@google.com, hch@infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221214081456.714859-1-pumahsu@google.com> Content-Language: en-US From: Oliver Neukum In-Reply-To: <20221214081456.714859-1-pumahsu@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BE1P281CA0147.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:7c::14) To VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB7104:EE_|PAXPR04MB8639:EE_ X-MS-Office365-Filtering-Correlation-Id: 1db0584e-2bb4-4a2d-f45b-08daddb40701 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yfQXj3jtNGrqTSBoo0JWTasc4H5LL2zejvl2qbIzWoYkdUl/6gzUa9eO1a2GpVCy6fZlc+FHVVzH+wUOzdGmKWWvvUET8O04ljY2LdVhQG+7ZEBIXkSrusnUs+KRQgebjBw09mb7wBL8S9CUGU9lyqOTDSj62jvuN9w/f/AokwGvX7HPLNQAK6WtBSHCOC1wYaZ2rY3IgAPEzHVgN/+wkW+pCdqYQiNzBPAoWOVvP9JIdcwDjpDj876K7R6iqLYnQMli3Ybzp1fsk/VineUXBHdkC7ZMoLZiwm0KjWiy6YLVKFmW9/rxSjJXIJZgqefFbALrWA17s64cVoEsZ6m9ByZmExBjXBKG6hIiyZ8WOBQUySZbe3WmzIJbqszWOTyr5fHGQ7E8O/zIKB7w67QIsD/8fZf0S4lUzBczTRqLG4519ZJER7ga6hd0uLG6jUxihE5I2VaQ41c1+DE1r0SBaboQ+d5yvh6ptxMFr37Yh7qGbTQSJKy0Q4TjEknEtn8x6/HEfMFltBJGiYhn7qVlxT7PlIrLg1Mnpx5CUpe/6J7p2dCswVB74hA2cMU1fQgJYX09v9k5qm7nNRirz3Ki7R8SKWjWL68MzQsx7L1ccKzaJd6gFnNuiqJq8EkdBdAyDoa7TVfZbOv8NA8+cngXB+Qep3//RTTjvi4SIyT7CZmvAgTm68IK6606ik4QNtbehc9PnVcRF5IJDdoa535Tjl/ikO6ggUV1vAn2QvUFHc4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB7104.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(376002)(136003)(346002)(396003)(366004)(451199015)(31686004)(36756003)(8676002)(38100700002)(66946007)(2906002)(15650500001)(4326008)(66556008)(66476007)(8936002)(4744005)(5660300002)(7416002)(83380400001)(31696002)(41300700001)(86362001)(316002)(6486002)(478600001)(6506007)(2616005)(53546011)(6666004)(186003)(6512007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VEUwaG1IV0Z3dVFoQ2tIb1h5QWs0UlRsd2g0eS8rcVZmOGVsOGYyMDg0ejht?= =?utf-8?B?Qjd2aVJwcUpmUk5adHU3MUE1dXlGWlhCS0hOeUZyVERJa043S2ExQVVCUXUw?= =?utf-8?B?L2VBTlNoYjBWUXUzcE5lRW9VT1ZaenlRUStlaXdDQWM3YUlodGFpd0l5QTND?= =?utf-8?B?anJFZEIwdGh1bTlodEFYeERiVlJNdk41TENQSzBnaWE5TGtyMTdhWjEwaUd6?= =?utf-8?B?VXR0RUNWWUNjK0FhZStHbmg2OC9jYjZPaC9LM1pmcUp3ZDNJd25XTzZMRkVM?= =?utf-8?B?OTArMUZJaXhUTi9kNk5Yd2tGS29HZHhCd1VEZTk0akUvdTVNOXB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xUURnK3o2Q0FBKzJVKzZrS1RMQllwaHNWUFhw?= =?utf-8?Q?hW3esTXlGYPJxdGISZGoP8R7R+mlKRaSgBx+KIQd60cv?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1db0584e-2bb4-4a2d-f45b-08daddb40701 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB7104.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2022 09:17:33.1194 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 42rjueLy750OxU4wzzyJQl4hwhM3P+O4GxMQu9XCP5c640uwwnNrYchSxmOWIQkI7DoQNKfH/yWR5sNQhG5IWA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8639 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.12.22 09:14, Puma Hsu wrote: > In mobile, a co-processor can be used for USB audio. When the co-processor > is working for USB audio, the co-processor is the user/owner of the USB > driver, and the ACPU is able to sleep in such condition to improve power > consumption. In order to support this, we need to create hooks in suspend > and resume functions. We also upload our implementations for reviewing. Ok, before this gets hopelessly unproductive, please describe what you are aiming at and operating on in greater detail. It looks to me like you have an audio device that is connected to the host by USB _and_ another bus. Is that correct? Will you submit the "subdriver" that drives the device over that secondary bus? The operation over the secondary bus requires a hook in USB power management. Why? Secondly, the naming is atrocious. Now could we please first define the technical nature of the issue, so that we fully understand it before we debate the desirability? Regards Oliver