Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp48875pxb; Wed, 20 Jan 2021 00:31:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZThKd1nsttt92BYkEXg/THiLsUuzdD/i/rwATKNlNkwQ4c+nnAMNYXKWT+JY4L6tddo2J X-Received: by 2002:a17:906:dfda:: with SMTP id jt26mr5325684ejc.240.1611131485758; Wed, 20 Jan 2021 00:31:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611131485; cv=none; d=google.com; s=arc-20160816; b=MRzO7b1d3LOyxlES8Cqz9M5/06zzbDPbwZACefHIQWbJ45pZYPX4SrIXzha1B0FxEX YJW/MgxHcc0qXSatDTJ8GAuphBWc+CO3s7fFoOvIXAp1EQ/Ow5TRBTOPj16rrybB//9B UJ7E7QZejKITXbn6fe3iAAfSPBf9WwYVmneoEU4B7ddezm5ZwmOKC9WfldZsHBdgV/Xi kMA0Uxx04rZp4caqRj5AnXD6K0uavlRRRTy172GsBDviuEtOra1yXnbCZyPYp78fGVGK l/yPQA353Mcr/p7FBLrhoiZZ3nNDA4R+RvXC/1V9G6HhXsN9n4NYGdbB9mhgcAbrsLi8 HaPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=RTXeC5aayNTWG15s0puHZNF76pw0KopLItiiCJO0kOQ=; b=GSiQGMRrPDrFg/qr4SFaXOMbw4Dpx6UCMTIyWkDtsEPZCs2K8XDqE6cH5n+yR9816w 3KrvfnSSA7eJLAwfn3kJAPBU5pqkpve9eM29sa0nNM553SfXiGXM1GUYIlErQ98OJibW 18+pd8+xcbad+NZgXIe1nlLZNbseFgqHmwQS2H+NL9HBe0l5QoEtI5xhdyTmRwob/ESl lRbiWmnMY+z0V8ue07eHPzOtASFsv/N41lj8Rr6RZY96l92PbQGzSrnEWl9IeBT3C+y7 0xNHNiQAA/9qGiqY4sCCR8838ioi3Snnv3fIZeQJm5cL4XVt1OQX2FXlDoftHRAdrDwp h6Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q12si560486edn.552.2021.01.20.00.31.02; Wed, 20 Jan 2021 00:31:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730755AbhATI1L (ORCPT + 99 others); Wed, 20 Jan 2021 03:27:11 -0500 Received: from mail-ot1-f48.google.com ([209.85.210.48]:34981 "EHLO mail-ot1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730931AbhATIWs (ORCPT ); Wed, 20 Jan 2021 03:22:48 -0500 Received: by mail-ot1-f48.google.com with SMTP id 36so11103028otp.2 for ; Wed, 20 Jan 2021 00:22:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RTXeC5aayNTWG15s0puHZNF76pw0KopLItiiCJO0kOQ=; b=KkSWZ4qN4LZqk+U5NOiV5IXtDlCxtGKR4MLgsE2tKknD8O3MWimoA+2AEjedSUlSZQ UsBZmIGOJnZL7UWg94BMaWl4FQ3dpVLNg6BSLF65q9PtC3LBO9qj1LtmoOgZy9RIJ8Fc ekrunzE038EThZC+3Q99VGtsLGDJIaSofY9wUVenjc51vUsOZJwF/TE4PFw5y9a6+OBl d2/ws4txi5lVN+d0BIgXnvaEQ5q0pQ1WWxDgUKfTXkNDmWq1pwklt6nRzRaMuWvaIdFM sFHREWRPbiuGMx4DWX/neVTLz74TjiqmBpDgA+a04ldxZC1ekvtgLkuZzofKcCuBte86 jBYw== X-Gm-Message-State: AOAM531u/aolxoIVQ5KZ1hGJItT4g/S9c/cwLrK9ZneHWX23XHNjNULy nrVXWwFL8uG3VrW09DTVXpif8MfEKjJPNpBbrO0= X-Received: by 2002:a05:6830:210a:: with SMTP id i10mr6283207otc.145.1611130924295; Wed, 20 Jan 2021 00:22:04 -0800 (PST) MIME-Version: 1.0 References: <20210119080938.1832733-1-geert@linux-m68k.org> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 20 Jan 2021 09:21:53 +0100 Message-ID: Subject: Re: [PATCH v4] drivers/soc/litex: Add restart handler To: Anup Patel Cc: Stafford Horne , Karol Gugala , Mateusz Holenko , Gabriel Somlo , linux-riscv , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Anup, On Tue, Jan 19, 2021 at 9:18 AM Anup Patel wrote: > On Tue, Jan 19, 2021 at 1:40 PM Geert Uytterhoeven wrote: > > Let the LiteX SoC Controller register a restart handler, which resets > > the LiteX SoC by writing 1 to CSR_CTRL_RESET_ADDR. > > > > Signed-off-by: Geert Uytterhoeven > > We have SBI System Reset Extension (SRST) in upcoming > SBI v0.3 spec. Using this SBI extension, you will not require a > dedicated reboot driver for various projects such as Linux kernel, > U-Boot, EDK2, FreeBSD kernel, etc. > > The OpenSBI v0.9 (released yesterday) already has SBI SRST > extension implemented so we will just need platform hooks for > LiteX. > > The Linux support for SRST extension is already available on > LKML so far no comments: https://lkml.org/lkml/2020/11/25/6 Thanks, that would cover RISC-V. But what about other users of LiteX, like openrisc and powerpc? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds