From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADDBEC433EF for ; Tue, 8 Mar 2022 13:26:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1F91083932; Tue, 8 Mar 2022 14:26:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="bMKenf1M"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8AD9883921; Tue, 8 Mar 2022 14:26:30 +0100 (CET) Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 511BB838E1 for ; Tue, 8 Mar 2022 14:26:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82e.google.com with SMTP id s15so16048664qtk.10 for ; Tue, 08 Mar 2022 05:26:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=MLh67UD6n8MPtGZWaf+asSXBRCPDiiAOyLMBOqx7uy0=; b=bMKenf1M+lbLll5Owm13gu1DftDyrfBwi/X/1usfAKNJwo/5+oSgaKKcdXAhHxpA5E nBjQuGMjrk6CoBr4XedcCVj+EOU0Qd7oxR6pNcI0EquYr6v7EJ71oxE0UG4WjuesKg8V TQP+O0YC98qRQ/5Q7MB92q22JPUYBj9QRhZ6E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MLh67UD6n8MPtGZWaf+asSXBRCPDiiAOyLMBOqx7uy0=; b=f+mk4Q2kNO/OYpREZw79Xdr5sqrv/6VsyyrR7D5aDKrbF/+3mUSPrbO3M47fem2McM XWCQEaTyj1QjNsqkPXeRkeDYRtvRizJcCWI9XchayvAhUi7fA9OjJnVpJp3twKAfEUet /h1WU1+M1qdzOoVgsjH1T3nKn0lSrUwV7P0DH8EokZ0IikCH6xtocux5NPf7YG2XJIT4 zipsj6mY8JEJzRok5DdKtm2x5MnBaEt43CrTuF2iBiTAu1EucH9RktmPTP+0ZdUVwv7E zsoso48nu8KVBotouTDktwjJTTHDKYPEoyRZTtcU2ORYv790fFqUo3zIVuZEPafHjl3n FboQ== X-Gm-Message-State: AOAM533QRCvwFcNhrCMKxdpDwmDExD9uNKxB8oAgdHy7txcMRUCFZZmv fxJFHyq5CZmgFRdSYghskbUrJQ== X-Google-Smtp-Source: ABdhPJxL9Qt5ULSHuF3zlP/e2G+VW92+7xDNITR/nNh81sw6A9N0R8qX3MbKkQWTtizdrRju3QFUFw== X-Received: by 2002:ac8:5c42:0:b0:2e0:639d:677b with SMTP id j2-20020ac85c42000000b002e0639d677bmr9679799qtj.536.1646745984065; Tue, 08 Mar 2022 05:26:24 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id u14-20020ac858ce000000b002de89087e7dsm10311781qta.78.2022.03.08.05.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 05:26:23 -0800 (PST) Date: Tue, 8 Mar 2022 08:26:21 -0500 From: Tom Rini To: Heinrich Schuchardt Cc: Simon Glass , Marek Vasut , Masahiro Yamada , AKASHI Takahiro , Marek =?iso-8859-1?Q?Beh=FAn?= , Joe Hershberger , U-Boot Mailing List Subject: Re: [PATCH v2 00/13] event: Provide support for events to connect subsystems Message-ID: <20220308132621.GL5020@bill-the-cat> References: <20220304154308.2547711-1-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UQB5HvF8O5UniQSj" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --UQB5HvF8O5UniQSj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 08, 2022 at 02:11:02PM +0100, Heinrich Schuchardt wrote: > On 3/4/22 16:42, Simon Glass wrote: > > It is a common need in U-Boot to have one subsystem notify another > > when something happens. An example is reading a partition table when a > > new block device is set up. > >=20 > > It is also common to add weak functions and 'hook' functions to modify > > how U-Boot works. See for example ft_board_setup() and the like. > >=20 > > U-Boot would benefit from a generic mechanism to handle these cases, > > with the ability to hook into various 'events' in a > > subsystem-independent and transparent way. > >=20 > > This series provides a way to create and dispatch events, with a way of > > registering a 'spy' which watches for events of different types. This > > allows 'hook' functions to be created in a generic way. > >=20 > > It also includes a script to list the hooks in an image, which is a bit > > easier to debug than weak functions, as well as an 'event' command to > > do the same from within U-Boot. > >=20 > > These 'static' events can be used to replace hooks like misc_init_f(), > > for example. Also included is basic support for 'dynamic' events, where > > a spy can be registered at runtime. The need for this is still being > > figured out. >=20 > @Simon, Tom: >=20 > What is the status of this series? Takahiro's UEFI integration series > builds on it. Is it going to be pushed to origin/next soon? I'm waiting for Simon to reply to Takahiro's comment on v2 before applying. --=20 Tom --UQB5HvF8O5UniQSj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmInWXoACgkQFHw5/5Y0 tyyCeQwAtr9N2Lb7aWlKfaZX4ysT59kor7gTfyjbVWqww+3RoNZodxPUjDwmDxiT L6DDQchrehqwSPiGeRetTf3eZeZvH8boOa1YrwFEdiTDitjYykOm0s+lYs0xWdfG 8tvvgSj72KbHt3s628hkKJLQ0oQcz5ZmMpH5c9JeG2jteOM61MAaT7vyJComLQ60 r1nI+xlfj2H80vH+Eze0SZQMcMBOxGWUyt7LUNSLAlBsuSG3DzWQ2n0Oxj9U2Ifw fxug97QjQ+s0Gx2/ioKFlVO4egQtk8+dzXJa5IpIksDc5lTLLroGcn55PaDaqxuK S11yaAkwI9n1DTzQTYFVMhRw75cOw7L2zT2p5rww1SWHGS2mIOZ1B/XafRJ7uOwb dR6JosiJWj5fECUeq9WttyfIQPFSE3VOB+QnmR8qY+IJpPxg6Cc64ZAG8SNpTOvS algVMo97zuIkp6jhxp7W8pWNLVgzU0qYnvxL0a6FMAJbXuzopKGPfBohFhx2nb+4 T3ZwE7QH =skgx -----END PGP SIGNATURE----- --UQB5HvF8O5UniQSj--