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=-6.7 required=3.0 tests=BAYES_00,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 36648C4338F for ; Wed, 28 Jul 2021 11:08:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0B2A460FC4 for ; Wed, 28 Jul 2021 11:08:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232530AbhG1LIF (ORCPT ); Wed, 28 Jul 2021 07:08:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:59992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231994AbhG1LIF (ORCPT ); Wed, 28 Jul 2021 07:08:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EF9A260F9C; Wed, 28 Jul 2021 11:08:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627470483; bh=trE/tVDwca/JiD/LF2rEncqmVvjl7sCjg9XNKytSN+c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sZcH+JeIi/3tL5+A8Mkxm39almtmSyzdLZ7dd8HlI//ZxDjmhIAjPeHlub78DVyHv sSJ+utpd1jtxYFi0HrvdZ1hvyYPMZFV7CyQowIuEwtdIFfLZL4OUG+MMGWsCUwIsLk iVhvdAf04qodbmx3bEomCfkA/qDTnUlZ7if2GqmYWPWS1C+VMERKNY/RNnxHWFTMfw PHuCB5+ymEG4GqGG2be9AWi6OJx/2W9meaycfJR7uMZisqeXjcEzduBKnMJx4L+dST AjL2zmnN9kZ1+eRwyVyfjZgP/BQ66kvE2mr40M+flmkjFX1czagdkoZy9QWs+lXYWd NeWAekxEtMzwA== Date: Wed, 28 Jul 2021 16:37:59 +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> <0aa86cfb-09e7-df99-1a28-dd9086d64058@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0aa86cfb-09e7-df99-1a28-dd9086d64058@denx.de> Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 17-07-21, 16:48, Marek Vasut wrote: > On 7/17/21 4:34 PM, Vinod Koul wrote: > > 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> > > git grep indicates around 170 matches on dmaengine_slave_config. In my case, > it is generic PCM DMA in sound/soc/soc-generic-dmaengine-pcm.c . Okay lets have this. Looks like kbuild-bot is not happy, can you fix that and send update -- ~Vinod