From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 989FF18F2FD; Mon, 29 Jul 2024 22:37:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722292660; cv=none; b=eTxU1+aMZunRb4Nj2ucr70KlCylT97a1g5cD+aYmRdhFkbPf4XEaqU5yOQsfSasuz0k2fGL/0kCqryZSch3i9cPUxtTRgCkDCK3sVJenfLBMNZNy74SIsLUwQZSVMRGwPxAofSPVXcPF1/sTN2jXA5Nf+lsxmS8RZxuzo3k/pMI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722292660; c=relaxed/simple; bh=D6mwweKmN8jdrEMRzN0PVB7taUVfH02s8ZKzYztglK0=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=egWWh04HZaT1wbjA1jpmeJE9LUX1sw9Z/0U4AHaxgvUKYfFvsD9vAfs9zJbeof+5oxFW/W/Y1pVokv+RaLnJTnYFTVB8kqIY5FyH5NsQbrcvqXvf+AC05vgRO0Xk0N4HWDabU59SJhLT7eiMvu6KJGgBWZOBEnYzYSPAFT0kj0U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UnRl7cWK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UnRl7cWK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64581C32786; Mon, 29 Jul 2024 22:37:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722292660; bh=D6mwweKmN8jdrEMRzN0PVB7taUVfH02s8ZKzYztglK0=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=UnRl7cWK/dALs/MmxWM0sGFOIZGaAS66HvROtgjNEmUSOPoj23fvApw5NPl+CSJ6e digPOBU8kE60wtcmncwtpnFmnf00rXR3V+4jKNCtr9tB4F2+rI6c/kYl2PNvNJH8Qy NSvcINAru96l7DOPL0iItTWz0hMAuGE/yNbgtMuyflFEs8i84gXmuJdSghXE3wRcY6 Q/XA/oxU2hX3d9P21PTpgJZzpkHxrXxF+6q6QaKbQWoXkyC19fddpRrxH5yZXsZLqr aVUL3hDOtMnofOkrLd8ppfxWqTehU1jr4KRKsvVSyq8kJ6Vl0WZd+gUhTKE6ZY6o6f z+3UAvP2hSinw== Message-ID: <1c25853ce67aa1b169ecd41e4283ad4e.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240718210513.3801024-6-sboyd@kernel.org> References: <20240718210513.3801024-1-sboyd@kernel.org> <20240718210513.3801024-6-sboyd@kernel.org> Subject: Re: [PATCH v8 5/8] platform: Add test managed platform_device/driver APIs From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, patches@lists.linux.dev, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, devicetree@vger.kernel.org, Brendan Higgins , David Gow , Rae Moar , Greg Kroah-Hartman , Rafael J . Wysocki , Rob Herring , Saravana Kannan , Daniel Latypov , Christian Marangi , Krzysztof Kozlowski , Conor Dooley , Maxime Ripard , Geert Uytterhoeven To: Michael Turquette , Stephen Boyd Date: Mon, 29 Jul 2024 15:37:38 -0700 User-Agent: alot/0.10 Quoting Stephen Boyd (2024-07-18 14:05:04) > Introduce KUnit resource wrappers around platform_driver_register(), > platform_device_alloc(), and platform_device_add() so that test authors > can register platform drivers/devices from their tests and have the > drivers/devices automatically be unregistered when the test is done. >=20 > This makes test setup code simpler when a platform driver or platform > device is needed. Add a few test cases at the same time to make sure the > APIs work as intended. >=20 > Cc: Brendan Higgins > Reviewed-by: David Gow > Cc: Rae Moar > Reviewed-by: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" > Signed-off-by: Stephen Boyd > --- Applied to clk-next