Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7012588ybi; Thu, 13 Jun 2019 08:08:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/6F1AXxYHcjmMVz5tRJUy8A86IUlvIUJDg0qHghLoLu2QEnKrS6JSuiY4fdsuNxwKQVn0 X-Received: by 2002:a63:50a:: with SMTP id 10mr31868615pgf.213.1560438516395; Thu, 13 Jun 2019 08:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560438516; cv=none; d=google.com; s=arc-20160816; b=VxmXDTqhTFZJ8ZYxq6CvSBwXTWn8p5YrT6XD3yHQqtDHqmMcZP+0cRNP0OHnVypCMH lLaFm7zK5ffOVwhHmO1ouVW8u47guGjteZBd8076ZHyN4PS2JYdp+FBXQ/sdyCYcO0l5 mCPsmgJBuevLmHg5GecwxyFjgyQwaDlQL9/825Q2a/frP9ZrTBuae/Asbsxn22aR+s2B XTkMBalKQa38/vlgIQ9eVd+KEEH3yzW0CnPKjsGmQTcWN+U61yfdyKtwja3j6zZle/2G qc6EZP5upC9ImdZxQ+BmVWNB0yJM5It98Jz6OC6MHBbmYd+MdRZOFaligmn4QnodRiU+ lfRQ== 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:dkim-signature; bh=rQrX9RQyjPhk1o29x2UDUTYAagaN4qmvAjJXwwIPIX0=; b=CV0goAQXdFp+Z8DgywOu2zUxwTJclsUZns2A+4suSu0KYGcOj/wrP0luxtsYDqf+jC HmDblAUUVfUJW2ICXZYKrDN0UYLTexNLoEq1+RubIJMqhZrho002QOxaxqq7/EJ/gAmS scYHYU9fIJCK9zvSEB8XD5XlChQVTiwQoDOEsJLr0mjA4nyOKU0TS1GwgVki2v2Ia8w9 rBpMDc7Ss32I9lvcZQhVpmb9nn+GTZB2ya2ZY66tot8MeT5mH245oeUrK6yJ0WwT6URI vd7b8rvhWzZSiWFr8ivvAe3UF+RCDWrk677/+1UNJCwyRWCQUOHSyZDciIxbWkhqqRpE KDNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=NgBmX7rk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si3280920pls.52.2019.06.13.08.08.21; Thu, 13 Jun 2019 08:08:36 -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=pass header.i=@nxp.com header.s=selector2 header.b=NgBmX7rk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732892AbfFMPHp (ORCPT + 99 others); Thu, 13 Jun 2019 11:07:45 -0400 Received: from mail-eopbgr130084.outbound.protection.outlook.com ([40.107.13.84]:54190 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732389AbfFMOBP (ORCPT ); Thu, 13 Jun 2019 10:01:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rQrX9RQyjPhk1o29x2UDUTYAagaN4qmvAjJXwwIPIX0=; b=NgBmX7rklLaS9C5GmJvNgxC84YDLidtg89akzdeBC8mquljAu3ZQYw49ogVKoxIR+XgchR68/d6dP3TqAf96yUCogQAZ1V5oI9g7zPZM/GvSE1utDF82qv6bF8PgkJrwHJQ2Zn8OJAKctpj+uaKXQVCxzbHoyLIs5yc2Qif1nF0= Received: from VE1PR04MB6687.eurprd04.prod.outlook.com (20.179.235.152) by VE1PR04MB6669.eurprd04.prod.outlook.com (20.179.235.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Thu, 13 Jun 2019 14:01:11 +0000 Received: from VE1PR04MB6687.eurprd04.prod.outlook.com ([fe80::9e6:e136:4c09:fe67]) by VE1PR04MB6687.eurprd04.prod.outlook.com ([fe80::9e6:e136:4c09:fe67%5]) with mapi id 15.20.1987.010; Thu, 13 Jun 2019 14:01:11 +0000 From: Leo Li To: Shawn Guo CC: Madalin-cristian Bucur , Rob Herring , Aisheng Dong , Vinod Koul , Grant Likely , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , lkml , "wsa@the-dreams.de" Subject: RE: [PATCH] arm64: defconfig: Enable FSL_EDMA driver Thread-Topic: [PATCH] arm64: defconfig: Enable FSL_EDMA driver Thread-Index: AQHU+TmPiTydrhJTUUimRYhw3zmrnqZjx/sAgDVIQzeAANP4cA== Date: Thu, 13 Jun 2019 14:01:11 +0000 Message-ID: References: <20190422183056.16375-1-leoyang.li@nxp.com> <20190510030525.GC15856@dragon> <20190613004508.GA20747@dragon> In-Reply-To: <20190613004508.GA20747@dragon> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=leoyang.li@nxp.com; x-originating-ip: [136.49.234.194] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ecd90782-3b59-435e-e0fd-08d6f007974c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:VE1PR04MB6669; x-ms-traffictypediagnostic: VE1PR04MB6669: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0067A8BA2A x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(396003)(136003)(366004)(39860400002)(13464003)(189003)(199004)(53546011)(6116002)(6436002)(14454004)(76176011)(4326008)(33656002)(3846002)(186003)(99286004)(54906003)(86362001)(446003)(6916009)(5660300002)(14444005)(55016002)(7696005)(26005)(6506007)(25786009)(478600001)(68736007)(2906002)(9686003)(81166006)(316002)(8676002)(8936002)(81156014)(102836004)(256004)(305945005)(476003)(66946007)(486006)(76116006)(66066001)(74316002)(66446008)(66556008)(7736002)(66476007)(73956011)(64756008)(53936002)(11346002)(71190400001)(6246003)(71200400001)(229853002)(52536014);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6669;H:VE1PR04MB6687.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: MfiHyzi+qwPVOxsMoUe62v3cF6DTpeosiu0nQmwChEg0mruGhIMDGAwjYhhndKLAjRjH8x8k+p3lZ0DrpFXXI0l5q4+k1NCl/g9QxaTbSI2hkIQoW9ECVTk4eHnbLLfhZJ4eoG3WI1EtTlbj+DgMXgT5RxJixE0yVAw4EGQtrwY3MiYHCLJy/V1rXJr2b6ifMMDw9U9Q/XlIYGEoz58D81djzzZ2PAxTxiKTh+cNQ8gUnzf09f/qlj6ivwOzAkdVFZ3uJ4HZtpcgr38Kfj+m31+B00nepl32jYFIX4z/rln2bMSbKmA/I93XRBk/oR9pRlSWIHASN8QcmHGCcF21G8mj5gSNzohqpje4daNKrP5MsIFqm3n+yRSSNakbcVWOzitDU8hkGvYvxbIKY4N4t12rCbBKuJ+BsKap3LLBTx8= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecd90782-3b59-435e-e0fd-08d6f007974c X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jun 2019 14:01:11.1979 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: leoyang.li@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6669 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Shawn Guo > Sent: Wednesday, June 12, 2019 7:45 PM > To: Leo Li > Cc: Madalin-cristian Bucur ; Rob Herring > ; Aisheng Dong ; Vinod Koul > ; Grant Likely ; moderated > list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE kernel@lists.infradead.org>; lkml > Subject: Re: [PATCH] arm64: defconfig: Enable FSL_EDMA driver >=20 > On Wed, Jun 12, 2019 at 03:01:29PM -0500, Li Yang wrote: > > On Thu, May 9, 2019 at 10:15 PM Shawn Guo > wrote: > > > > > > On Mon, Apr 22, 2019 at 01:30:56PM -0500, Li Yang wrote: > > > > Enables the FSL EDMA driver by default. This also works around an > > > > issue that imx-i2c driver keeps deferring the probe because of the > > > > DMA is not ready. And currently the DMA engine framework can not > > > > correctly tell if the DMA channels will truly become available > > > > later (it will never be available if the DMA driver is not enabled)= . > > > > > > > > This will cause indefinite messages like below: > > > > [ 3.335829] imx-i2c 2180000.i2c: can't get pinctrl, bus recovery= not > supported > > > > [ 3.344455] ina2xx 0-0040: power monitor ina220 (Rshunt =3D 1000 > uOhm) > > > > [ 3.350917] lm90 0-004c: 0-004c supply vcc not found, using dumm= y > regulator > > > > [ 3.362089] imx-i2c 2180000.i2c: can't get pinctrl, bus recovery= not > supported > > > > [ 3.370741] ina2xx 0-0040: power monitor ina220 (Rshunt =3D 1000 > uOhm) > > > > [ 3.377205] lm90 0-004c: 0-004c supply vcc not found, using dumm= y > regulator > > > > [ 3.388455] imx-i2c 2180000.i2c: can't get pinctrl, bus recovery= not > supported > > > > ..... > > > > > > > > Signed-off-by: Li Yang > > > > > > Applied, thanks. > > > > Hi Shawn, > > > > Is it possible to move this patch to the -fix series so that it can > > reach the mainline earlier? It is having a boot failure in mainline > > for platforms using this device without this workaround. >=20 > Why would I2C device deferring cause boot failure on a platform? I'm jus= t > trying to understand severity of the problem. Currently the probe of imx-i2c will be retried immediately after it is defe= rred when the optional dependency on DMA driver is not met. This will caus= e an indefinite loop of probe-defer-probe and keep printing the message as = shown in the commit message. On a further look into the imx-i2c driver, it looks like the driver need so= me fix too. The requesting of dma channel is done at the very late stage o= f the imx-i2c probe after registering the i2c adapter. Adding the i2c adap= ter triggers the probe of the i2c bus which probably immediately triggers t= he retry of deferred probe. This was fine previously as requesting dma cha= nnel didn't trigger a defer. But now it triggers defer after commit e1ab9a= 468e3b1636d60cebd0a778461270dde208. We probably should move the i2c_imx_dm= a_request() to the beginning of the probe as it is considered as a dependen= cy now. Regards, Leo