Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4169032imu; Mon, 24 Dec 2018 18:02:55 -0800 (PST) X-Google-Smtp-Source: ALg8bN4oAAEzLxUfcSJd/qRpd2v419TS3c1oV+l4NjtBFWmptQnHVO67QDARI+ro8QALcna7IqwY X-Received: by 2002:a62:3603:: with SMTP id d3mr15584138pfa.146.1545703374913; Mon, 24 Dec 2018 18:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545703374; cv=none; d=google.com; s=arc-20160816; b=GH0+M1wrFK4nWZduutyX9vJ4HFRnt3GY3e8YuPtEVYq/Zchd5dkbIfSVhKAeZxMj8K 4gwHLGUMzJm8ozy5RTEjTMKpm6owxLhykoPoiZIi6Z/P8pz4yGuO5eq5gEellS1W2wBa nIyl5/yX38TU58PXoV0F4qSuujRUG5n+ngQGnW8wxuMN3E18gKi0QCXZjC+fTP1DUoHh vTS0nthnx44pUsSXRmNoY3ZLMq1ppT0ThG1PcWQL6j4YDNc2k7/JEB3gSlUBPuLxOtTa OtM/qatXwEh9Iy3bIwl2VicGzIe9AIxMaYlKVfBmVw2g+CoFxOrAuQokd92sWuKgPzzC Y8eA== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=zE2/9nvHqoqGZ5KQLE5uW+EJrjUwTjFW5v3q6DDb0rk=; b=CAoiQFN/V3UoZtGZf8AFthSzE0yfKpn3cSbtliupjbIDE+BX98qmflM2ezCkD4llZU RZpxBYB8Heqtur1OaPl/BYVn4JhhzXneJDN18ab/DDF2sl3bykMp/H9CUu/uxUEAPR4M cYHOEHROk+bcH12E2/fgzQLE3N7wQ8Zi9XSFyprCwBvGE1CoAWH6g/uRzhmhoRKEJZOq ZlPu28TpEH9SUaT4AybNPKHZntzX7/dRnuumFv32AWGQqX0atgzKSkGF4SoPsVWL6q/H VYXJPA+FV3tAJRM1l7qag4GDe+1Kb+Utz1fWW6He6YXyzFogNb078PkYNphnPDmDk3RK +YFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=g1SJKFPs; 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 m75si28921318pga.432.2018.12.24.18.02.39; Mon, 24 Dec 2018 18:02:54 -0800 (PST) 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=selector1 header.b=g1SJKFPs; 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 S1725839AbeLYCBu (ORCPT + 99 others); Mon, 24 Dec 2018 21:01:50 -0500 Received: from mail-eopbgr60046.outbound.protection.outlook.com ([40.107.6.46]:32096 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725788AbeLYCBu (ORCPT ); Mon, 24 Dec 2018 21:01:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zE2/9nvHqoqGZ5KQLE5uW+EJrjUwTjFW5v3q6DDb0rk=; b=g1SJKFPs0lCdKSo0rbxn83o7bIbb1W23++BhZAOwnYYkpprnrbjT3QPr5I0Vm/zegspHdBmY1W/gYTASkIaxwBI/8JBABIKplD/OS4joBh735Ls4ixTqgy3s8q3gbkPh9MQE/kFfilt3JKZJWbRTrT371WXrnFsKlenDVizhc0U= Received: from VI1PR04MB3247.eurprd04.prod.outlook.com (10.170.232.160) by VI1PR04MB5039.eurprd04.prod.outlook.com (20.177.50.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1446.19; Tue, 25 Dec 2018 01:58:48 +0000 Received: from VI1PR04MB3247.eurprd04.prod.outlook.com ([fe80::54b7:be4f:39b6:2b7c]) by VI1PR04MB3247.eurprd04.prod.outlook.com ([fe80::54b7:be4f:39b6:2b7c%6]) with mapi id 15.20.1446.027; Tue, 25 Dec 2018 01:58:47 +0000 From: Qiang Zhao To: "wang.yi59@zte.com.cn" CC: "zhong.weidong@zte.com.cn" , lkml , "julia.lawall@lip6.fr" , linuxppc-dev , "wen.yang99@zte.com.cn" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Leo Li Subject: RE: [PATCH] soc/fsl/qe: fix err handling of ucc_of_parse_tdm Thread-Topic: [PATCH] soc/fsl/qe: fix err handling of ucc_of_parse_tdm Thread-Index: AQHUgi9k5H27xmdca0WbW0aTsrjmYKVwqIOAgB48SsA= Date: Tue, 25 Dec 2018 01:58:47 +0000 Message-ID: References: <1542869385-48337-1-git-send-email-wang.yi59@zte.com.cn> In-Reply-To: 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=qiang.zhao@nxp.com; x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB5039;6:APB4Kx7PC4IoUBMLELYlTzgkGPkKp+z8N3tLfammH6i0ITGilSGunxnYzTrbZZLQXjq2wQVvLFfrLp0iuvJFKuADoqTCoTD3JV1v7x5uSUrP5v2jo5JxJsxNgJADSnl3OHhZGyVaV85tHGZz+GlkKM2gAlEtcXRKS55zxqrN5NyxMndh2HRdYvUgFAA5movf3l2DRNb+DfUj7qVQbGrLBUs+Ep/WTv6LAywH9QAENo9sQQZvonUim1LrcpY6PvHxgsueHZ6xr3ovr0Lc9/V7D/G6ECqm8OPaqMW6Ipwg8Ze80Lerwmh+8SBLg/ejM4FJgFcL22iDsYHj41RM1aEs5anNKXk4gCWKu637nGthJqYVPSZKrqHsMLG4dbEMiJF7eKEurDucHrvJ33wqp1dMzWenKLx3Awav7vqiE/zguhFFT2qYX0pvoLv5VdPFBrp6YfVaVa8RVi9pd5q2D1mhVg==;5:IxUhO3exQ9eSkG1Riuv5tRtJbrFxE7YT/kMa6wPE68qYp5+o3NwQjwrxjAJ53DFhcc9VAjRa8eMeHe2BZFBgb66I9GISvDPdP9rhN75QnIXA53gTTaD61knLWRCt4BeIBqC7uwtm5Oge8sfTKpd510TrIc890YHtmWOX2rVN/G0=;7:Bnb1PRYbzw4s/rZnYXguVqJXUdKhbhhRWg7viG6/zwAcBGx/iHvWpNZfNztRhscsxuusUQy455t1i1ZrLjtmYFS3HTJjPLVlf3kmavcw9Xfm0OS2j/iiWeEu1VQsTNh/4QSqjvXJnk87D1KeP05HdA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 1c022390-b1d4-4bc7-0fcc-08d66a0c8256 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB5039; x-ms-traffictypediagnostic: VI1PR04MB5039: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(2401047)(8121501046)(93006095)(93001095)(3231475)(944501520)(52105112)(10201501046)(3002001)(6055026)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB5039;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB5039; x-forefront-prvs: 08978A8F5C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(136003)(376002)(346002)(396003)(366004)(199004)(189003)(13464003)(54906003)(8936002)(2351001)(478600001)(6916009)(14454004)(26005)(33656002)(186003)(7696005)(76176011)(68736007)(102836004)(6506007)(316002)(53546011)(305945005)(25786009)(53936002)(99286004)(3846002)(6116002)(575784001)(86362001)(4326008)(7736002)(2906002)(6246003)(8676002)(81166006)(81156014)(55016002)(9686003)(6436002)(5640700003)(71200400001)(44832011)(71190400001)(106356001)(5660300001)(476003)(11346002)(229853002)(446003)(486006)(2501003)(66066001)(105586002)(74316002)(14444005)(97736004)(256004);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB5039;H:VI1PR04MB3247.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: KSoBtAuc9QcBjNi9lmqZNgiuma4JIs8gIPZhNji31R0oc7yid0GnxAkXhdUyOE/AXIsmbbE2Tlqfb0UutRLw052QAjxad9Fae6edqjUcbmfYvRM6Skau6v40G46azHjF3L/Zt72sSoUBYZ+dYA5FPKpWHhPMO3B7TonU/M3Mtrj2oSVAgksASEg6FdisLxJ8EcbYuxS6y5sUe4wtSEfr0C7YOjzi1agbJAg5mk3tu2PCh2RjfEgPfG79r/YfIR7OJZhaAWxVomLlHKfO3XVACVE5qfCnRM9b8BN6BSNubSUFKEC4rkl4W6+jaY16u/rL spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c022390-b1d4-4bc7-0fcc-08d66a0c8256 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Dec 2018 01:58:47.6672 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5039 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgV2VuLA0KDQpXaWxsIHlvdSBzZW5kIGFub3RoZXIgdmVyc2lvbiB0byByZXNvbHZlIHRoZSBp c3N1ZSBkZXNjcmliZWQgaW4gdGhlIGNvbW1lbnRzPw0KDQpCUg0KUWlhbmcNCg0KPiAtLS0tLU9y aWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBMaSBZYW5nIDxsZW95YW5nLmxpQG54cC5jb20+ DQo+IFNlbnQ6IDIwMTjlubQxMuaciDbml6UgNDoxMA0KPiBUbzogd2FuZy55aTU5QHp0ZS5jb20u Y24NCj4gQ2M6IFFpYW5nIFpoYW8gPHFpYW5nLnpoYW9AbnhwLmNvbT47IHpob25nLndlaWRvbmdA enRlLmNvbS5jbjsgbGttbA0KPiA8bGludXgta2VybmVsQHZnZXIua2VybmVsLm9yZz47IGp1bGlh Lmxhd2FsbEBsaXA2LmZyOyBsaW51eHBwYy1kZXYNCj4gPGxpbnV4cHBjLWRldkBsaXN0cy5vemxh YnMub3JnPjsgd2VuLnlhbmc5OUB6dGUuY29tLmNuOyBtb2RlcmF0ZWQNCj4gbGlzdDpBUk0vRlJF RVNDQUxFIElNWCAvIE1YQyBBUk0gQVJDSElURUNUVVJFDQo+IDxsaW51eC1hcm0ta2VybmVsQGxp c3RzLmluZnJhZGVhZC5vcmc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