From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 826A3C433EF for ; Sun, 30 Jan 2022 12:25:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=76BS8vZhvoWlV0Ui8/feWiENbQC4e0w1RG6hia0B/+w=; b=egtqEGB0XktC3S iljVnIlZM9ijTIuS4cKSP0LIci49zue/XORn6m1Be3xFpn7HrFp3SV97bu0I7XNmWKfEYsdX5LT8X HZLZBrBYjNC67KcNWS+dMfsVzLaicSagA3bDQ+3yucASJtkNDrPmK9kIAtsD9eNFrI5QOaX3LXYtc OjVA37f0x1omvxKSPJt5Dvaw0LomwEP/jUcbkvWWnEXwyd1i1sUEjTC33dEgsT3CE/vsOC8qiFPl2 F6kY68jKDC8ojJVQVHC3WZLQDIHgown4JukatQWEWiW8cdmGjnT+r2hKyRojEz6dTLXIRz4SWW0DN lfLV9gv2n0VArZtjR9bA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nE9FW-006Tx4-MA; Sun, 30 Jan 2022 12:24:06 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nE9FT-006Twb-OK for linux-arm-kernel@lists.infradead.org; Sun, 30 Jan 2022 12:24:05 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3ECDD60FF9; Sun, 30 Jan 2022 12:24:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01646C340E4; Sun, 30 Jan 2022 12:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643545442; bh=dh4V2i/t3gof15OVJRsffMu55Wy+2GQACjZjP9WXEuk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YYXmFOWHszPcUWyJgwGzGoFga7aNDBQaYFy0wqIJdE60CtgqErDWHTTQInnXcMBJN 6wf8DlYHhT52nuRXTddbrLqDe+vdIMAlzIt/oHTJ/5lRMPQ6OQuHa1QtOSe7vvny0p WPYgEHzWJggTQL0dYHYF+bhTxWb9eVwZ9s9RL4T6ewjAD3vQQFq9gl2DI10QthdtMY jdNp7+yFjj6v4FkihFceB0Zp3h0t2ucLGmBBuVgsqyD4slOz/Ysski+xlmas8m4tCd HHcUXgW31gZ0M4y3DfgC4aQww1LQ4lUTG3r1i1Dvu2qhf1yg4JxdI3LqMYmF1YlHSy 81S+63gMSbHfQ== Date: Sun, 30 Jan 2022 12:30:25 +0000 From: Jonathan Cameron To: Michael Tretter Cc: linux-iio@vger.kernel.org, anand.ashok.dumbre@xilinx.com, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de Subject: Re: [PATCH] iio: adc: xilinx-ams: Fix num_channels for PS channels Message-ID: <20220130123025.5ff021d9@jic23-huawei> In-Reply-To: <20220119114513.2035609-1-m.tretter@pengutronix.de> References: <20220119114513.2035609-1-m.tretter@pengutronix.de> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220130_042403_870724_744249EE X-CRM114-Status: GOOD ( 21.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 19 Jan 2022 12:45:13 +0100 Michael Tretter wrote: > The IIO channels of the PS are not provided in the sysfs even if the > ams_ps is enabled in the device tree. The reason is that the channels of > the PS are not added to the overall number of IIO channels. > > The line somehow got lost between v11 and v12 of the patch series. > > Add the number of ams_ps_channels to the number of channels to correctly > register all channels. > > Signed-off-by: Michael Tretter > Fixes: d5c70627a794 ("iio: adc: Add Xilinx AMS driver") Applied to the fixes togreg branch of iio.git. Thanks, Jonathan > --- > drivers/iio/adc/xilinx-ams.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iio/adc/xilinx-ams.c b/drivers/iio/adc/xilinx-ams.c > index 8343c5f74121..ede968efb77f 100644 > --- a/drivers/iio/adc/xilinx-ams.c > +++ b/drivers/iio/adc/xilinx-ams.c > @@ -1224,6 +1224,7 @@ static int ams_init_module(struct iio_dev *indio_dev, > > /* add PS channels to iio device channels */ > memcpy(channels, ams_ps_channels, sizeof(ams_ps_channels)); > + num_channels += ARRAY_SIZE(ams_ps_channels); > } else if (fwnode_property_match_string(fwnode, "compatible", > "xlnx,zynqmp-ams-pl") == 0) { > ams->pl_base = fwnode_iomap(fwnode, 0); _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel