Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2360682rdb; Mon, 20 Nov 2023 08:53:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IH41dYI8lKMOa/M+Q0wnyztqWRYvLqDCIjR0XJByLLRFyUEVJpIYNEZqqfnndmF5S25zeov X-Received: by 2002:a17:902:d712:b0:1cf:5362:7e7b with SMTP id w18-20020a170902d71200b001cf53627e7bmr8608038ply.19.1700499212002; Mon, 20 Nov 2023 08:53:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700499211; cv=none; d=google.com; s=arc-20160816; b=ejsfR2jYnXqMSnXHHmcGk1OrJtR+6+WrWVTq6kTBy7UTAK4q8A9kBghlu705lXjcIg yrMACRYNSiuMIAXE9/tmFxsmFgaavUkrsXJcDirM/qkDsqLpw9+zTcUtejxHLVmbG3Nk uouII5xWD+PTJgRZfxKzQhOjH/u7R8JVUODUGHE9+4y86CoJy43VXP99L+AgVAu9MT8P Qe/GLobSw3m4ZcBb+JY5xmPysKRwjeiNL9uI1Nr2j5NBQg3DoCcRmKF3895TboK/RFHi 3sep8UrHS2Bvj/+YCDPrx/O09E1t6IA9UmlizGISQuPFFdjBQUiaKD2PtkKRa0ojtqow QGjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0MNS8kRBsznQU1mU6SVdjkQk3O+bvqgfC3L87r4beos=; fh=+yUIeJnkwQ4UO1+a1yX94NHFijdWcCeZ7rBbQEeIGE4=; b=E8ZtHRWKLcAjgNrS8AoGM88IhkR9DSQSzXgbsYfISe5gPyUM+PhHBcD1VJVBBs5Pvh 2ZUn6wiKb7kFf/rfGzjSBi5dpQkBkoUeprsJra0mn3cbQwbt3ao9Hoo/K/3GcAd/JLPH 4ppNhRtUxydfTqX+RxwQmxL5subGTr5G80DC7X8kBYge1OI7Hkca5X1npYuHttxy9uiU E+mojuXXEPtyVBqGVdGVUVnnO6SfKZxsSX4+OxIvxG0AgWkHlEdJsf4rqdG4rK7p9Alz 65yRz25kDK6KNlk0nKCz4fF1CAZp2pLrN6UbMfJ7YMupQpYj4yaGrYk+ytsWoxowvXRs ae+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J3IyRYIj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id g21-20020a170902869500b001ca24970584si7981236plo.572.2023.11.20.08.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 08:53:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J3IyRYIj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 7A3D380A87F6; Mon, 20 Nov 2023 08:53:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232621AbjKTQxG (ORCPT + 99 others); Mon, 20 Nov 2023 11:53:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230129AbjKTQxF (ORCPT ); Mon, 20 Nov 2023 11:53:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10455BA for ; Mon, 20 Nov 2023 08:53:02 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A55CDC433C7; Mon, 20 Nov 2023 16:53:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700499181; bh=0Ltci87TG8iej+bFg5HVGpZD7dydE73T+Xze/XK8NW4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J3IyRYIjl5nbe0JjSWG/SnQsghzoMD1vpyTCHWlo9a+u4Kmdc4tshhqNZtSoOhfEW OgBx1DR41+Ta6nGT9qkG3HZGM2JqXC/xSGLMEhW4OunYNZQERumukoZsIkd6U+8teY lgfCi17hUo+f0/5qNQPpAFbTInadrahL8vAvsduEX3He84O4m0PJ27z2BNVsXEUkG4 zxsx+ULMm0OD4hMry37SwY7KJqRUEltkCQBCceFixmR/tnWkhvhhGhjaI6CL8BK3I9 tM4dLNlJtbWzRZanqcFVPcXOGW++nHHSlETOG1mnxacnNwOT4G66SrQnyL7SvjbDMP /dey0Vu/2+B7Q== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1r57WI-0002Az-2C; Mon, 20 Nov 2023 17:53:11 +0100 Date: Mon, 20 Nov 2023 17:53:10 +0100 From: Johan Hovold To: Andrew Halaney Cc: Konrad Dybcio , Johan Hovold , Greg Kroah-Hartman , Andy Gross , Bjorn Andersson , Thinh Nguyen , Krishna Kurapati PSSNV , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] USB: dwc3: qcom: fix resource leaks on probe deferral Message-ID: References: <20231117173650.21161-1-johan+linaro@kernel.org> <041f239f-7b40-4681-8c6c-2268f9c2c684@linaro.org> <74cswe5tivcctmnty3gfavzsxdvjz5m4rktyj5auzwvrndninm@dah4h2fdj3zv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <74cswe5tivcctmnty3gfavzsxdvjz5m4rktyj5auzwvrndninm@dah4h2fdj3zv> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 08:53:18 -0800 (PST) On Mon, Nov 20, 2023 at 09:22:54AM -0600, Andrew Halaney wrote: > On Sat, Nov 18, 2023 at 12:47:30AM +0100, Konrad Dybcio wrote: > > On 17.11.2023 18:36, Johan Hovold wrote: > > > When reviewing the recently submitted series which reworks the dwc3 qcom > > > glue implementation [1], I noticed that the driver's tear down handling > > > is currently broken, something which can lead to memory leaks and > > > potentially use-after-free issues on probe deferral and on driver > > > unbind. > > > > > > Let's get this sorted before reworking driver. > > > > > > Note that the last patch has only been compile tested as I don't have > > > access to a sdm845 device. > > I'll sound like a broken record, but: > > > > is there anyone in the world that is actively benefiting from this failed > > experiment of using the ACPI tables that were shipped with these SoCs? > > > > There are so so so many shortcomings associated with it due to how Windows > > drivers on these platforms know waaaay too much and largely use ACPI to > > "bind driver x" and I simply think it doesn't make sense to continue > > carrying this code forward given little use and no testing. > For what it is worth, I have agreed with your opinion on this every time > I've read it. I am not the target audience of the question, but I'll at > least give my personal (interpreted: uneducated? undesired?) opinion > that the ACPI support in here adds little value and extra burden. > > Of course that topic is a bit independent of this series, but I'd be > curious if a patchset removing the support would be welcomed or not by > maintainers, so I'm stirring the pot by replying here :) I agree that if we can remove the ACPI hacks in here, we should try do so (e.g. given that no one really uses it anymore). As Andrew already mentioned, that is a separate issue not directly related to this series, though. Removing it before reworking the dwc3 binding [1] and adding multiport support [2] should simplify both of those series quite a bit, however. Johan [1] https://lore.kernel.org/all/20231016-dwc3-refactor-v1-0-ab4a84165470@quicinc.com/ [2] https://lore.kernel.org/all/20231007154806.605-1-quic_kriskura@quicinc.com/