Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4891339yba; Wed, 10 Apr 2019 07:06:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfghvhHu7zjGPQrkSPh3sj9oGa7PLVJDmRsjGIDFqHf/IFxjZ1zug6d2gjLQVfluekG193 X-Received: by 2002:aa7:87c5:: with SMTP id i5mr37682048pfo.20.1554905216542; Wed, 10 Apr 2019 07:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554905216; cv=none; d=google.com; s=arc-20160816; b=WaSwBVaUAnVXt1v5xFSapL5FJHkS2WOvRRhbEqSFkDewzb7cFr5rIiA7ZcmgtzbmkQ I9e/iLU9en+Ce9jZJLaA8oRZN05xXjCy9wR5a1qeKzc+jKG3ZEV5nRTo0nfMEQYQYU1s pA47rYGapx5FeRYs+OGB0YWNH8G6usC5jjyqu2I0SB7FO6t9sfm1DqcUnTcuMlD1R8fq 3CLEpBqhNbxSJlUL2/bh2ifXK7E4KmPrZIX98J5SQlpE/2oRiXUf5TA8asyIAYLwYjVv nFynvkh9Y8yzwFKpzmvF7vJ9PY0W8bbkkq1UcMRuyJflfm20YsJSCh6zZPeR8Spsg9HX dshg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=QBGz5xHYcQjO20g4RGq1HL1eZuvgaSKiClCdrJu7Pks=; b=QYQU8JbVyB2200h4k1mQJsi5ObzQPgGCvLWSZ/BJzWU5w9189b9GpwQjkMdbZYBe1c 0LGq7XsbYzLxbpxYrSSNzdlzw8YswEofMIlhVzJIqDO1jbhfdzusUm+GBdxrhAphjW0W tvAd0S4huEoyuvHbxbUbZoXlMLam+VotvUaTlqM2bREgQO+fRfPyaJHOdswxYk3M04+F PGQsk8r4XqIAJTq8BfgLQJtgX2iF8cQoIUYDLjaQck5qLXPHfTN5UL/UHS9YCJhMpm0O NjSuopvNeXcEL6CjprHUGs43x/OQMlHhWXipGu3OHHmIWv9PZaC7uq19xQNbfox74kj5 Gv+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si29958425pgs.230.2019.04.10.07.06.38; Wed, 10 Apr 2019 07:06:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732501AbfDJOFn convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Apr 2019 10:05:43 -0400 Received: from smtp.asem.it ([151.1.184.197]:59791 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732471AbfDJOFn (ORCPT ); Wed, 10 Apr 2019 10:05:43 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003804831.MSG for ; Wed, 10 Apr 2019 16:05:38 +0200S Received: from ASAS044.asem.intra (172.16.16.44) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Wed, 10 Apr 2019 16:05:38 +0200 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1261.035; Wed, 10 Apr 2019 16:05:38 +0200 From: Flavio Suligoi To: Mark Brown CC: Daniel Mack , Haojian Zhuang , Robert Jarzmik , "linux-arm-kernel@lists.infradead.org" , "linux-spi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 2/2] spi: pxa2xx: use a module softdep for dw_dmac Thread-Topic: [PATCH 2/2] spi: pxa2xx: use a module softdep for dw_dmac Thread-Index: AQHU75yQbkDNn+rZPkCFgi0S9cPL1qY1OMwAgAAnBxA= Date: Wed, 10 Apr 2019 14:05:38 +0000 Message-ID: <6eeaf42f4d3f42c58546c429194213b8@asem.it> References: <1554900696-28858-1-git-send-email-f.suligoi@asem.it> <1554900696-28858-2-git-send-email-f.suligoi@asem.it> <20190410125612.GR6106@sirena.org.uk> In-Reply-To: <20190410125612.GR6106@sirena.org.uk> Accept-Language: it-IT, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.17.208] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-SGHeloLookup-Result: pass smtp.helo=webmail.asem.it (ip=172.16.16.44) X-SGSPF-Result: none (smtp.asem.it) X-SGOP-RefID: str=0001.0A0B0204.5CADF833.004A,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 (_st=1 _vt=0 _iwf=0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, > On Wed, Apr 10, 2019 at 02:51:36PM +0200, Flavio Suligoi wrote: > > With dw_dmac, sometimes the request of a DMA channel fails because > > the DMA driver is not ready, so an explicit dependency request > > is necessary. > > While this isn't going to hurt anything and might actually help so it's > fine doesn't this also suggest that there's an issue with deferred probe > going on as well? I think that the problem could be related to how the DMA channel is requested. At the moment the function used are: pxa2xx_spi_dma_setup --> dma_request_slave_channel_compat --> --> __dma_request_slave_channel_compat --> dma_request_slave_channel --> --> dma_request_chan Actually the final function "dma_request_chan" return the channel number or "-EPROBE_DEFER" if it's not ready. But this information ("-EPROBE_DEFER") is lost in the penultimate function "dma_request_slave_channel", which return only the chann, if all is ok, or NULL, in case of errors. So the deferral mechanism is not used. Flavio