Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2389609rwb; Wed, 30 Nov 2022 06:08:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ygXjQlyYaCq5aEDVSjcuIXiV6/mVy9i5s1ZKlJelc67zMLVLj36aQP8d0jq8nFz6nrWBP X-Received: by 2002:a50:fe8d:0:b0:461:9183:834b with SMTP id d13-20020a50fe8d000000b004619183834bmr41007540edt.196.1669817310948; Wed, 30 Nov 2022 06:08:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669817310; cv=pass; d=google.com; s=arc-20160816; b=QYULqOwfJL/naMzo/zy76wKhkwTDeS1gqb4rABvedh2Ja823o560cA/Jfl3rTUZkyw JkNH8Ua1eTt12GfS2kvvGzWdNtcBS8ytCugtCgo7BmJh9mRw/43KIQb7T95OzoQIdzdY y0M1D8jq73/OLDgFe9RSaFYpwdUbsWjz2Zb18+vZKkTqsqeFm1t8ZeFE7Z1bRF+b9k01 7s4SO/Qb4sk0eFwxlYYzWc8DaMsChP8TdxNLt8QpzknJixBAUKTcbGtKhWE41J3MOq+D i41tXmD/MDyAnaxYDaB9gQ40fxaONXHEytjDE6pmYVUoj7oZPDwTFmYHDll2iR58Nck1 htBA== 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:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=UAK3unjVkAjDmecceteatQu0VLrGAaZL3crEFwq2HUg=; b=nLc1xEgCX8ZPWdvm4pkReol95ojZ4fziIThJfHOg/sZ6XAOrIE5DYUpgoyecBhY9ai EQmbMFGJjxv0n4jOq6QfA+daIgzjUQh24B/dehOKbT/s4WyhTs8d7K2r2eN7FD78/cPk UkW1c/qCGFNZm0HCZKvYaH08XY69E7GvftMK1qcILIKecJaRxzdnbQK4Irv2KdGZtpQT +P4V6dk1mTk056O8bcPV1tN3HAB0YvK1OiwcpRlxtxyDa48xdOpiloj6J9JsQUqFr6j/ cSp+5q0TZSoK0IqGjljJNDRRBzdrmjPnp/ABAxIheLhCfL/Wtih0tbllVnQjBcsubK1F F5aw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=selector1 header.b=QoqYARd6; 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 l19-20020a056402255300b0046909065335si1384980edb.525.2022.11.30.06.08.07; Wed, 30 Nov 2022 06:08:30 -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=QoqYARd6; 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 S229516AbiK3OEl (ORCPT + 85 others); Wed, 30 Nov 2022 09:04:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiK3OEf (ORCPT ); Wed, 30 Nov 2022 09:04:35 -0500 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2052.outbound.protection.outlook.com [40.107.15.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58CC526AF1; Wed, 30 Nov 2022 06:04:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UdldvpGjFbklYpN/DtX9jph9saKxY3Ze5mQdeRtwmidqfEme97tpP5ivq9RKPvvHhhAPZdvNShswpUQ6NeqCMb131JwH2Yp0uGWCDdmk7miCyl68YAsT587lP2ylxKnM4jDeIC0dz+KY3BEjYiLHGSU5n6kCpBi9eRosvlf3KKEdTPWhELhwMwbxsSGKZ5uD4A96ErWQMpctAc28RUKGLv9aWmB7Mar3Njvkooub8AWCtt1UF/Hy2cUc7lxwDAC8Kr4J6sbvkl04KZT36yu9LldZbXcTXAYJEb++gBGVdhoTnIcfXvpK+hGjQus2l2sGtUfUvy1fw5kkArguf3P84Q== 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=UAK3unjVkAjDmecceteatQu0VLrGAaZL3crEFwq2HUg=; b=bzP3BTa52XhrY69Yc4BqHd8KnVE6bVyv+6RDvRTE843bzt6kWGerCTSSG4BwBYnczISbPYtOJnZlwJw5rbpFgfsNTOAjixXf4CR2S/Lvg/qAodrvJZMOLIFqZ87gHRwVAwJs/uc5gzdWQ6buTZxWIlRj4mLZcuRE6yY/7Dnt/wICrZmEBwF7oBLwaskr7AdffyUNUXKdPnQ0QAOX/J6v/kIJDd2ug0lA2u4VstLSxrofydECWnWAPIvAVYBqzTZf5gnPD5s6FTU78gIbuJHpctsbE+ytw7aeZUq4o8fraaPgz1dv6izYBFPKaY4BxTyqT9oZBWQY3tTyr5tDPK6v0A== 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=UAK3unjVkAjDmecceteatQu0VLrGAaZL3crEFwq2HUg=; b=QoqYARd6jRIusquSXfYZ6djq2/WMNxRhv9m4uHSDDZsqb/Ivm138wD6oVvSDwUB+9buRTEkMwo7izZfeuHufaOq1FK25KiOs90u7khX0Nr6xOs3qzL5vqYvu7/cyBAChYIOBDfwRz9Zjv48HgY+qfOXeltlwz1tMVTJTuaSBxi/9+SqUbaDnjNoMgkhIAoyvTFuGg1aSVVkj5z5bCsC1erVDfBnMB6lg0EGnJXcrRTxWR6rcSJSBRvnAjB3oNvaVknNFnOrq8gOxceEGqQizeGt3Vfh5z1goOjA//gT+6DDXEIq28LEL4ghKNrkVQ3ZbFWvQJo2KDzUXr4Yk47I0vg== 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 PA4PR04MB7773.eurprd04.prod.outlook.com (2603:10a6:102:cd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.19; Wed, 30 Nov 2022 14:04:30 +0000 Received: from VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::ae59:a542:9cbc:5b3]) by VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::ae59:a542:9cbc:5b3%7]) with mapi id 15.20.5857.023; Wed, 30 Nov 2022 14:04:30 +0000 Message-ID: <8f220084-6f2c-f7d2-7bb6-3051c28c019c@suse.com> Date: Wed, 30 Nov 2022 15:04:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [RFC v1] hack: suspend: usb: option: add reset_resume callback Content-Language: en-US To: Martin Kepplinger , johan@kernel.org, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221130121552.1560379-1-martin.kepplinger@puri.sm> From: Oliver Neukum In-Reply-To: <20221130121552.1560379-1-martin.kepplinger@puri.sm> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR0P281CA0117.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a8::15) To VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB7104:EE_|PA4PR04MB7773:EE_ X-MS-Office365-Filtering-Correlation-Id: 0de14fe1-1962-484e-0891-08dad2dbccf6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +iBuxV7McC1APb0weMHheq9iVbncyvyJKIzqbCo+maZ0/f2o+k99BAtE5fkC7NFxm1i0gjRHR7lL8cno99HmlkfmYazf7OlpqIdIBERT3lMnCJ8WHBuoPpQs8a8RIaO13ae2066xGtpgpMyj7mgFnAEnY3MD7JPbaFXRVTBjDS2XVcT85fkm78l2Ni+liT3/Quwp4V1pmLrRGxlBOuVXlkVAQEzpQofl2hHqHuaodiROJMZ7J2KjXMRwgcpMb/+O7o0IvmJ72PXNvTZFA5WPXk/+82JUncurum3r6e28CQO22PsJXrl8TCu5SDQCZ+v10lP1uZl3BvlhFKiL6fJ4aylGiDIY8/qGVCg0QQEPHwvHzE0h92fuyBfi4EF3K0eo8UtNeLHaGhACUOSDZmxNTD8rN2Sdo4u0g0Q+01K9WiMGiTSZ2awVeRKithRT66oyQotYPZ8ppDTtqoDC8zJNmFm3smHLvJoP5Gk/1z8VkcH4aZWlC26MsWt+86g7GGj11PTMacVApWUjPzDnSoZ+pP7rhqSZ4msec1JP3OYdsU22BQUndMVl9NS3cBlpf/MJJKeUEJkcQ9Nqpk+CTgRhb0EV0822bY/FrVi9IjrHu3Kf6JwGyms1VWkE26sjLbt9mNzW7cTbibB/WYL6HVNt51YtdzxhgCzUP5NV9ShTj4WZSeQ+uVxWsnoAmmT++KzmSnw2nLdfH9FivVd/hMjUxmtvoqJb2HrYO0FXtYaffLU= 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)(366004)(396003)(136003)(39860400002)(376002)(346002)(451199015)(66946007)(4744005)(66556008)(5660300002)(41300700001)(36756003)(31696002)(86362001)(66476007)(8936002)(316002)(53546011)(6512007)(2616005)(6506007)(186003)(4326008)(6486002)(8676002)(478600001)(38100700002)(2906002)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NDBMRStkNEJPTlpSSmpYbitWc3RnYWtUdjd0NXZkZzRSSDhRWkFCZUJaWkJt?= =?utf-8?B?RlhkTzNHalhrbnl6MEQ3QjFIMlFNdEthL2RpVDBERXZNT1dnR1JoSVQxdDNz?= =?utf-8?B?dW96dUlGS053RG9wMHd3Zm1zMGdFbDl1b1A4czA4UE9JRVMvOHF3NGJiOGpp?= =?utf-8?B?YVR1Q1B5cG16UGtNL2gyVDgxa0xKelIzTnp0akZTcmY4Y0F1Rk5HbjE4N0N0?= =?utf-8?B?YXFhRStBWE4zQ05ZTkZKSzE5WXZqdUgyTnpXWlZVazJCZXFxNTZLS1FNL2JC?= =?utf-8?B?VVprMUxwREdDaWhLN3h2N0hnSGtkSlZQalhVcUhjd0dxQXZYcG9YbHJkZDFG?= =?utf-8?B?ckFDbVZCV3BockRJYjJHaXN4K2xzOUM3RGRwdDZ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v+bMF7QTMiBP7IxG8PZVZHQYKoH?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0de14fe1-1962-484e-0891-08dad2dbccf6 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB7104.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2022 14:04:30.6255 (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: kGZvKJfoIjYVIqwy9IMRZwftKPQLjca8WO8keKKRSpxQk865aKuWYSkd5Oa9DggB9BoXEKBfK5qOzSURtDmXxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7773 X-Spam-Status: No, score=-2.4 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 30.11.22 13:15, Martin Kepplinger wrote: > Currently to be the same as resume(). This will just avoid re-enumeration > of the modem device on every system resume. > > This exists only because the usb core will re-enumerate *any* device > whos' driver doesn't have reset_resume() implemented. A call trace: Hi, this is deeply problematic. Strictly speaking it introduces a bug. By implementing reset_resume() you are telling the rest of the system that all settings have survived the hibernation. That is likely wrong in your case. Regards Oliver