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 X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00096C433E0 for ; Fri, 15 May 2020 06:57:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CC301206F4 for ; Fri, 15 May 2020 06:57:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589525863; bh=jnCPwiqOh+zJ3vviW4gFRvxdkVv56zAejpkrdVS/M1M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=HWQ0N1V1MdL7K6p+0YnaJar5UKFJybAfWDlgInr8KvROzHA7CQa6dOX+XJDUcaXeJ JDjxE3ikoacsiEL92NVDPOxmQrNOYfNcp/PRtNSbSWtmR0F55+1if7kygyqg0UW++s KskvtMUBfPodQhbdttHfgPp4IeZCFXb28WSCT2QM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726665AbgEOG5n (ORCPT ); Fri, 15 May 2020 02:57:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:60384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726623AbgEOG5n (ORCPT ); Fri, 15 May 2020 02:57:43 -0400 Received: from localhost (unknown [122.178.196.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 504C1206F1; Fri, 15 May 2020 06:57:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589525863; bh=jnCPwiqOh+zJ3vviW4gFRvxdkVv56zAejpkrdVS/M1M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bd6FrTEISeLwQQsUio8f6e/UuDg4BLKeU+zfDaBnwZsR9usUiKyMVXo/liQopANsf rSHYDVg+aMjVYbnaz/GvSxC7slHFAo960hkmom39PtNsKCqpmezYK8hOoOEaCBhznc EvvpFShs8ZwXrq33PSr2H6U9Eab0qbSfvqsMroWU= Date: Fri, 15 May 2020 12:27:32 +0530 From: Vinod Koul To: Sascha Hauer Cc: dmaengine@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Robin Gong Subject: Re: [PATCH] dmaengine: imx-sdma: initialize all script addresses Message-ID: <20200515065732.GK333670@vkoul-mobl> References: <20200513060405.18685-1-s.hauer@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200513060405.18685-1-s.hauer@pengutronix.de> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 13-05-20, 08:04, Sascha Hauer wrote: > The script addresses array increases with each new version. The driver > initializes the array to -EINVAL initially, but only up to the size > of the v1 array. Initialize the additional addresses for the newer > versions as well. Without this unitialized values of the newer arrays > are treated as valid. Applied, thanks -- ~Vinod 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 X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87AC8C433E0 for ; Fri, 15 May 2020 06:57:48 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4EC2C206F1 for ; Fri, 15 May 2020 06:57:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mDusF0yv"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="bd6FrTEI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4EC2C206F1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject: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=dh9b0LeKjtotze7SXvPbJi6sjcqVUeLA33DQvye8j+k=; b=mDusF0yvr0MPW/ mkcMN1S3nc3rMNaJkjuNrde+hPEKuJ1EYMrlxDN+NewUtQYItOmNxLCpqfVHeIfnTNBPYFkFmp4g1 ritcnCFjVjNmbR4OryMuK0eF6Nhs5MIg+jcJR5802dkjYnoTyVPM7gFPyPw24v1g+kyUtJc6RWssb d2JjqG2VmZrlZCJIO8qs5eTxSYzDt0xmvY+ld1ZvYyTQdvtXSPiFgj1g2kxQnG+wwz7Ga6Hs3HSYJ 4N4paTheb9kAjDamHo2vWrrAAcxVtQuuOEEEDVkTWqgsHy5e2bmgR48YuGEo5rw1OGPu6laZ6hEWB eKLcLKhgRB04d/j9D9mQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZUHz-0006C0-Pv; Fri, 15 May 2020 06:57:47 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZUHw-0006Aq-18 for linux-arm-kernel@lists.infradead.org; Fri, 15 May 2020 06:57:45 +0000 Received: from localhost (unknown [122.178.196.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 504C1206F1; Fri, 15 May 2020 06:57:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589525863; bh=jnCPwiqOh+zJ3vviW4gFRvxdkVv56zAejpkrdVS/M1M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bd6FrTEISeLwQQsUio8f6e/UuDg4BLKeU+zfDaBnwZsR9usUiKyMVXo/liQopANsf rSHYDVg+aMjVYbnaz/GvSxC7slHFAo960hkmom39PtNsKCqpmezYK8hOoOEaCBhznc EvvpFShs8ZwXrq33PSr2H6U9Eab0qbSfvqsMroWU= Date: Fri, 15 May 2020 12:27:32 +0530 From: Vinod Koul To: Sascha Hauer Subject: Re: [PATCH] dmaengine: imx-sdma: initialize all script addresses Message-ID: <20200515065732.GK333670@vkoul-mobl> References: <20200513060405.18685-1-s.hauer@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200513060405.18685-1-s.hauer@pengutronix.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200514_235744_093642_06A28089 X-CRM114-Status: UNSURE ( 7.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dmaengine@vger.kernel.org, Robin Gong , linux-imx@nxp.com, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 13-05-20, 08:04, Sascha Hauer wrote: > The script addresses array increases with each new version. The driver > initializes the array to -EINVAL initially, but only up to the size > of the v1 array. Initialize the additional addresses for the newer > versions as well. Without this unitialized values of the newer arrays > are treated as valid. Applied, thanks -- ~Vinod _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel