Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1932439pxb; Mon, 18 Jan 2021 04:01:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8+uT+vWUf1TwRRMd6uCFgBx9O4U6ITeSsMOvt2yCPIonfTABJorHQ0KiM6SuyKlH3j4Jj X-Received: by 2002:a17:906:c78b:: with SMTP id cw11mr15010843ejb.448.1610971273225; Mon, 18 Jan 2021 04:01:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610971273; cv=none; d=google.com; s=arc-20160816; b=tZoxLAp9ZL+aCfX01Q330tXE+RAF1Tc2tieG6a5gJSU48MHFcJZ0+z+n5HE9uMnOdX Oja0JUYDFEwz68jbHkEMmnc0q1NyDwmMUO2L6FZHlBlZp5KjOLD+VkQMWgTstuCsqZvB b5czN++C2cYqcshx+bSp7uSp/wI7t/RIiwLCZwQlyO4oPmHombd2zqFNFMK6tRpbadWc qwkVstMvctudnzDmN3D9tVpswgWM0olIUxkmo9R1SrLBZAWU12H4cfUAsFKdJb310Ggw uXDSmkanzpXpwr8gmY311l8/uehQkTwAJHXAnfDpihRgrJmf62kVrx3jgykq6d6j1+uM iQYw== 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=ipwUR8PxhfU+Q1ZYePZ+2uiR+ifyi9sSeLsGzpWteYI=; b=jwA5hxDmIXjq/bt31B24iAotU7kEogjAnIWgplyrZ4XF3FWKmnPDSTCVy755zNs8R/ 12//+HwDUzLydo5Yyp6nj37GYqlHf0DXp7MJetaQALMPY6FhGaNFrDgbnphtzqZn3h/q pMWthp1HxNPH5fT+5E1Oq5WXGGfSqbxKxo1bEF9Hobhh2FgFV0bjPZNjnGQpXbpReESy os278v9Re0JFlmZiyZ1T1q2a5ITqeMYsydX4ivs4rSo++DaH4lFJ4kPed7nPajUEZIjH dcmFjdlA9xgTTzoIx/0My88KxSLZ+hVQ3e4fDX20uff08bjhMxEmPOqTPHgn62Gq29qk 5Vtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OHKSFORq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si214703edu.188.2021.01.18.04.00.48; Mon, 18 Jan 2021 04:01:13 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OHKSFORq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388798AbhARL5q (ORCPT + 99 others); Mon, 18 Jan 2021 06:57:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389306AbhARLo3 (ORCPT ); Mon, 18 Jan 2021 06:44:29 -0500 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7993CC061573 for ; Mon, 18 Jan 2021 03:43:35 -0800 (PST) Received: by mail-pf1-x432.google.com with SMTP id q20so10047510pfu.8 for ; Mon, 18 Jan 2021 03:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ipwUR8PxhfU+Q1ZYePZ+2uiR+ifyi9sSeLsGzpWteYI=; b=OHKSFORq3aPYGXkNol6QFJwUarkQu0y4jqiN55AZhYAk4QEd6YLrfzcLgHPB5tPKXC yeysszVwrjRPmRmSSCZ5M9PisvELHCllPwNsS5H4MQ9RedwFcXzyZHBN6jRVTdpyAVo0 83yyJR2bTfTtyrW++Vk+fst4cxW1vBzu48YzELoTTRLnCaID56mrpGpaltyUdma8GvVI ndSrDGFCBdsv3Jr/PxGkEEyFfTidTBfWlX7/yT2woQMykTe0WCMGjlwj7HJqpATO3ijE erOZzHEWp2LJbskJMRMuRzgn5lhZ3oaJplrPwlAy2u36PHG9qWMRIxnlIeRnvHBwuXYx h1/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ipwUR8PxhfU+Q1ZYePZ+2uiR+ifyi9sSeLsGzpWteYI=; b=Lnuk6sOvXq3GaTHRjoZIGmSvUc71qs/+vZlHJGnMgQbZGUHcFIE1Bm1NI//1pxsbsS a2N9qs0DY0V+iX4CotddGy+mWIkHBeanRUJfc7PS7UgTRYmoLRQOYjLwnPmcj8Lqb6R3 YRGLgyW36Ewan5N+qT9lX6K2oPFtNpU2G7flAPevNuGqNdQSMuTIkE6bJrHqPA+EiU/m iM7k0iO4C3u1l2HbDytE0GUBsA5iU3rofT3FNkrPgWDiMsmqAOEr6OnQCtcH2sppxs/L V1QNvu1YyfPgQUfh2Zo7eIGK0kqSdS3LQ2HO7/DjmH/6JhxiydMLsWEvcr0bUG8KME/a R/sw== X-Gm-Message-State: AOAM530LuBRommuWnzw97wuytw99uWoDZhjUcHlsQKGwPtmBX6C1/31D 7CKkF8B3c07KEXO6EqpXtxE= X-Received: by 2002:a63:c205:: with SMTP id b5mr25375887pgd.281.1610970215062; Mon, 18 Jan 2021 03:43:35 -0800 (PST) Received: from localhost (g238.115-65-210.ppp.wakwak.ne.jp. [115.65.210.238]) by smtp.gmail.com with ESMTPSA id s21sm15439461pga.12.2021.01.18.03.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 03:43:34 -0800 (PST) Date: Mon, 18 Jan 2021 20:43:31 +0900 From: Stafford Horne To: Geert Uytterhoeven Cc: Karol Gugala , Mateusz Holenko , Gabriel Somlo , Linux Kernel Mailing List , linux-riscv Subject: Re: [PATCH v2] drivers/soc/litex: Add restart handler Message-ID: <20210118114331.GF2002709@lianli.shorne-pla.net> References: <20210104164500.1311091-1-geert@linux-m68k.org> <20210114020311.GE2002709@lianli.shorne-pla.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 02:48:49PM +0100, Geert Uytterhoeven wrote: > 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. Hi Geert, I don't seem to see v3 anywhere. Where did you send it and what is the subject? -Stafford