Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11592478rwl; Tue, 3 Jan 2023 01:28:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXuo6PienX5OgclwXrBPLgeej9VpvG/u3Kf3ShdxVYHoL9DpSRY8xMLcw+bg1+eLVP8KAUjV X-Received: by 2002:a17:902:ab0e:b0:192:acd2:73cd with SMTP id ik14-20020a170902ab0e00b00192acd273cdmr13057596plb.49.1672738085576; Tue, 03 Jan 2023 01:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672738085; cv=none; d=google.com; s=arc-20160816; b=iSnpdxqd3J8XIwMywoAbjJz3jHBi3+zIm29nyn56/a8F0BvLFQdUmpI9ZpNKbpbhOF NlkYe+TD65GFTWW9XkmWH21YzDhCzH8o9DuEuiykP3YZQ2ahxJF+dM0FCb2JQcuORc+l vZcBWve3Fm8VQmvAYzrna9WSeWTDVmesKpz4paAvRQs8Cdyx586+2UvdIqzG84poCcW1 dzLHGLCedvugHk0oEt2tkkhYmk0+DRYpaXPK4RX3vXfzye2/mwVVxTB9mIr38M5AT97g rxpZNgrrvlrN3IgNFt29lEJ+19bBmPcdMzucYffDCMjsVxCMBAJ3NwoEuAVYHHP+OGxC V9rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=fvLcQsFoerdZp1NUVoU+fVtrbVImgnCozdSyZvf657M=; b=Y/Pde9hnxWBNN2BA7hMbwiGflps0aYISoEet80JRep0CodqxsFcT3fSCSQ99khXCnm Cwmb7oe38lDBNpbd2lXYRnUje5FdAptj+ZdW4ftdxX7ackxYDfW2WTcjs2EtJ2mFLlYz mR7PSHrHwgkY0hSzGm7e4FZ8+BeK8OnDfeg4vPGdkNOLxLkWvP12b2mS49Mq1//oeFPZ YF/yd+y8ii8vAgWvj5Dm6qhUwJQC7hG0C3IvK/sts/V7XlUC7305IMXfX2X2fvCXKuaN CbyJEWzqDAUHppAlbjiqPma0pDrrUXPbSEroztZln/be3NvPJucHJovwJV+SZ91VXKHq szJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Ws9Cub/+"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a6552c8000000b004600f27528fsi32591420pgp.175.2023.01.03.01.27.56; Tue, 03 Jan 2023 01:28:05 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b="Ws9Cub/+"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233023AbjACI6J (ORCPT + 61 others); Tue, 3 Jan 2023 03:58:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233100AbjACI6H (ORCPT ); Tue, 3 Jan 2023 03:58:07 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2C3EE42; Tue, 3 Jan 2023 00:58:05 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3038vp7o028382; Tue, 3 Jan 2023 02:57:51 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1672736271; bh=fvLcQsFoerdZp1NUVoU+fVtrbVImgnCozdSyZvf657M=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=Ws9Cub/+7w0PKUQPemZMSjxO6nIE3aQwNakI9rlkq2TE7mFt0n1yJH4pbWvFWPOQN xpVq8l5E6wpl6tJ2hsLYYI6/ujth4H1eQf9iG1ZMYnIeM6yO+DcMD9WNYNhS+kOa8H ujThcf+BQDhms0GDaLV/DZFanIFiFzjoRI7r6SwA= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3038vppn017272 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Jan 2023 02:57:51 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 3 Jan 2023 02:57:50 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 3 Jan 2023 02:57:50 -0600 Received: from [10.24.69.26] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3038vmhl060761; Tue, 3 Jan 2023 02:57:49 -0600 Message-ID: Date: Tue, 3 Jan 2023 14:27:47 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] spi: pl022: Only use DT-specified DMA channels Content-Language: en-US To: Vincent Whitchurch , Linus Walleij , Mark Brown CC: , , , References: <20230102160852.3090202-1-vincent.whitchurch@axis.com> From: Dhruva Gole In-Reply-To: <20230102160852.3090202-1-vincent.whitchurch@axis.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 Hey Vincent, On 02/01/23 21:38, Vincent Whitchurch wrote: > When a platform is booted with devicetree and does not provide a > platform data structure, the driver creates one internally. enable_dma > should not be set in this structure when creating it; the probe function > will set it later if DMA channels are specified via the devicetree. Yeah, I agree. > > Setting enable_dma = 1 when creating this internal platform data can > lead to pl022_dma_probe() finding bogus DMA channels (since there is no > channel filter specified) when no DMA channels are specified in the > devicetree. > > Signed-off-by: Vincent Whitchurch > --- Acked-by: Dhruva Gole > drivers/spi/spi-pl022.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c > index e4484ace584e..a17ff839117f 100644 > --- a/drivers/spi/spi-pl022.c > +++ b/drivers/spi/spi-pl022.c > @@ -2091,7 +2091,6 @@ pl022_platform_data_dt_get(struct device *dev) > return NULL; > > pd->bus_id = -1; > - pd->enable_dma = 1; > of_property_read_u32(np, "pl022,autosuspend-delay", > &pd->autosuspend_delay); > pd->rt = of_property_read_bool(np, "pl022,rt"); -- Thanks and Regards, Dhruva Gole