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=-11.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 5DBC0C636CA for ; Sat, 17 Jul 2021 14:34:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 39A59613D4 for ; Sat, 17 Jul 2021 14:34:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233913AbhGQOhv (ORCPT ); Sat, 17 Jul 2021 10:37:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:53254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbhGQOhv (ORCPT ); Sat, 17 Jul 2021 10:37:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 610896108B; Sat, 17 Jul 2021 14:34:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626532495; bh=zrqph7ltfF3P3SzKZwcuOE0cYjNrKQVF7mgim6YCDIY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RO7vUrJzHlACLCoUIXMrGN+nbOTqoWstu8lmz6sUjfxEblopiiF2S5KXK+kvigGz2 OUueFLtKns5qgwo0N3MfnBnR5hbZOOnJLBnaHjDNqTCh1pCxEBtQstgO7t7by6nilY kWFd0TVqEJFZcRQcOH8L1yzntvJV3k+0e/EYoeqEFoYeH6zAocPczh1yPGM9Abc0R7 B5L9pbYiMyM8r5LhstPFyOPztP8lecS9qSLobzSB09Ncy9RAbPIhnHrwWYPftzjyi8 +HlVKy+qasxBx+ptwkAtsQnQCEy/PM1UWMrfeTvLnb+2ANcjZspgadUfItF+0OwjJk tEHjB9aqbHs1A== Date: Sat, 17 Jul 2021 20:04:50 +0530 From: Vinod Koul To: Marek Vasut Cc: dmaengine@vger.kernel.org, Akinobu Mita , Kedareswara rao Appana , Michal Simek , Vinod Koul Subject: Re: [PATCH] dmaengine: xilinx: Add empty device_config function Message-ID: References: <20210716182241.218705-1-marex@denx.de> 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 17-07-21, 14:01, Marek Vasut wrote: > On 7/17/21 1:36 PM, Vinod Koul wrote: > > On 16-07-21, 20:22, Marek Vasut wrote: > > > Various DMA users call the dmaengine_slave_config() and expect it to > > > succeed, but that can only succeed if .device_config is implemented. > > > Add empty device_config function rather than patching all the places > > > which use dmaengine_slave_config(). > > > > .device_config is optional, Yes the dmaengine_slave_config() will check > > and return error... > > > > I think it would make sense to handle this in caller... (ignore > > ENOSYS..) rather than add a dummy one > > That's what I was trying to avoid -- patching all the places in kernel which > might fail. Why handle it in caller ? And how many places would that be..? The xilinx driver using xilinx dma right> > > > Signed-off-by: Marek Vasut > > > Cc: Akinobu Mita > > > Cc: Kedareswara rao Appana > > > Cc: Michal Simek > > > Cc: Vinod Koul > > > > ummm..? you really need to update this :) > > I had the patch around for a while indeed, it fell through the cracks. This has to be more than 3 yrs old then! -- ~Vinod