Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1025520pxt; Fri, 6 Aug 2021 21:54:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPfHO20I0EeGU77MZNhuB3FEDniyVMIhmy8S4sAl0qmnJkBbeIaHYv5yW+PpW0YtM+3vqA X-Received: by 2002:a17:906:d20a:: with SMTP id w10mr13459534ejz.426.1628312062872; Fri, 06 Aug 2021 21:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628312062; cv=none; d=google.com; s=arc-20160816; b=a4PpZHGEM0FoZ1Dk8A8YgAZc6/fOOg+/0B80XPvLkFTxtvSmlZ8ljaQQ8v9QPWMKtv OClV9MVnnomgOFq40MGf9ku86rmYn7bN/9tjClfWryT3YdAai/3K9gWdfoF8P3sIbup+ 4FmIKaJBgWwnrIdQgUZNG7umpMAPR3SnFHm53TBh+5PZdgRAWzmH/lvkjaBT9u7nPpca rwU1UQq33FL4FdjFn8eQ+3m6/maVfdXlfs9FgEOLLdLYbBhzJLb8ROywLIdAcjHcBxeN +dhvy6oLyF1WhohCaOOTY2bzK6nlMHh0oPlwCfmGwksRqv6SJY2jewZqlecJoP8WpWeT 04IQ== 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=GX4fAo4gZowc2/UObZ0IC1xUUvBo7nyrkPAPltf/NFI=; b=aFORH/Wq7ix2qwYrrStddJo6YwwCxUehfqxgRUl59v45gOjAm6HUSuHZal9NeWQyB1 VKQAnIVp3owEjUiTCoiCtmudq8s40zK0L5F1HYa20ra+RKTKM8R/RsP+9E06W0h+ixhH sJvmc03bOErItyWQ2NPIWjBp9KZD1uVzToO15o4FF732Hn7nFsew1rMC3cGu/wJlvMur Zqt3GmWXyTHgvQRZv1e0PVLpalFpHiznDBUb4jsaDy2+89jaKUyoE1d/qatutts/yosy J9gVFyKys0sHNjQFlu2pTVoLE+ADk63bSRqkIGl94gMdAN4pAig9h8912wcSjGlLf10N PiNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p8CK2a9B; 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 w11si11986554ede.300.2021.08.06.21.53.59; Fri, 06 Aug 2021 21:54:22 -0700 (PDT) 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=p8CK2a9B; 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 S231143AbhHGEvo (ORCPT + 99 others); Sat, 7 Aug 2021 00:51:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230150AbhHGEvm (ORCPT ); Sat, 7 Aug 2021 00:51:42 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8F74C0613CF; Fri, 6 Aug 2021 21:51:24 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id u16so9910442ple.2; Fri, 06 Aug 2021 21:51:24 -0700 (PDT) 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=GX4fAo4gZowc2/UObZ0IC1xUUvBo7nyrkPAPltf/NFI=; b=p8CK2a9BidNO2in0zHu5N/7NyeyvP1ZFpEPF5/4sd51eyRSOnXTuyiXU+BUm/tm21j adFPUIdtR/JJlT9nXg3t6KHre4m9limmYhiklrzOrx9lFgF1j+bq53QABu5WAcYtZXq2 rAZdbgcJIlwvpDgAsfyVq6lcswP2oNs7F+CxZV+t95dAMjbyovAgOFt9XuHkeKfAMnkK EhtPeyZ0dzaZfeQPGnn6Uwhm6gGNLsZM/jVY59+gZze8LEovsME5uDX/dz0EQupI56S8 3zmkpaRAmfSqguIrPR8J+ux3Fl21D0hog2RpUPToCxwP6mZc8j/ZnuDs3/RrNJpEnal4 O+vg== 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=GX4fAo4gZowc2/UObZ0IC1xUUvBo7nyrkPAPltf/NFI=; b=oxGZv3VKd7VTE68O7xRmPnTGgobIJe0cwUiOhVt7dNmk8t5RIIrW+649kBr+jeTSU0 PtCCNnrQr6GhxBDiIO6U87iDE3Iy0JqQwsOjz8eCDNYFjT8P9iTmzMfai/enTAKkcDl2 oftpqXhaskMyP/l11lP8c6ra7X2KquE0E5svptg6dgcn0HxL/lp15kaZZvyHWedmt3Wx qyJRzCGi9qeylsfHlVWX+yka3UGg/igZd8kZFw5KuhickzOYCdK7mUUECZj3ddv6ZVyG 1lpoy0Wq97q7SeG/hi9rQ1kOFPBm78fb1dnvbs9iDwVpM7yBQk7t4sP+h3g2Ujh/AC5e asWQ== X-Gm-Message-State: AOAM531jC7FwLI1Hr613NRJ/xh9cUij+lyU6mLenHS07oUmcLKVZDa2S 0PZ7CH7wNnwPxEPaFSx0PtE= X-Received: by 2002:a17:902:6b09:b029:129:c61e:e31a with SMTP id o9-20020a1709026b09b0290129c61ee31amr11313997plk.57.1628311884405; Fri, 06 Aug 2021 21:51:24 -0700 (PDT) Received: from sol (106-69-178-229.dyn.iinet.net.au. [106.69.178.229]) by smtp.gmail.com with ESMTPSA id f4sm13544176pgs.3.2021.08.06.21.51.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Aug 2021 21:51:23 -0700 (PDT) Date: Sat, 7 Aug 2021 12:51:16 +0800 From: Kent Gibson To: Dipen Patel Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-gpio@vger.kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, robh+dt@kernel.org Subject: Re: [RFC 03/11] hte: Add tegra194 HTE kernel provider Message-ID: <20210807045116.GA13675@sol> References: <20210625235532.19575-1-dipenp@nvidia.com> <20210625235532.19575-4-dipenp@nvidia.com> <20210701142156.GA34285@sol> <52768891-6c01-7588-e557-5c9eae5375b6@nvidia.com> <20210731154323.GA24906@sol> <1ff6df66-9895-bd42-322a-515327f30366@nvidia.com> <20210807030746.GA9850@sol> <91a173b3-18dc-5d6b-002f-893e7478717b@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <91a173b3-18dc-5d6b-002f-893e7478717b@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 06, 2021 at 09:52:54PM -0700, Dipen Patel wrote: > > On 8/6/21 8:07 PM, Kent Gibson wrote: > > On Fri, Aug 06, 2021 at 07:41:09PM -0700, Dipen Patel wrote: > >> On 7/31/21 8:43 AM, Kent Gibson wrote: > >>> On Wed, Jul 28, 2021 at 04:59:08PM -0700, Dipen Patel wrote: > >>>> Thanks Kent for the review comment. My responses inline. > >>>> > > > >> 2. Does hte handler solution create race between two handlers? i.e. edge_irq_handler and > >> > >> hte_handler, for the worst case scenario as below? > >> > > No. If hardware timestamp is selected then no irq is requested from the > > irq subsystem for that line - only from the hte subsystem instead. > > So there will be no edge_irq_handler call for that line, so no possible race. > > That is not possible for certain providers, for example the one I am dealing > > with which requires GPIO line to be requested as input and IRQ needs to > > be enabled on them. > So, for your hte subsystem to work, the consumer has to also request a line from the irq subsystem? That makes sense to you? Have hte do that, rather than the consumer. And another reason it makes sense to integrate this with irq... Cheers, Kent.