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 DF62FCE7B05 for ; Thu, 28 Sep 2023 08:00:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230044AbjI1IAn (ORCPT ); Thu, 28 Sep 2023 04:00:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbjI1IAm (ORCPT ); Thu, 28 Sep 2023 04:00:42 -0400 Received: from mx06lb.world4you.com (mx06lb.world4you.com [81.19.149.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5901C95 for ; Thu, 28 Sep 2023 01:00:41 -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: In-Reply-To:References:Cc:To:From:Subject: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:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fgWMBbIJl9402SB9ewgEM6bntZF2EeCKh6HL/FBkrkY=; b=QbgBggONMiSJ4rnmlm3PTmsn/Q Y9NwcsKSYfezR89pwUA2h+4igjf0YMJWkRn6R1lfHrCMRseltm9fJi3GIQDmJA82DXGgKbDaazL3J 0kHRsBI/lUar3d6aqgmVVCDxMg8NIsIEdiR3r7FWd9t6zJl9zQxKn6D58WwDOeLu0b+o=; Received: from [195.192.57.194] (helo=[192.168.0.20]) by mx06lb.world4you.com with esmtpa (Exim 4.96) (envelope-from ) id 1qllws-000333-2X; Thu, 28 Sep 2023 10:00:38 +0200 Message-ID: <566384fb-e5c7-d061-62b4-2becd423fe0f@sw-optimization.com> Date: Thu, 28 Sep 2023 10:00:36 +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 Subject: Re: DMA Driver Template Stub Content-Language: de-DE From: Eric Schwarz To: vkoul@kernel.org Cc: olivierdautricourt@gmail.com, sr@denx.de, dmaengine@vger.kernel.org References: <39e7223b-6d88-8e38-1752-3e5ce162ef60@sw-optimization.com> In-Reply-To: <39e7223b-6d88-8e38-1752-3e5ce162ef60@sw-optimization.com> 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 Vinod, is it worth putting effort into kind of that? Cheers Eric Am 19.09.2023 um 16:26 schrieb Eric Schwarz: > 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