Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1746634rwd; Sun, 21 May 2023 05:36:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XqGhmED1ysjcQtPQFLidfG3y+9Cy4jncDNww/ZzxEW0piuFOlzoJxkIwMnUBQccRPMgSZ X-Received: by 2002:a05:6a20:a5a8:b0:104:b7b4:e03b with SMTP id bc40-20020a056a20a5a800b00104b7b4e03bmr8821650pzb.48.1684672578041; Sun, 21 May 2023 05:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684672578; cv=none; d=google.com; s=arc-20160816; b=ILnGuQkct2iv2RtGoL2BxBcVzHsMf0giId5thpuNxvDKnouKkWI4flh05UrG7YBQZr GVr7/dpjQ0gIHpUT1f4E8srueEQZ2lwOOI0gfaEulGIqTrpdIFPNgYgTSzq0/dSCfLoS Bwi4od5mzGucYO4UuOI/NsX1H455COnOKj6Bm6/cDBcV6Ej/79ChRKrp9d/IYyZxmr3D 6fCOZO2FfVoOqPpThyDoRjrSo2VMTVky1Br4M1nBvwUkN/1igu+M9AXWOww5IBcbAX9y i0LsyMrIZUm/7+9TXwekxZ4GpRrsizMl0NAtwBTG7vmWfQF4tEASfmfKIocFULB2G4LG DTmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8acgGF0NHHKZub5lUt98WAVIHgnPQFZUdLa8V6hnUOU=; b=z4tZG0sy9T6c9lx88Kv4oGtdUAGy7eEgCE8Masbd4rJZVn+JPKsUgpVh9I+OiqsH6Z sdA1KgL8NiY5m0+0N2u9NBQQyqu9nH/oZ3v+to6aovEHEJ8cI5fFSfiRqkLw89qaE/rB dCXMPW1D9yxqeNOX3NsnsWIM75EYITYmFTEWq4yr8n/0P+U64vKn+tLwIP4s2eMr+AgO 1T2s7M1AftDKTuRwtfrnZ6CL1N4K71KjAP7J9L4+fEz/z+XtUYDsYUwMNPgpTG21Wk+s fTGL840IFe//GPI7JnZrARjE/V5nhFYAMA4tSAZHgynsUOzfnueNI8ZhhdbXyfEafQWI MhoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Src54wdI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q21-20020a656a95000000b005303c3dedc2si3209648pgu.419.2023.05.21.05.36.05; Sun, 21 May 2023 05:36:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Src54wdI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229938AbjEULt5 (ORCPT + 99 others); Sun, 21 May 2023 07:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231179AbjEUKZZ (ORCPT ); Sun, 21 May 2023 06:25:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D05AB10C9; Sun, 21 May 2023 03:14:14 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 6520361528; Sun, 21 May 2023 10:14:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7FBBC433EF; Sun, 21 May 2023 10:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684664053; bh=SgpWj/R+8haw9UTysuAqZBmQnttr3cu4CFi/nHEGkNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Src54wdI36aeOynbc3nFprzf1ixqJOCjyA6KIfieOBDUuIl669VLVg0iwTwdfMjsU 6+mi4eyBQsT8j5VAK68AbOYGn1J+hKNVDz+5nrfStN3Fv8SqeAbg3IA33zdrXm3I6o s/flsp9Vt/c3vEEshAQwbinbWjAfrR80eFC16KB4lOQFHOM1KeOl4E5rRU4ZHIyB07 WyfCOT3PIZzxD/9KyTeSSAy2ma3qkdgdQfZh0EDgW4w0zCA4OOQsQ7loW4l6FYB4qE NfIiR52lT3eS9GAiW3KON4SDq0eHAXtmLCq7hmf6XZMniBR1sXjWouaFDK1OMuHlvM ut8UgulwKj9/w== From: Jisheng Zhang To: Lars-Peter Clausen , Vinod Koul , Eugeniy Paltsev , Logan Gunthorpe , Sinan Kaya , Andy Gross , Bjorn Andersson , Konrad Dybcio , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v3 3/5] dmaengine: plx_dma: Don't set chancnt Date: Sun, 21 May 2023 18:02:50 +0800 Message-Id: <20230521100252.3197-4-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230521100252.3197-1-jszhang@kernel.org> References: <20230521100252.3197-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The dma framework will calculate the dma channels chancnt, setting it ourself is wrong. Signed-off-by: Jisheng Zhang Acked-by: Logan Gunthorpe --- drivers/dma/plx_dma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/dma/plx_dma.c b/drivers/dma/plx_dma.c index 12725fa1655f..34b6416c3287 100644 --- a/drivers/dma/plx_dma.c +++ b/drivers/dma/plx_dma.c @@ -517,7 +517,6 @@ static int plx_dma_create(struct pci_dev *pdev) plxdev->bar = pcim_iomap_table(pdev)[0]; dma = &plxdev->dma_dev; - dma->chancnt = 1; INIT_LIST_HEAD(&dma->channels); dma_cap_set(DMA_MEMCPY, dma->cap_mask); dma->copy_align = DMAENGINE_ALIGN_1_BYTE; -- 2.40.0