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 39C50CD5BC9 for ; Tue, 19 Sep 2023 14:26:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232707AbjISO0S (ORCPT ); Tue, 19 Sep 2023 10:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232705AbjISO0R (ORCPT ); Tue, 19 Sep 2023 10:26:17 -0400 Received: from mx24lb.world4you.com (mx24lb.world4you.com [81.19.149.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAB83B8 for ; Tue, 19 Sep 2023 07:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sw-optimization.com; s=dkim11; h=Content-Transfer-Encoding:Content-Type: Subject:From:Cc:To:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qhbyCVBfFR9YN9wJTHnT0MyeQg7WZBOb/2f+d6Pj3xI=; b=EU1qKODhU3v1sxP7b+r/23eVHF /+A+ivU8kcY5SCaeYXLDkCIfurB9QZi8gOQ8RyL1M5UoECuyCeE3QTFgxjf5zZzWXQfNpSzFsn24G DEZErDjWTH++MIQlEODbgS4uKqeKY8P9wRopSMfAv/1n2ZAy6LnZAe8XH3mjgA40RtoE=; Received: from [195.192.57.194] (helo=[192.168.0.20]) by mx24lb.world4you.com with esmtpa (Exim 4.96) (envelope-from ) id 1qibg1-0008JB-25; Tue, 19 Sep 2023 16:26:09 +0200 Message-ID: <39e7223b-6d88-8e38-1752-3e5ce162ef60@sw-optimization.com> Date: Tue, 19 Sep 2023 16:26:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: de-DE To: dmaengine@vger.kernel.org Cc: vkoul@kernel.org, olivierdautricourt@gmail.com, sr@denx.de From: Eric Schwarz Subject: DMA Driver Template Stub Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AV-Do-Run: Yes Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org Hello Mailing List, what is your opinion about creating a driver template stub, which is regarded as gold standard, which driver implementers can copy then? This template should be properly maintained. Fixes should then be made first to that template and then be ported to the actual driver implementations. I have seen quite some isolated locking fixes and also others on the mailing list which does not guarantee a homogenous quality standard. As an example the altera-msgdma driver had been once derived from the zynqmp-dma driver but quite some fixes, improvements and extensions only made it back into zynqmp-dma and not the altera-msgdma driver (including a spinlock fix). Apart we wouldn't maybe need to change 59 files in the future, twice. Cheers Eric