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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0318FC433FE for ; Mon, 11 Apr 2022 11:27:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238568AbiDKL3K (ORCPT ); Mon, 11 Apr 2022 07:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236755AbiDKL3J (ORCPT ); Mon, 11 Apr 2022 07:29:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A8BA3B027; Mon, 11 Apr 2022 04:26:55 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id D40BAB811A6; Mon, 11 Apr 2022 11:26:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E950EC385A4; Mon, 11 Apr 2022 11:26:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649676412; bh=EMTWp8dpFj9+gfzH1CPLMeaTXve4kBlv+N/I1XxXhWI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZeGicYyMCpRxuXAlJVME3hGWvJrkbieIqnfuRRnP77EqnXyZj7gFS5Z/UlpT5Tsba smxIldwU6DABgM+XgeeAmmd6dp4U/Zx0L4clOY8HebJdfCPcoB5FsaqJKsrx7Pwrnu AK548rqprQEnsc/rZr1fdst+ysunYRMQAD41OIVCVeI8/J3E3bEVjL9Qmum3bHKgyW +/BtCDisEfBtjv84Fa3HDPBKlUZiV/uW4AilPu78rdTdg9OX7bLvT+hTssqiNS0vyB b7nXhO9cnCm7x4O1bEZ29eL1FtsIap0qOq2eDmiZNfpRlcXDindWT+uDcl1OklCfZY ueL5RPrKkAtEQ== Date: Mon, 11 Apr 2022 16:56:48 +0530 From: Vinod Koul To: Biju Das Cc: Colin Ian King , Prabhakar Mahadev Lad , Geert Uytterhoeven , Dan Carpenter , "dmaengine@vger.kernel.org" , Chris Paterson , Biju Das , "linux-renesas-soc@vger.kernel.org" Subject: Re: [PATCH v2] dmaengine: sh: rz-dmac: Set DMA transfer parameters based on the direction Message-ID: References: <20220409165348.46080-1-biju.das.jz@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 11-04-22, 11:06, Biju Das wrote: > > This is a deprecated field, pls do not use this... > > > > Above code is correct and then based on direction of the descriptor you > > would use either src or dstn parameters > > OK, I get -EINVAL because of [1] as client driver is filling > {src,dst}_addr_width based on direction. > > Maybe I should remove the check from this function or > Fix [1], as it is deprecated?? Please share your views on this. Yes please fix it, we need to remove users of direction -- ~Vinod