Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1233882rdb; Mon, 19 Feb 2024 08:19:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXcJ4jVwqTqaxJLuhCRvpfHT2IJVngEDTfIZqaPmk8v4Um/VBciZdzBk+uPklqm5ZpyrAIIVUNFQ/y6CEB9c4l4C/Mu1Pi+M1wYB9gvDQ== X-Google-Smtp-Source: AGHT+IGvc6HVpFAsGiZ1bvlv1vNzQq9xWeI2L5gToYJ1AMaxaNMya8ktGO5hW4/pRc4+4biExT1E X-Received: by 2002:a05:6a20:d907:b0:19e:4ebe:4abd with SMTP id jd7-20020a056a20d90700b0019e4ebe4abdmr12693736pzb.60.1708359559265; Mon, 19 Feb 2024 08:19:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708359559; cv=pass; d=google.com; s=arc-20160816; b=cKXB0EhTHo4Z8CEOS5Rpy3N45J8YHZPG6b1fLcGONoniX+haNX/HTy1u1RYSiKcUM3 yC8lxutrcNyQaumV+YOKXFVTVoLxJBllYZ4UKU0/c3z4w0JJZE3jEjp0HHuexx4GWlRC NWONoaY0Xbj4Io9Hx+sJOkD/kW6nm1aMQezcpThUmD0IKYv9xBsLe4peHxhcPEGgMxRu lJ6gAgaelhAMo3Ku3vwhpdED08k3B6NSwMlb/ylax44vz3IxpLOzqraGewLpV/MKcGt2 lUVCH5SUXJPQqbT9HvPg+D90cW9PUVfcYCFc49AlCFW0hrMZxkYESPgFQ7Ve5sC0oC82 1jFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:cc:to:from:subject:message-id:date :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=XnGkOpf2CVhPz/zljsYVnaZe/git0nem6as96fuozFY=; fh=Y006kXyZJ7x+XJ+xf7+2T6trTSs7D9sR4Op2sTsxn9Y=; b=uSidvdEO4k60GB7RCHtx7aLwAYUdaPJFaLvxHBEOWADPwec5itA15m8aJ2DhSydBSZ 9ip53p8aJC0zzo6b4rne9SWN/+yq5HdEXls9TPUjx1rXBBDu3yr8aZajwWmS1CTa0uSp TjNGEUWflgu3Fr0XfRGkkdSB39LYvvtW2yWImRP6HhbfYZnY+BqGiHadV1+thAN/67Yc V4nnX8/PeBCP2dz1BcSt0Lt/FOn0fqojX3FoyB9/B5zhnwjuDTN/NHHNqSXwcbfnxmMD Q1GwsGM7g+9c9hDCiprHPkChc1D4uk4cp9sYAy27P3G8hj5ypYBpeU/5DTt6yPRhtATe VlcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kRt2ZEVE; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-71661-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id by8-20020a056a00400800b006e302dd06aasi4080310pfb.66.2024.02.19.08.19.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 08:19:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71661-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=kRt2ZEVE; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-71661-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 F39A1288B1A for ; Mon, 19 Feb 2024 16:19:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 475283CF7B; Mon, 19 Feb 2024 16:18:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kRt2ZEVE" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 EC4D13B1B2; Mon, 19 Feb 2024 16:18:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708359530; cv=none; b=p66c90+yfzlRxfHZCTBlNctkRAqJnR3g9uD/8Z/g9M+8A9e6mYpjUHa7eIw8dgyhtKEEEB3JYERnxGIWN44F5ZWqbafjrgJnzwpi3sFFV5ciArDppYZr5bWH/KBu3mqMFJ9wx8qdtKVLexFrmfBlr/SQHXJPM9PDTajFdkKmsfY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708359530; c=relaxed/simple; bh=5LP7ITI8IxR8FihyrEfCPsDi/hGVUhuwAapc8ojBuww=; h=Content-Type:Mime-Version:Date:Message-Id:Subject:From:To:Cc: References:In-Reply-To; b=evDUyZ+0fly5MFBsmFn9VaPoh7NALfvntcHu6ChdFOQM9dIBDU2jwWhErEKx6Fn/HdSE8E3eQs9ZVLpOUcDaRbP4bh7ccw4c7DXuG0QxnkcP9qMfrjNF1jENUMRBpAg84Z5f2VJDQru9qCap0Vqk1kXX75WKdfTGWYt+Se/zNnE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kRt2ZEVE; arc=none smtp.client-ip=209.85.218.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a3e82664d53so164766366b.3; Mon, 19 Feb 2024 08:18:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708359527; x=1708964327; darn=vger.kernel.org; h=in-reply-to:references:cc:to:from:subject:message-id:date :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XnGkOpf2CVhPz/zljsYVnaZe/git0nem6as96fuozFY=; b=kRt2ZEVELTC8206hPrKBxwHd0K7EEonen9W+xLVkxzYcedVhxpaUXoP3FH5iD7wnoJ RVoBpnJfThUlUm+tv0ttDU2JI6zi/CwTfpNjabQuGg7sGr1Jb8ytOaIOaCqdk7RJk0KE M+6+MFipJMczJ0lID/MfgiXjovWjPO0W+yPn/zEP/ZqZ1w9uinzJmHEPYL01ds7BYUTn w5ky8UepE1f+9REx40hivXM2X316W/FjclBd66LFHdp9Mah2Pz/FjTORpuOIZ5OkWxnS zhyzogl/sr3sZpVKtD4qOehl7ghQjDjaZtpuq6lZR/QrrW/cmg3oAFVI5RUQBZQtWtiu pm3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708359527; x=1708964327; h=in-reply-to:references:cc:to:from:subject:message-id:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XnGkOpf2CVhPz/zljsYVnaZe/git0nem6as96fuozFY=; b=AL63P20PQMOaCq1qnhE7FsHjEMEeRzOED63Ur3I8AWWYpHyP8tAYYVjDNe7xVEhV4w I35Ox+KUYwtTNP93vpeKvNojtqlygThbbph2z42ZGKA3IexCYumxxWhzaBoUnyKlkDwe PXdMiWiXyKFdd5j3JBIGLBcUJHzAQWgbcPi/V6uN3bBWh+d7tcx1KMgJ349lEhZ+rjTS 0FCCMIYK1nOAaWQ0SGBjf3uWkwvRyhTeoqJPiNhDOIApwnGhOzt2dhr3IAVilWKHyLo4 /i/moI8Xf5vuRVEM0q19WK0OwrGx1ZWAIIlx7gEF30FvJrg1CK4JbRQe5YW77pBSrPnn J6iQ== X-Forwarded-Encrypted: i=1; AJvYcCVANScUt2sXLnupRb0x8aW6ITlNvIoSsMi+W+68EKeCE6rys5hIk5s32XusOWscyRFYhU0QKAzn5bKWKA/Uu+VpY9Lpl4YNea67tAvM5LmhB/kc5ctLEFWu5vleMElfDM/NrZ6eS407XWE= X-Gm-Message-State: AOJu0YyzIXVWS5pjLjqPkGUtIDeQpmDftdqrY8YbKEYcKvEcE1gDyoLY PkfyeXoVYBf+rgs3Z+lbxAOfhYI4aG2AedTPUGmy5is9qzhwl8x1 X-Received: by 2002:a17:906:1cc5:b0:a3e:98ee:765d with SMTP id i5-20020a1709061cc500b00a3e98ee765dmr1790223ejh.60.1708359527215; Mon, 19 Feb 2024 08:18:47 -0800 (PST) Received: from localhost (p200300e41f2d4600f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f2d:4600:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id tj1-20020a170907c24100b00a3d35bccdf0sm3099051ejc.139.2024.02.19.08.18.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Feb 2024 08:18:46 -0800 (PST) Content-Type: multipart/signed; boundary=5c88819ce2d668f2ae4936a9cee5d50b46dfdf026a77d46f159ba4c5cd91; micalg=pgp-sha256; protocol="application/pgp-signature" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Date: Mon, 19 Feb 2024 17:18:46 +0100 Message-Id: Subject: Re: [PATCH v2 1/2] clocksource/drivers/timer-tegra186: add WDIOC_GETTIMELEFT support From: "Thierry Reding" To: "Pohsun Su" , , , Cc: , , X-Mailer: aerc 0.16.0-1-0-g560d6168f0ed-dirty References: <20240216210258.24855-1-pohsuns@nvidia.com> <20240216210258.24855-2-pohsuns@nvidia.com> In-Reply-To: <20240216210258.24855-2-pohsuns@nvidia.com> --5c88819ce2d668f2ae4936a9cee5d50b46dfdf026a77d46f159ba4c5cd91 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Fri Feb 16, 2024 at 10:02 PM CET, Pohsun Su wrote: [...] > diff --git a/drivers/clocksource/timer-tegra186.c b/drivers/clocksource/t= imer-tegra186.c [...] > @@ -234,12 +239,49 @@ static int tegra186_wdt_set_timeout(struct watchdog= _device *wdd, > return 0; > } > =20 > +static unsigned int tegra186_wdt_get_timeleft(struct watchdog_device *wd= d) > +{ > + struct tegra186_wdt *wdt =3D to_tegra186_wdt(wdd); > + u32 timeleft; > + u32 expiration; One more thing I noticed: you could put both of these declarations on a single line to make this a bit more compact. Thierry --5c88819ce2d668f2ae4936a9cee5d50b46dfdf026a77d46f159ba4c5cd91 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmXTf2YACgkQ3SOs138+ s6E30w//RlBSnLCPyQUCIOSqMYVuZUurdNauTPP7qqPY/IIOiqNIekmR+XRVjEDZ A7pk4k1xqy8W9hfDYptB+F+3FpAgwT6Zk0kuIlD8lQgBhuHdfLXEmLyv+ZIBJJ1/ MNPXk89CIL3MDz5LDveTIVFG9jr8PO9WpPXjKFY+bN0tV/XAqAH7GKpW/ViUzE+w dCIiN0GsH1/K8MxhOyl/juWZCAF7FpCxkWJ/CCJM5D6tQlP5qpw2bAwoFmlRD8PB h92WRSlXCs2oiS58curADylcOvGFS8K26EJoP7vaAjGx//UiYBPrC0q1MfReROyx Nd424Uv1jMPWbWpS4rRLwLsLTg3hlxGVHkkeXBvHtd5PF1JCvu9HXwzpIbP9X+nP XWW0ksjeb+kQFoeXNTnYSHI8VsJXy3bnhM76U6TQZGXAOkQdF+uoP0VH1Nj9JGwo SHSXfYWrXvVscWo1rQNDMZ6S2OmzRLpzLAr0cPQ6EEJ+cHZyFMShWMN5HwuaI4KA Rvj24XY5z00kZFDPD7m590pqyWfbxakj9Q43oOSLMcs1B27REH1efAtiaQMIRe40 CxiFK7ayjesBpNz22hN4L9iCm0QtNcDZiiAW/f1+jq419fUkIQPox6S1h8v4C3iJ IZ+NiKstX7lczpyFv2t3AuCfmQyHfrAt475aCitHZJGCWTvLMkA= =ZlBV -----END PGP SIGNATURE----- --5c88819ce2d668f2ae4936a9cee5d50b46dfdf026a77d46f159ba4c5cd91--