Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5035992yba; Wed, 10 Apr 2019 09:57:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaHYDEteROU/re/vBy/gnOJwAP2nvosttU0sIA0IVRh4G3wtLcii7rV7hhNTiz4l6ddw8x X-Received: by 2002:a17:902:a607:: with SMTP id u7mr45587708plq.66.1554915426347; Wed, 10 Apr 2019 09:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554915426; cv=none; d=google.com; s=arc-20160816; b=SSOCCVIeg7QXDK62NzIUDl1BIW140gElxhq6DE7fibF4xjIRZHcFLQy85pZWltRGA0 7SsO+hrceiJdcw/U04Mi/09RGpkloan1KGsLxQrkTy1kjRe9dzWosc+DjEMuSumLkw+T AhVtCksHajd1nVWral8XGlYNyc5cbNMfV7SGxST90SYXAKhVSdhWyxLZNgTjMVSQ9Nth ROGW1hSSbg/CqD05RAkV56EMYA1M2cJE+1Xq6LD0Tjhq4Bhx0kIiWYOHc03V4GFAiQI7 C2DinSJ0ley5ZZgU+VS2dZuZHVWfsYf8DQc/n5HA4dHW9/fhdugczF2WCG8lvYljimk7 mEyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1H3AikjRLKMjOzjKrOkFEgAgAKiYZ3fFdjiJpid7JNs=; b=ipEEjRgYhULqs8DCzGB7J6Pi5wpGGD4mTuaHC6ITEGeh+d2updiJqa433dTObv0uvL wVrBX9eAHicDgilsg+kqyx30/MsZ2R6yCECnX/lcuRmYvbKnlmJ59aylMb0dlyIsrcgc 8smQ8gP102J9AhG+BZJkamd4ex1vur79sfweqSVjV7B+0tqrr3VQ8AIpblVw9OkunIwi qI4bAV2L4r+nO0bSrBxAfmv20JryRmPdmPPYoOBiTHN/lVKPs7WOHfgS3Y/d7mcR5OkH 9iZerwEtKr/yRxuhMjjcdhWPTXUponMjzZWu7CtVz1mmVyGOV/Dqtk2m86+kkIXUFv3p WL7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Jsuze32T; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si31636530pff.61.2019.04.10.09.56.49; Wed, 10 Apr 2019 09:57:06 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Jsuze32T; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728940AbfDJP2a (ORCPT + 99 others); Wed, 10 Apr 2019 11:28:30 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:53052 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726864AbfDJP2a (ORCPT ); Wed, 10 Apr 2019 11:28:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=1H3AikjRLKMjOzjKrOkFEgAgAKiYZ3fFdjiJpid7JNs=; b=Jsuze32TwYqVFXbNSI8Snlcud xTKjCmn6pDDN4QetLB7PSxHVWfxmVAOyMhx2FAssRahuozpx4fr8MkpRisseeKxGpzdgr8vBBSpHF qS9Knlgfpb8yCqKYgODTxuzNNLI3DKQJC6p7dbyi3NRr93TEh7eCeGQGmrXRAph48tSv0=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1hEF9B-0001K8-TO; Wed, 10 Apr 2019 15:28:21 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 0171D1128ED3; Wed, 10 Apr 2019 16:28:20 +0100 (BST) Date: Wed, 10 Apr 2019 16:28:20 +0100 From: Mark Brown To: Flavio Suligoi 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 Message-ID: <20190410152820.GT6106@sirena.org.uk> 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> <6eeaf42f4d3f42c58546c429194213b8@asem.it> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wiiWofWi8Et/oezL" Content-Disposition: inline In-Reply-To: <6eeaf42f4d3f42c58546c429194213b8@asem.it> X-Cookie: teamwork, n.: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --wiiWofWi8Et/oezL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 10, 2019 at 02:05:38PM +0000, Flavio Suligoi wrote: > Hi Mark, > > 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 reque= sted. > 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 functio= n=20 > "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. Right, yes - that analysis seems correct. The interfaces seem a bit weird here but fixing them looks like the most complete and robust fix. --wiiWofWi8Et/oezL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlyuC5QACgkQJNaLcl1U h9AzTQf/R/KL3VH0zEc0hVwvrBj1cDrGwBjBmXW9R97WwaXIq1RcLAJp9jazopLd siILLz9Fl/KtflQ3YgkgdyizttANuiXYEf0PSWMzeTkUXlaIcIrKYjrMPZtpvCZi crpQq730PNf3sbtH+AqNQl1Dgo2LO82hsNekA4irONWIKNRP6EUyccd5BtcbUdp3 AQUEAd1EDYeOKFI8EHbY4GBHu9hN53Bak1CBmd5y3LsA9P5jfA7dsFkGILTTesII DqA0NiLQEcKppgE/IRaK+DmlWXnAk+KKVQOho+QWcQz/PvyrEg62r8c7GsRo2dFe C8YNkpxNhOcXxCPou5xpMwPjQNF46g== =TuEH -----END PGP SIGNATURE----- --wiiWofWi8Et/oezL--