Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp115268pxv; Thu, 8 Jul 2021 16:35:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxB+WP2nLY9XdzixDVWm7bvriF5A9+QTBqWgyvqCwh6DYMAUup/zyOaCoPOoVbFNtr396X/ X-Received: by 2002:a6b:7e0a:: with SMTP id i10mr1871978iom.92.1625787340354; Thu, 08 Jul 2021 16:35:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625787340; cv=none; d=google.com; s=arc-20160816; b=sNJow0iyVFfX2oVGxRxlqduFTkTLIv8cJA6RUiWYvu5v0slIS3IobsJLUYlC0WoTn/ Nl0hClr0b/kkh9ewIOYe+kLY0lhq0BRp0NCdstKlvdMqIKCj3zYEArKQXUhVXwBF653d mFbAyQQ5aMkQbiU7Z+UsixvNu0ONecK1N3Vk8xby6aLADsV2moDNFTix0SB9r12gBetB mrLUaYRSpfNauxs+GuXyafMDgpr0FxpmbAIMo3gTxkDeBNPvJAtxCQp9SXonIpv3TUmG v4L2SGRU8hLuqVr4ljI9Ny1mclwULOhjAgRUQJWLwaPhdkBLAe48lX0P5w9cu2eUkZv6 Ea8A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Zouc1/U5BDso+mvVikqmMgaFazoCNtnyknhjnU5yGkk=; b=EOGSEv/S5TS9eNjDfEUuawe64lMtxsNcNx4Z76gHHVyY858986ZiUWQOlkrTtVFyDa QxQbhbC3w20QYDX0dNNXu3TlnSnHv2XkhSAlXjwPxrv5XU2LGs5fbE77g2ml9Jop//Qg tCcazT73ecRhKA0jcy7GQ0b3ZrfqltVhW7CZLqLL27UljGt4RLOwPiB6XI5YRlcvxmNR ZFVPfDDYRhQT3CF/XXjPeUSUi6SYfuWgO6oMK5FcOhZu45HCey4OMhbtWRf8qL7FP8rs ijuPDY1sLFxrmncX0rajqMIrreX8xKuB52hHjigAibPGH9ojW0ptKD2yQ8EphsRlf770 289Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=FBlLRDt3; 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=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si3975058iob.27.2021.07.08.16.35.28; Thu, 08 Jul 2021 16:35:40 -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=@rere.qmqm.pl header.s=1 header.b=FBlLRDt3; 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=REJECT sp=REJECT dis=NONE) header.from=rere.qmqm.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229605AbhGHXgY (ORCPT + 99 others); Thu, 8 Jul 2021 19:36:24 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:13766 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbhGHXgY (ORCPT ); Thu, 8 Jul 2021 19:36:24 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4GLXfq4rKlzMT; Fri, 9 Jul 2021 01:33:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1625787220; bh=qGNg7hSbfzBvr5magCDMkvgViKrImUwppARwb6jC+qA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FBlLRDt3tje8tO2OFphoFwEHC3eQ8/MU1ItlKZ7Hwfw+Y9sCzFfsvS36Aiqt0iK6G KCZnWjpD6vWkn/MNP48ZnZ9wzh6xwE8miH73lnGN3SiWaFO1UXOApuBNNSccS+qw7Z kXdgF0sFTMuakQlEC/IpdJNVaJQ3iU0O/Rlxm8D3sozTrsUe/0+QH6jgE2C0TR02TF PsuSyzvmqN3WvjxbKE0VgQDxldX1N5fXtVDQps5xbE7XtzPGidg2qJuZMEKcMoSzYE oIIOj5P/S3Dgw6B9pslzLHvZlEY4whdIVTAMsKRHCiu4U6hRc4KY7safXtsNr2DijO M2fmG/hHVVN+Q== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.2 at mail Date: Fri, 9 Jul 2021 01:33:35 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= 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, warthog618@gmail.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: References: <20210625235532.19575-1-dipenp@nvidia.com> <20210625235532.19575-4-dipenp@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210625235532.19575-4-dipenp@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 25, 2021 at 04:55:24PM -0700, Dipen Patel wrote: > Tegra194 device has multiple HTE instances also known as GTE > (Generic hardware Timestamping Engine) which can timestamp subset of > SoC lines/signals. This provider driver focuses on IRQ and GPIO lines > and exposes timestamping ability on those lines to the consumers > through HTE subsystem. [...] > + ret = of_property_read_u32(dev->of_node, "slices", &slices); > + if (ret != 0) { > + dev_err(dev, "Could not read slices\n"); > + return -EINVAL; > + } > + > + hte_dev->sl = devm_kzalloc(dev, sizeof(struct hte_slices) * slices, > + GFP_KERNEL); Nit: There is devm_kcalloc() that will check for overflow in the multiply in case @slices from DT is broken. Best Regards Micha? Miros?aw