Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp277041pxb; Thu, 14 Jan 2021 05:52:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEaNQgVAGkCqCddqe7rnsPMsUioFPuCQttLFVZZvL+ACPb7pAE81u4lnEPZ/9EwCCzB/o/ X-Received: by 2002:a05:6402:7d7:: with SMTP id u23mr5627516edy.325.1610632324084; Thu, 14 Jan 2021 05:52:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610632324; cv=none; d=google.com; s=arc-20160816; b=gXSw9PDzczrxs/o6UCWC7phkOPoz83cj2sTurarccEhnoXzbkDjps3XmnYaHEINcM8 AWq+dFXe18YiewWWDwf0kbquhEvFKYw3tfUwVS34o4mpa12Gocx3rzJypjbuQM+QmgyI Dw6lK8exXJp49CcIPZ4bkbj1ew7L//mjjCna23h1KnQY7vB8pKBzrWciSK0ni8/tlrjl B2jDqb5Bt4wWJ9GHWQdI/5PTfE9GjFdl3ky4zYmP1FEXKUdYHihU00b5kO/BkoOzZfDS ltwndThCa0OwQtqtG0gnnhSHDMPt4OOGWLlF4k25y2gG7TcxCwuqAwMEt6skIR1rzeYd vnqA== 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=zgOQR0ROatSAdWiCA9RFh4hh92+P9x5T4fMU/ADXeio=; b=h9f/RgVAS51/UubundhWlocynWudqrLXMJsWfyp3r3eHH57UoWd3LTPZAJDeujEcTL 2tPhLpmfXl36tIql0pXLsYuAs6u0ETJtNkR+tpCf3/QfV1dqViBD21sq/Y8qnUcrKVw4 aHBqioeADYCi4pT5tYIGP08DtxkSwQ2d8TObQut1pt3+i8I4MsS76h/U1ns4pJ7TNLDA OEy5ujOKo9t53Vwp+MmlsyTXcDh87ciVwr15/XDhDRH5mpqUEdHzA2vTXUTCFp662sRU 5E7YUHh4CTtlT3aYNbYTil0kOaitdLOzx95CNiiJASeVSkBM/r8MMPjyZPW8Xs+FNb38 KV0w== 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 ds13si1991440ejc.180.2021.01.14.05.51.39; Thu, 14 Jan 2021 05:52:04 -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 S1729068AbhANNtm (ORCPT + 99 others); Thu, 14 Jan 2021 08:49:42 -0500 Received: from mail-qk1-f171.google.com ([209.85.222.171]:38538 "EHLO mail-qk1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726736AbhANNtl (ORCPT ); Thu, 14 Jan 2021 08:49:41 -0500 Received: by mail-qk1-f171.google.com with SMTP id w79so7789215qkb.5 for ; Thu, 14 Jan 2021 05:49:26 -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=zgOQR0ROatSAdWiCA9RFh4hh92+P9x5T4fMU/ADXeio=; b=fII9md2MyMtc7duFvBgNNYwOY4AUZvlvy2EIItm4cAJQ3OSBo8MqyqdEh6CG1S6wMd AuWu7DEZ7ItrXWKZw/6/hlM45L+hFUu7EH7V+1tTmxwSG5pH2ZGVsyy1E9ZAvJtNO8sf JcSgbfQeTlqJgqKHlgBStuk/lgakf6fLceup2BP5Hy6nIrHRfE/vxCaHdBY0jDh+tJcv GgoraNWzMsb3r7NuGHYs/YKBpzLMj87lbJoPYRI5RaK6mauvH+YbaJDbIXxa/bcSr8CG LVEjqEgKpoW+a1/MErUHTW3+KJm3c5UBJLG8jfsSoQD+Nq4zHaouuTHbmaX33Pd/Clvh tJEA== X-Gm-Message-State: AOAM530VYiVltHyRULQiqUFxJYZDfeEglxbsAOqRR4pNZxV0NFLmKoTf vqQABD+JHAP/lElvmtCfsF4hNvAxAlibrWbgqhaOAJAW X-Received: by 2002:a37:a950:: with SMTP id s77mr7219663qke.122.1610632140676; Thu, 14 Jan 2021 05:49:00 -0800 (PST) MIME-Version: 1.0 References: <20210104164500.1311091-1-geert@linux-m68k.org> <20210114020311.GE2002709@lianli.shorne-pla.net> In-Reply-To: <20210114020311.GE2002709@lianli.shorne-pla.net> From: Geert Uytterhoeven Date: Thu, 14 Jan 2021 14:48:49 +0100 Message-ID: Subject: Re: [PATCH v2] drivers/soc/litex: Add restart handler To: Stafford Horne Cc: Karol Gugala , Mateusz Holenko , Gabriel Somlo , Linux Kernel Mailing List , linux-riscv Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stafford, On Thu, Jan 14, 2021 at 3:03 AM Stafford Horne wrote: > On Mon, Jan 04, 2021 at 05:49:03PM +0100, Geert Uytterhoeven wrote: > > On Mon, Jan 4, 2021 at 5:45 PM Geert Uytterhoeven wrote: > > > Let the LiteX SoC Controller a register a restart handler, which resets > > > the LiteX SoC by writing 1 to CSR_CTRL_RESET_ADDR. > > > > > > Signed-off-by: Geert Uytterhoeven > > > --- > > > Tested with linux-on-litex-vexriscv. > > > > > > This patch is based on upstream, i.e. not on top of Gabriel Somlo's > > > "[PATCH v5 0/4] drivers/soc/litex: support 32-bit subregisters, 64-bit > > > CPUs" > > > (https://lore.kernel.org/lkml/20201227161320.2194830-1-gsomlo@gmail.com/) > > > > Bummer, and that's why the RESET_REG_* definitions are no longer > > next to the SCRATCH_REG_* definitions :-( > > If it helps I have accepted Gabriel's patches and put them onto for-next. > > https://github.com/openrisc/linux/commits/for-next > > I am happy to take and test a patch based on that. Or I can do the adjustments > to base the patch on that myself. Let me know. Thanks for letting me know! V3 sent. 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