Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3511085yba; Mon, 29 Apr 2019 03:48:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1WycUmqMPAy85MaOHcV18NTwMcKAnNP2vpXVjE3g8ef4fnczckb6Ypd6sq8WXbrOjP1d2 X-Received: by 2002:a17:902:34d:: with SMTP id 71mr11862911pld.140.1556534929423; Mon, 29 Apr 2019 03:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556534929; cv=none; d=google.com; s=arc-20160816; b=kzegMh9LGDjGd128Rg7fpIurzDrPtiwq4udHtZfZNmtP9E4CDH0PvKJ7SlGI1TVBQe Pj2ITueNRIs0d/LYfSLckF+eMUNlg7pkBskZ0ohkkJcOuz+PCko8sVn/PDkzH75nJzxj cvBPAIDxWSmXkJNZbZolojVtz6DfCe8/1O/ggGjS73duV6b9tnC4QEZQNCLSuLUDV5+1 qZ5ucpMTO0fxWLnNbC72LCpdnKubb1VLymOmA8eVoVmkkiaDxu8PQHY1BhvzkTUqQlX6 mxvbVFgmxr52SeoY529UfWhqFzpv4LGG0Mk69OYO8NLCA73tFmTkY+D0oXpjuWBCaWNC q8ag== 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:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=fQbO31yfxFT6lL6rn+MZuC6A6ieOqWs394MSxg3bnuI=; b=WeGD5PhV2F6o7DwgKoA5n91BjykS7ZXyYqserHdP5Y92baHpXowdMHpewouymXkBH/ N1UFyI4ZRXAGCNk3BNTzNZSHrJnenXxG5Ysrm9XJdGvE2WnqHb94IIpTUU5vmHHS1u28 tBz1cAujMQYzk+dCOaJrwZobeTI2c+GrTkmwuu1M/c+Z8uAHoKbXgFjh+yUe4jSW1f8c 08nkE+WFPVcptzqUmY8Wf/0wICac9Yn8oQMnHi7ldsP0KopJ852QzNtHBMlMR6ppJHmr ukYZn/dbBCCe5g8xXG5g3PgSpnm8kGZSGtO18yPTXFeF/FlWHgYEDqcs28bHk3xFOom/ GXnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=TL6z7dsA; 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 1si33706183plk.14.2019.04.29.03.48.34; Mon, 29 Apr 2019 03:48:49 -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=selector1 header.b=TL6z7dsA; 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 S1727969AbfD2KqI (ORCPT + 99 others); Mon, 29 Apr 2019 06:46:08 -0400 Received: from mail-eopbgr40062.outbound.protection.outlook.com ([40.107.4.62]:15148 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727841AbfD2KqH (ORCPT ); Mon, 29 Apr 2019 06:46:07 -0400 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=fQbO31yfxFT6lL6rn+MZuC6A6ieOqWs394MSxg3bnuI=; b=TL6z7dsAkr6xPY7KCTSQKRHD41cuEjo8DEYnQSvdwYLr6U7sMkSl7MWEGt2TI61lqY4GL+n4jXfD6zZy6vF1A6SapIYjSPSEBwnItkIJtiXUJt8mchguGMjvQwkmdHt/YNe3DxKrQpgbgnCup3F5cci/csN1EJon3/Feqvm4Cp8= Received: from VE1PR04MB6479.eurprd04.prod.outlook.com (20.179.233.80) by VE1PR04MB6621.eurprd04.prod.outlook.com (20.179.235.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.12; Mon, 29 Apr 2019 10:46:03 +0000 Received: from VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::6c03:86ad:729d:e311]) by VE1PR04MB6479.eurprd04.prod.outlook.com ([fe80::6c03:86ad:729d:e311%7]) with mapi id 15.20.1835.016; Mon, 29 Apr 2019 10:46:03 +0000 From: "S.j. Wang" To: "brian.austin@cirrus.com" , "Paul.Handrigan@cirrus.com" , "lgirdwood@gmail.com" , "broonie@kernel.org" , "perex@perex.cz" , "tiwai@suse.com" , "alsa-devel@alsa-project.org" CC: "linux-kernel@vger.kernel.org" Subject: [PATCH] ASoC: cs42xx8: Add reset gpio handling Thread-Topic: [PATCH] ASoC: cs42xx8: Add reset gpio handling Thread-Index: AQHU/ni9Rn+K8AXUn0yC+rdeNT8NqA== Date: Mon, 29 Apr 2019 10:46:03 +0000 Message-ID: <1556534756-15630-1-git-send-email-shengjiu.wang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 1.9.1 x-clientproxiedby: HK0PR04CA0013.apcprd04.prod.outlook.com (2603:1096:203:36::25) To VE1PR04MB6479.eurprd04.prod.outlook.com (2603:10a6:803:11e::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=shengjiu.wang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f65234e8-3136-46d3-df82-08d6cc8fe00a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:VE1PR04MB6621; x-ms-traffictypediagnostic: VE1PR04MB6621: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1122; x-forefront-prvs: 0022134A87 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(396003)(39860400002)(376002)(136003)(346002)(189003)(199004)(478600001)(6486002)(2906002)(97736004)(68736007)(8676002)(66066001)(50226002)(6116002)(2501003)(14454004)(3846002)(5660300002)(6436002)(81166006)(81156014)(7736002)(486006)(71190400001)(305945005)(25786009)(71200400001)(2616005)(476003)(8936002)(110136005)(52116002)(66446008)(66476007)(66556008)(64756008)(66946007)(6512007)(186003)(256004)(4326008)(53936002)(2201001)(99286004)(36756003)(86362001)(316002)(26005)(6506007)(386003)(14444005)(102836004)(73956011);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR04MB6621;H:VE1PR04MB6479.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: FSmBACjEB58XPR7Uh7JawEkzoEE/LOyzusGcHH1N2GEgNEfE4ppokRgBhZgdIaEOSbgQhbusRXmViiztyrt5J1F3ccHAe1I40tWcx1YrCJGIKA1Ee44fCR6Gq28ypcTWs2u7uCxL9NcBUcuTfLN7RsGW9BoFP7oCsy9Pz1CGm/y+IyHloZsyGaX3GpXWAAakRlFTZtwJPV4A1Pxu3mqlv1hNbYfrFM6nWHUvStSotfydLUcJZGFG9fX0ShPg2CsgHzDRLA+XlG0F4duMA10yLZkTJ7zeSe43P8E5qB2IkT8Oe0zLqQ7AN2x2qHfWK8ZG0/b2kIJ6DsJIeOfv+sgijWCZCMODzS3QVjDw84vizX0gClcou5OvQBTmS5FWPdLVkft/9x5y+HEfoXWeZKIrTEqDFQvcqLfdk7MJLeAKOUo= 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: f65234e8-3136-46d3-df82-08d6cc8fe00a X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Apr 2019 10:46:03.5215 (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-Transport-CrossTenantHeadersStamped: VE1PR04MB6621 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGFuZGxlIHRoZSByZXNldCBHUElPIGFuZCByZXNldCB0aGUgZGV2aWNlIGluDQpwbV9ydW50aW1l X3Jlc3VtZQ0KDQpTaWduZWQtb2ZmLWJ5OiBTaGVuZ2ppdSBXYW5nIDxzaGVuZ2ppdS53YW5nQG54 cC5jb20+DQotLS0NCiBzb3VuZC9zb2MvY29kZWNzL2NzNDJ4eDguYyB8IDE5ICsrKysrKysrKysr KysrKysrKysNCiAxIGZpbGUgY2hhbmdlZCwgMTkgaW5zZXJ0aW9ucygrKQ0KDQpkaWZmIC0tZ2l0 IGEvc291bmQvc29jL2NvZGVjcy9jczQyeHg4LmMgYi9zb3VuZC9zb2MvY29kZWNzL2NzNDJ4eDgu Yw0KaW5kZXggZWJiOWUwY2Y4MzY0Li5mYzI4ZTZkMjZjNmQgMTAwNjQ0DQotLS0gYS9zb3VuZC9z b2MvY29kZWNzL2NzNDJ4eDguYw0KKysrIGIvc291bmQvc29jL2NvZGVjcy9jczQyeHg4LmMNCkBA IC0xNCw2ICsxNCw3IEBADQogI2luY2x1ZGUgPGxpbnV4L2RlbGF5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