Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp266711rdd; Wed, 22 Nov 2023 15:44:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgH9BBTopV4C2ohD5fOWdovH9/YWGPDOibbRlwnKWWq35ceFQnEqzn+paY9slshvpfucQm X-Received: by 2002:a17:90b:2245:b0:280:a464:e9d4 with SMTP id hk5-20020a17090b224500b00280a464e9d4mr4312417pjb.8.1700696693998; Wed, 22 Nov 2023 15:44:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700696693; cv=none; d=google.com; s=arc-20160816; b=aVwsBnpk1hwor9Duk5AsDCfcrXuhoMqZTbQuJkNQiZS/xMVnYPx9e0sramiWWskYPO SHHcC1R1gPqOvPWCvqBHLwvq3acXASrkooy0Qic/kwx9EqGJu0nrLjS1RwacYnq6lte3 iR+N5ZR27NXuH9kwuhlfRB7rlgc+7QDvPNoHugKf66MjG5g4X42h3Cnygow5B2BLDfMf c1DXFHkDl/XSAjXaV5LLM48xfEUvMDyx4wTrldayFhO2tcktD962lFE4otEwQ9dHdGDl u90h8ktqB6x12Cr8uTIgay8L9mo0pLwhIqv8JCyrLuA5gYAInyvi62Z2fJdmeGOQ5+PZ Agrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=7eExz65VEHfGBe90qO1xKrKYYixqtv+mATbsK20Wpyg=; fh=qluqToLDlHoUGaR8kQkM45YYqWUf2m0yDeadzSa1UBA=; b=udsTbyYYLo4UNSh/F8ykqlgarpqsUl8cBEFiVwbLvD/ey5HAbPHdwUggiv+dmCDWu6 dKgFrbmxrzCLIjkiP2oAPxNbx3zEndqhWK+NETf0L5CqRPJ5CC/m19OrNGUfEVKWamsy QjMFT/EHaJ2h69u2jLH4giZ5SG/MlJ2Jxpm35+ppvkgs/E/GqRboNZwoatRYMxkXZFqs LDX6gX7P9QuQVgjf6uPAF8A3D1kaqAEfYhN+TJqB2XtwSu0s/ObAMAGF+mkr14Y7rLqC HcL0ta7tv+QqA2bEZiq5WT38u2WiMIxr5i5P/TXBzA2BMnIGazdNH0B8NfTjanmiaJDh By9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id hk8-20020a17090b224800b0027000086c93si138146pjb.102.2023.11.22.15.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 15:44:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B4E2582224E8; Wed, 22 Nov 2023 15:43:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344017AbjKVXnJ convert rfc822-to-8bit (ORCPT + 99 others); Wed, 22 Nov 2023 18:43:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231793AbjKVXnH (ORCPT ); Wed, 22 Nov 2023 18:43:07 -0500 Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FF09199 for ; Wed, 22 Nov 2023 15:43:04 -0800 (PST) Received: by mail-oi1-f173.google.com with SMTP id 5614622812f47-3b2e4107f47so245038b6e.2 for ; Wed, 22 Nov 2023 15:43:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700696583; x=1701301383; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eYvKtH0uC1Xw+emGBJHmqRIg3ESjCNY6W647Zk5nRmU=; b=wiKIDunUuJJAVDK5XVsgqpzFRcJx8raQU0mUWyZlBwD/D395Rvm/kY3qiseDed9LWj dFg1viF/NVBxhhjtKP7S5l+6cm/drBPJavIVnhI+2PViGi4M2T7beCMQuNDiE1mTDzYZ lj7EXlNwGbWOApX0GIKobH4dQvQTjl6n8drstXhjFzn0apDyPAlWY0IA0cMAI4xSrIxK JV/Ww6tsBGjec8AKvTbYMxPM626pg9xNz4KUYQ/MgDiMFu7D3gySsDuiF3JMutizm4A7 VLJKuTLK1WV7Svs8Vkb5MqTJt78iLkBITNSvswQRLV23biecVW6w5JjYrProrYyru1O8 ofjQ== X-Gm-Message-State: AOJu0YxB2hZTop/U3prtzFxZCAIu6HjP7DhigFK2+fsIBQqngpqV26/P GcfV2NDln+JjuZH+eaBtly55kTq41FOatIwMY1IuGw== X-Received: by 2002:a05:6808:1514:b0:3a6:fbe3:45cf with SMTP id u20-20020a056808151400b003a6fbe345cfmr4863766oiw.35.1700696582784; Wed, 22 Nov 2023 15:43:02 -0800 (PST) Received: from localhost (75-172-121-199.tukw.qwest.net. [75.172.121.199]) by smtp.gmail.com with ESMTPSA id cm12-20020a056a020a0c00b0058c1383fa8bsm62497pgb.0.2023.11.22.15.43.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 15:43:02 -0800 (PST) From: Kevin Hilman To: =?utf-8?Q?Th=C3=A9o?= Lebrun , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Roger Quadros , Peter Chen , Pawel Laszczak , Nishanth Menon , Vignesh Raghavendra , Tero Kristo Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , =?utf-8?Q?Gr=C3=A9gory?= Clement , =?utf-8?Q?Th=C3=A9o?= Lebrun Subject: Re: [PATCH v2 2/7] usb: cdns3-ti: remove runtime PM In-Reply-To: <20231120-j7200-usb-suspend-v2-2-038c7e4a3df4@bootlin.com> References: <20231120-j7200-usb-suspend-v2-0-038c7e4a3df4@bootlin.com> <20231120-j7200-usb-suspend-v2-2-038c7e4a3df4@bootlin.com> Date: Wed, 22 Nov 2023 15:42:56 -0800 Message-ID: <7hsf4xe4n3.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 15:43:12 -0800 (PST) Théo Lebrun writes: > The driver does not use RPM. It enables it & gets a reference at probe. > It then undoes that on probe error or at remove. ...which is a fairly standard thing to do for a rudimentary runtime PM support on platforms that use power domains. This will likely (almost surely) break other platforms. Without a runtime PM get call, the power domain that this device is in could be powered off without this driver ever knowing about it, causing a crash as soon as the driver is used after the domain is turned off. Kevin