Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6899789rdb; Fri, 15 Dec 2023 11:13:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkxFFTUyrzDy/JOf2v9Obz1ZrW+n8BnN+hsYW9yozRLcz6pINBdpmF4ZLTaIwCTtEIuVOj X-Received: by 2002:a05:6e02:330c:b0:35f:856f:e2c9 with SMTP id bm12-20020a056e02330c00b0035f856fe2c9mr3898912ilb.7.1702667592446; Fri, 15 Dec 2023 11:13:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702667592; cv=none; d=google.com; s=arc-20160816; b=eD0gJGcATkwDyDXT7fEvp1qKnOwP8QkvgB6wBMtzUI4+ijGwhGNmPlYLvBMActJV9U Opba9xWAvOpyGOlofM+rC/HOzNBpqU6Cxck5qKFWES99VnEv1egFsEG4DkWXdRlCbrwd jt1BPVKVVMFKAhVicbbSRaSOvP/WIFrVkuYpe4DxFMq5RG1OirTWo3XQdY+569/S0XpG lPh1+9hlY/csMGmt2nIHm+kYD4oP6ABO8oOBZiLxtXDEsWBBxf0rLTVN4ZXuKrL0G3Iy YahFqqnUtu+HrR5W0/+X1tjBQ59Ae8+fN2kNsNwuF2FtNVJ86CEuGbnP/hh1adb88sPo aUMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=lLFpd5y805Nps4s2XX5uixG/NjQY/nNvAtSKCIs9Bl8=; fh=aWz3b3447PAhRsTJxX6stekk3x/3nemsWvd8XcqL080=; b=nHNB2MmTTRwsFmIU+dsMgh8xiM2iIiab9G0VwLCgQ3UctoyA0dIHGbCA3RkFdsVVjw lDcfRaDpnxjRn+qSqdDqt+jMXhCEsRHI7ctA1hTaTWPXJvqwF/lkx2Nsk/KWFudPeYQH C0DUFFWETHiQohyVP5Cqz904mFLkVpW2E9f7v+PGFs5ZK7swrd+auojvbuuqwvwPuNst v7EeNyMGzV461I/u8KRD7O4Ny7P6TCoDyhNuj/Vo9xTKZFkbIF2qDLEzgyFHelsyl7ct +j2Hou6wepKDITj8RxxxN2AJVY01pgLs2SCGVvK9V1BVsngarmqdS2dwoIG7r8A50G1j qGpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PHCXvTmY; spf=pass (google.com: domain of linux-kernel+bounces-1555-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1555-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k12-20020a6568cc000000b0056f7f18bbfdsi13192942pgt.632.2023.12.15.11.13.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 11:13:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1555-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PHCXvTmY; spf=pass (google.com: domain of linux-kernel+bounces-1555-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1555-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0E15F288FC4 for ; Fri, 15 Dec 2023 19:13:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A44433FE2F; Fri, 15 Dec 2023 19:13:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PHCXvTmY" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5058E3EA71; Fri, 15 Dec 2023 19:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-db99bad7745so852376276.0; Fri, 15 Dec 2023 11:13:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702667581; x=1703272381; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=lLFpd5y805Nps4s2XX5uixG/NjQY/nNvAtSKCIs9Bl8=; b=PHCXvTmY1MYic2tXzmdqjN/gqNKA3/3GgMLFBKxCIZQjdPXZLXGhPsXdTND2h1X23H rWw1w7guOk7Oibfp21pdMdwZ0yuKIChJkXBtAXQGRloSkEVS88syczYpmU2kxOduLatJ yPY1j1oIkm9D6Hm6+adc1RU8OpLHV6JadMoUh6vfPk4SIxEy7bBCT0S0BgEqhUkcIUcG QYqnAdJ2EKWgGKFjKhTnZ1rc7ke0qPpPViR55CNmNiYRgSkIvMwEGufUCwIR+DPu6gq4 6by+/fcu5WdlG8kA4pSDua3NAmqwtcGHUHRSSRtSAaNnjPwq01XI7Vx1ymrsyLmyneQ5 Vebw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702667581; x=1703272381; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lLFpd5y805Nps4s2XX5uixG/NjQY/nNvAtSKCIs9Bl8=; b=ZFOa8JqCYF1mACRMcW2F1zO2YXo54/8wSJvYXh1P9xuKJVIM4QHMzdQoCY5PbCC54p pfEDP5wGHIECGyoxEtlXcgz/UiEk+goUJpwQGpcS3s+clfZYyzfJGXa/yfaiD2ImsCf1 /F5pGLwYoiqW65ZVeDKlkRYABoxcVsop4YzuHACQitqllSCnWnMwE3CbHOItx2ZllGmh /Souoi1h5H5/2n2G/6vCQo8JREswUwnijNzgz24CkAZuorLGWygq7reHCu0cvizvEUZw gmyID5kN/teLQ4mAhKrdOciDKwshMHnZhIr1+ag8ceXHajSPMo/06JkKFQ37VfNnopKn tMfw== X-Gm-Message-State: AOJu0YwDQ+C0O4xlzBDn4D8aHhkazaoVIiyO1ZM2471flgEh7iSSRi3M 1ir1PCN1DGVtw8MI8xfhlE8= X-Received: by 2002:a5b:786:0:b0:db5:4680:ceb3 with SMTP id b6-20020a5b0786000000b00db54680ceb3mr8523533ybq.0.1702667581169; Fri, 15 Dec 2023 11:13:01 -0800 (PST) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id o12-20020a258d8c000000b00dbcb622b2e9sm2941010ybl.53.2023.12.15.11.12.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Dec 2023 11:13:00 -0800 (PST) Sender: Guenter Roeck Message-ID: Date: Fri, 15 Dec 2023 11:12:57 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] watchdog: sbsa_gwdt: add support for Marvell ac5 Content-Language: en-US To: Rob Herring , Elad Nachman Cc: wim@linux-watchdog.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, gregory.clement@bootlin.com, chris.packham@alliedtelesis.co.nz, andrew@lunn.ch, fu.wei@linaro.org, Suravee.Suthikulpanit@amd.com, al.stone@linaro.org, timur@codeaurora.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, cyuval@marvell.com References: <20231214150414.1849058-1-enachman@marvell.com> <20231214150414.1849058-4-enachman@marvell.com> <20231215180127.GB52386-robh@kernel.org> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR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SuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <20231215180127.GB52386-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/15/23 10:01, Rob Herring wrote: > On Thu, Dec 14, 2023 at 05:04:14PM +0200, Elad Nachman wrote: >> From: Elad Nachman >> >> Add support for Marvell ac5/x variant of the ARM >> sbsa global watchdog. This watchdog deviates from >> the standard driver by the following items: >> >> 1. Registers reside in secure register section. >> hence access is only possible via SMC calls to ATF. >> >> 2. There are couple more registers which reside in >> other register areas, which needs to be configured >> in order for the watchdog to properly generate >> reset through the SOC. >> >> The new Marvell compatibility string differentiates between >> the original sbsa mode of operation and the Marvell mode of >> operation. >> >> Signed-off-by: Elad Nachman >> --- >> drivers/watchdog/sbsa_gwdt.c | 247 ++++++++++++++++++++++++++++++++--- > > That's more than half the existing driver... > ... which makes me really unhappy and wonder if it is appropriate to hack up the existing driver that much. it doesn't look like Marvell ac5/x really implements SBSA. Given the large number of device specific deviations, a separate driver may be more appropriate. Guenter