From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=192.198.163.9 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796194587; b=z5FyrsAawfF+F/+DYxVj+XTwGOWjM8vlSF1JBRVsQIHy0LJ5B9rkz2sXV+TxWpGLpvz+ fs6A9S77Xv4ohyOVShMKhgpxH/JAAl/tXO16fjqgCy8GaWwakZTqkefNKFibZI/khoCyo MQR50juMcyV0WhI562WMYuCN22l/Xv/ZZ06nJecF9x+DXdicydQ2dL0G9M01PBGklxdlR JNAO9H4mEBo8oWcfpFImmhMxdPdZ7wNiX4GiTkYpg696chmPCHcOI0AkPDm5hwxUA4olV z8EvqbWTtmNpAWhMR5++BzWGpU9mWpEgV1ncn7Y7Sf1wR97b0++we1KIkixbNT+rXwA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796194587; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Received: Received:Received:Received:From:To:CC:Subject:Thread-Topic: Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language: Content-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator: x-ms-publictraffictype:x-ms-traffictypediagnostic: x-ms-office365-filtering-correlation-id:x-ms-exchange-senderadcheck: x-ms-exchange-antispam-relay:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata-chunkcount: x-ms-exchange-antispam-messagedata-0:Content-Type: Content-Transfer-Encoding:MIME-Version: X-Exchange-RoutingPolicyChecked:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; bh=lXMkQTGp/LnbanPipMS/4PyKsf6u526bKo3blFGLVBc=; b=gXizShXI7RkrLL8/0ycMRrPXxH8dPFbtT4cH7epMJaoVSkAxY1/A2eXTzLWdLndbtXPq 0bfXxMMZu906crLUtz9aaNawPwmzCSKYOD6M7ZoFQtsjb+4CNGfu5nUXB15kIOR6z2qEg p1a5eMOnL84oWXCO9lCSGaUPLeoo3FrgY0yy8NGEOBOBZ5WHtxOBIuBam27jmc+xTRYnW g1+mBmwvScDB5EkXLZJD2JCMiMKk8S43qWa7PYRAAoD2KKLCSqEaPioia1SonN7bg5k9z uoB4gEigR3jhNJLiaKTf5cQL44XHlmh/Rei/ubCoQvs2bwQu7sugqo+vcN5VK7HdRlA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=VdgRmh9B; arc=pass header.oldest-pass=0 smtp.remote-ip=192.198.163.9 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A397E606A31A; Wed, 2 Dec 2026 06:56:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A397E606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=VdgRmh9B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796194586; x=1827730586; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=lXMkQTGp/LnbanPipMS/4PyKsf6u526bKo3blFGLVBc=; b=VdgRmh9BXa0RsPRZAHShFuLJbwGltgzrPgTsVHuMse83zHuFHcDpjFUT SK7TAq3qZG5dZDmfKnjjiR/w7yioVyxyjMHUsqCsQNUyNhWERzdcWlnQJ Vp989J8giyaFQSraUaw4Aa/aJPG12Cxl7syermJy+3yY5LLgDZJn08WlU QZrJYN5QWm9YZ5Spd9cZpdDiqxIhBJUhHnId7HFhssnq3etTWWzluuFmo aQ6ZxBEXuyOT5Neetzix7orFgcjjKuQ17xuNnYKNMNK0oLUNef0uliKpT TqPcnK9b9+gdSgTFdMb/0lQbX4BzmCNJKNcGEAHHaUeRES2lwEGlQZjZ2 w==; X-CSE-ConnectionGUID: jkPJwD0wRKOmhEpyJL8m1Q== X-CSE-MsgGUID: YMyA/SFdRq6owtUNHxYtEg== X-IronPort-AV: E=McAfee;i="6800,10657,11983"; a="4956666" X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="4956666" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 22:56:26 -0800 X-CSE-ConnectionGUID: x2Xrn5ZGTnSlkS4ZgNf0Jw== X-CSE-MsgGUID: kWNuSKqlQhuzm3i5lSasrg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="13550907" Received: from orsmsx903.amr.corp.intel.com ([10.22.229.25]) by fmviesa005.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 22:56:26 -0800 Received: from ORSMSX903.amr.corp.intel.com (10.22.229.25) by ORSMSX903.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Tue, 1 Dec 2026 22:56:25 -0800 Received: from ORSEDG903.ED.cps.intel.com (10.7.248.13) by ORSMSX903.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57 via Frontend Transport; Tue, 1 Dec 2026 22:56:25 -0800 Received: from CO1PR03CU002.outbound.protection.outlook.com (52.101.46.41) by edgegateway.intel.com (134.134.137.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Tue, 1 Dec 2026 22:56:25 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MHZSCUrx4k7FmKcC64XFvHETYPWHEBroIwnH4Q+baoIv2YvsQh4/sqfcap1FhaYzG7sUFyXVXF/ddPMdWC6e8R3kRb+IwRvPSXaRSL9c0cEjiZXUyQP6GV+hAMzqvhg1Z94GnYYMDbtT3THO1svdnYYa9Y3rxblrssz9imVPGnCzxwQkI8zg/Sv0SHRVqS7Ik05p6hACTz5iPnLwgbyejc872zMwrHq/Zj4gjECtvQUmqmsa4gNFZpSFga6bZoNzeqTG6cJ+W1ZDbo6HSpS2T4iQccJo3h3+anpi0RQ+tZf8EUbOOHMuxIsdmMz2NY/vvnppMRhk3Av9YUeszG/HvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lXMkQTGp/LnbanPipMS/4PyKsf6u526bKo3blFGLVBc=; b=VhsnVs7RJYSttRKN9iHFv4FKGtCi5ZH1/G1ikL/TVkzK2hJzeEVkizlDqD8EoLreRpkqABBUsv9UMYxIz/qVZGhr+iTK9D4L7GpJSSwdn+jVhKD7zuLstNbyakt/aUM9wD+PtZuikaf+iggvbX+9HBeMNru2nfoOe08Llf8z9REWG/z3mYEIg14U0Fg7AmQsVospCio2NkklkgBQjrzPhnzHEKYBYCAIaFbMzVXuB7FXVLMr5UlIB5N41JIVBDzXjFBRUq2usAtQc0fmaGdgIt43nN9J+QlKxzRgCL/JChsMkMwSvbiDbtdPvOiywe6oAuuJrwLGXHvbmm3jaluByw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SJ0PR11MB7704.namprd11.prod.outlook.com (2603:10b6:a03:4e7::5) by PH7PR11MB8121.namprd11.prod.outlook.com (2603:10b6:510:234::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.13; Wed, 2 Dec 2026 06:56:22 +0000 Received: from SJ0PR11MB7704.namprd11.prod.outlook.com ([fe80::a8b5:7722:c11b:63c5]) by SJ0PR11MB7704.namprd11.prod.outlook.com ([fe80::a8b5:7722:c11b:63c5%6]) with mapi id 15.21.0688.009; Wed, 2 Dec 2026 06:56:22 +0000 From: "Xu, Even" To: Emfox Zhou , "Sun, Xinpeng" , Jiri Kosina , Benjamin Tissoires CC: "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v10 2/6] HID: intel-thc-hid: intel-ipts: bring up the port Thread-Topic: [PATCH v10 2/6] HID: intel-thc-hid: intel-ipts: bring up the port Thread-Index: AQHdfodIadZZL7bXl0aVAFVvtXuClrdJTuZA Date: Wed, 2 Dec 2026 06:56:22 +0000 Message-ID: References: <011c212a1187be630f0106a059adc16ba7540fec.1795794049.git.emfox@debian.org> In-Reply-To: <011c212a1187be630f0106a059adc16ba7540fec.1795794049.git.emfox@debian.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR11MB7704:EE_|PH7PR11MB8121:EE_ x-ms-office365-filtering-correlation-id: 98796dc1-d83c-4abe-ba2c-08df50416002 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|366016|23010399003|376014|38070700021|10067099003|56012099006|261026140227099003|261022105027099003|261021123027099003|261026121527099003|261028144727099003|261022075727099003|261021121427099003|261102123227099003|261009221727099003|261009220027099003|261009223327099003|261009223027099003|22082099003|18002099003|11063799006|261009221227099003|4143699003|6133799003|3023799007; x-microsoft-antispam-message-info: ANk27RLAHJyvtayHLdCTfz74SJH8pcWeFN2P8zRjZT0wYprql5RvDz2G0/pfICPpVAVHkTw8/TPRmMF750tZyS5I4sU1+IJcoGOHSS+ORMX49o/x4L9mfr2Hwz2jM5kOBEB4KEq1cREqvh/4s6kHUz9tnJZeQ8UGrnO7dn8RX6yhV+bojhlG8OuV4Fkix5kAw9FT3udcVsq3kyCDJutSaUdfe7nAD6lIOwCyOMj5pvzXeP4ASNOdgDxtup5uqgrDWug9jw6wSE95KHgPwyfWTENtsCJ3kxsiCCdpe12dkIKnNprqOao1H4REG934AhHz64dxx+HpImgGyoSti6dxmRIl/Yk2IOPyYyfwDxH2oUBExVyNzwc5xT/w3qqLKCrQIQFChMEbMlPFT8yvHTTCV+MyJRpuBONUJiYq66Ec2e2Swt4EgAv5N+cr3EbTA50fGSiu4llGCXv0WspMaWy32utTb8N35xQCQaLEwacp7okDQGercpvZLjO4vDQYW4i24KsPcbyPQgWxVCCuQF9LpF+NmDa+AjkJ3whzw0mvHePvLQWiAbgLPCDsrt+vYcqOKbBRiIv54zOtJ/2fSVG9GNZG5cUGHYFzZOtryNI0+khw08rxIK1mBTXuWJFv4SdaLeBsmPdB1/skaOl+uZPaMF1rDmb/eJ6aCr++x1StAOqocS0kMCw90tB0FKxpwYNz/1x74tZUDLZaZlHglakLHnA87qmapdOT+PRjB93jgAg= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR11MB7704.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(23010399003)(376014)(38070700021)(10067099003)(56012099006)(261026140227099003)(261022105027099003)(261021123027099003)(261026121527099003)(261028144727099003)(261022075727099003)(261021121427099003)(261102123227099003)(261009221727099003)(261009220027099003)(261009223327099003)(261009223027099003)(22082099003)(18002099003)(11063799006)(261009221227099003)(4143699003)(6133799003)(3023799007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?zu2tMzzBWobryhMqN15pu9cP3y2m6V+KdVi/JOL3jDBaDh4jUDeHibJbYsXK?= =?us-ascii?Q?L3BdF5N3FQDz4yu+SU5Jb0G2W9IfbF+Risd2w6swFq+cvWsXuOSBTyZNqAW5?= =?us-ascii?Q?9z1nTAgyDN9RtMwgV3uYkxYzdrONCLZDeuQYAYiHA9o/r3R6gxYoAq1/01Vx?= =?us-ascii?Q?rPqIGyLfXG4cAnpSXGHITHApS1oO85KTk3y2gOACa8uXSx/33OQ8Qz98NNXy?= =?us-ascii?Q?pKMD665uBS5CKpGzKc4UHLmnTBk9AZ/TM7YCbz4oT72IXnYPrlSLUmOE28T0?= =?us-ascii?Q?ufX8ho1cVCi5B6SH0GXpEOo3SQyl/5JsMdy97zRFNSOrBAl2+vJlkD0jE4ky?= =?us-ascii?Q?6sFwxs/jS46MHXqVrPxu60ilagDKV3N6/1PVhkM724xLz/8VIgBIcHMRJ5h1?= =?us-ascii?Q?PiVMIC5KO0Lol/yFWIqBAUYkS1DtwMcT/zF24XTUpdJ0iYmz55ofmdg8TepX?= =?us-ascii?Q?CG+EcQMj6MpgKdjh17Ek9iuWEyzeZWFT4pR07VOy6D6Ys+20wCFZsSL+BJ9Q?= =?us-ascii?Q?2rxT9ZD6gsL91KGm4MWeiujnRAAGmWijwDKKiUZpWOV4VcLK/HZrgJlftLiG?= =?us-ascii?Q?jy+3nGaZ1VZ9g8ucGeg8n+ZxvOzWXlYXmYUw/JV9BVy0J+Y6rgIifxwG1jPX?= =?us-ascii?Q?pYtTX7twYOtmGF7He28gAlJjRm7zwP3bNzIlnbWjyKjfkzP+pq3VL2IWfDOq?= =?us-ascii?Q?JNJQ7KYR+MECE+/dPKP+/8Yf51hnEX8xrpp0vaUmkm3XLMzCPuOF4gFyTzpV?= =?us-ascii?Q?R36eP6BfiCzE3cg5/b+OdDQNz//LA9PjPVGE96w3fvljllLm6gZhDi1C0RC4?= =?us-ascii?Q?Psh43zISQVT+KeGJI+kMM/3mosU15z5qxGF9jApM90j3a7v7vDOmUzXMSMp2?= =?us-ascii?Q?y3zAoUfGdIvZXkFzRYB4BaWJ9BP8APzJRASgE2mj/3O2uGGnShxf1pyyA1NA?= =?us-ascii?Q?npICQ7MobjShPFXXee/yUbDBi1k9/8VMaLZeTeC4IYtN2WkKBJh/qt6Yi/ym?= =?us-ascii?Q?ai3zRLhnqtTDuPqRKNJD+1ouQTim/1BDPih7Miwhq60MRB6Qm2oUaIVRUOms?= =?us-ascii?Q?Vb7ZCUE6LIBLlnDvyVAyOmj2wFwDVyn6fKPV7vLp/a7WmGdYHcjO0G6CmoXp?= =?us-ascii?Q?cXs7BsOJWh8ZwtuV4b+AF8wb5eYeXFSHvMq7iPJp142nwSBZx3bSCzrQZD0m?= =?us-ascii?Q?rwMZzv7H0vTTKFwLokq5M4OzhLdDzJ1vAHhGQg3LZdBV54l7FBoGn5Rq5tci?= =?us-ascii?Q?c6VhW8jLStD+EbXs6IxzTZg/C2OpXy/5EfkQGsxRzvWTLv3SD96udSbZsJTW?= =?us-ascii?Q?OviII6wmbeSD5G1VvF/9sP0Mi/oW1FEjQNfs61yNdvwCF+Xro4QaW+CewwXt?= =?us-ascii?Q?w0U0NUEeO2ef04m2laqdCxxehjs1ocmWyg16Yit/cwTjDuBwhLvcIAX87i7q?= =?us-ascii?Q?3DUHk5R4tC3zPSNBqfWy4lpe0gi29vJ3kPxXBvBSKozwAht0H/Aqnh1yF/6m?= =?us-ascii?Q?frBhigaibm6QqSjZJPqVFxRh5U6EoGEBIlbU6MCFnUm/8hjIMI7ubyNhu4F6?= =?us-ascii?Q?HkxiqxASaZXnvD18xPY4n+cX65xxm9xLhxZ2BV1gvcqkfjD/eLhxBtdkzvyg?= =?us-ascii?Q?9RCbPOyeWWlrjPGoLUvMh2/kMBHZqi4Wg/uEAPPSk6P+Uv4uoyhkXKd8xR7h?= =?us-ascii?Q?tX+2cirlyO4abSClBoMQ4zvzpsZ+MXLi1D1xXPVEGjsXZb3u?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Exchange-RoutingPolicyChecked: P+jUQ2VJJNmIcaP1eTaWAN8O3UlAQXFCUJPCMSVkjTW/ZFy/Ys+JklVqztWsZaLbvbjC+ufMCLBseZ6d0/WopkyZAm7Z9dyvF1jM0ho2hj0JbkOfUVOlCc4XnUwah2SU7en8i/X4TNA6SzvWfQ8/sFjHjCNnRFAY8lWtSHnIAsliVL2TyRhYvuNP1comOAhoNwZ0VfyiLDQtVt2vUHrS8AOgd+j20VOl9JNWjYnPsm28iknVQq9fFurmAk314vJwEMEsqutWTl3tCG1mapdh1ToXZd7D/dyLb+07In96hpN8u1WAjbaFHJxOgWFsUmMmaITC4XRveQPvfME/D9XIEg== X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB7704.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98796dc1-d83c-4abe-ba2c-08df50416002 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Dec 2026 06:56:22.3411 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BjqttGvyQVd1JsEBdmQw5wVTvbmA55AFIE+yU9etGmopl/alaJaHYK4Sm+HresxO5JKms1ixYZkTrw5sqLIZcw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB8121 X-OriginatorOrg: intel.com > -----Original Message----- > From: Emfox Zhou > Sent: Friday, November 27, 2026 11:52 PM > To: Xu, Even ; Sun, Xinpeng ; J= iri > Kosina ; Benjamin Tissoires > Cc: linux-input@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [PATCH v10 2/6] HID: intel-thc-hid: intel-ipts: bring up the por= t >=20 > Ports on Tiger Lake, Lakefield, Alder Lake and Raptor Lake can run in IPT= S mode: > instead of HIDSPI the port drives the touch controller over plain SPI, an= d the > controller answers with a 64 byte configuration block at address zero tha= t carries > the vendor and product IDs, the buffer sizes and the SPI timing it expect= s. >=20 > Add a port driver that does that much: select the SPI port, release the c= ontroller > from reset, read the configuration block over the existing PIO path, appl= y the > timing the controller asked for and enable the touch engine. Removal puts= it back > into reset. >=20 > Three things are not obvious from the register names: >=20 > - The bulk data window is at 0x1000, not at zero, and has to be set > before the DMA engines run: they write there, and left unset they > write into the configuration block, where the controller drops the > frames without reporting an error. >=20 > - Quiescing gates the whole data path, not only the interrupt. The > port stays quiesced while the block is read and the timing applied, > and is released only once that is done. >=20 > - The edge detect bit belongs to the interrupt setup, but is set > here: the first configuration read is unreliable without it. >=20 > How far the bring-up got is recorded as one state rather than a flag per > step: the teardown has to undo exactly what completed, and a start that f= ails half > way leaves the port at the last step that did. The state moves forward on= ly while > the port starts and backward only while it stops, so the checks on both p= aths read > as the question they answer. >=20 > Meteor Lake and newer IDs are deliberately absent: those ports are alread= y > claimed by the HIDSPI driver. >=20 > Signed-off-by: Emfox Zhou > --- > drivers/hid/intel-thc-hid/Kconfig | 13 ++ > drivers/hid/intel-thc-hid/Makefile | 4 + > drivers/hid/intel-thc-hid/intel-ipts/ipts.c | 212 ++++++++++++++++++ > drivers/hid/intel-thc-hid/intel-ipts/ipts.h | 140 ++++++++++++ > .../hid/intel-thc-hid/intel-ipts/pci-ipts.c | 124 ++++++++++ > 5 files changed, 493 insertions(+) > create mode 100644 drivers/hid/intel-thc-hid/intel-ipts/ipts.c > create mode 100644 drivers/hid/intel-thc-hid/intel-ipts/ipts.h > create mode 100644 drivers/hid/intel-thc-hid/intel-ipts/pci-ipts.c >=20 > diff --git a/drivers/hid/intel-thc-hid/Kconfig b/drivers/hid/intel-thc-hi= d/Kconfig > index 9d74e53b8..40e3ce198 100644 > --- a/drivers/hid/intel-thc-hid/Kconfig > +++ b/drivers/hid/intel-thc-hid/Kconfig > @@ -40,4 +40,17 @@ config INTEL_QUICKI2C >=20 > Say Y/M here if you want to support Intel QuickI2C. If unsure, say N. >=20 > +config INTEL_IPTS > + tristate "Intel Touch Host Controller IPTS mode" > + depends on INTEL_THC_HID > + help > + Support for THC ports in IPTS mode. Instead of HIDSPI these ports > + drive the touch controller over plain SPI and carry its reports in a > + private framing. This driver brings such a port up and reads the > + controller's configuration block, which describes the report > + framing. > + > + Say Y/M here if you have an Intel touch controller that runs in IPTS > + mode. If unsure, say N. > + > endmenu > diff --git a/drivers/hid/intel-thc-hid/Makefile b/drivers/hid/intel-thc-h= id/Makefile > index f1182253b..049009592 100644 > --- a/drivers/hid/intel-thc-hid/Makefile > +++ b/drivers/hid/intel-thc-hid/Makefile > @@ -20,4 +20,8 @@ intel-quicki2c-objs +=3D intel-quicki2c/pci-quicki2c.o = intel- > quicki2c-objs +=3D intel-quicki2c/quicki2c-hid.o intel-quicki2c-objs += =3D intel- > quicki2c/quicki2c-protocol.o >=20 > +obj-$(CONFIG_INTEL_IPTS) +=3D intel-ipts.o intel-ipts-objs +=3D > +intel-ipts/pci-ipts.o intel-ipts-objs +=3D intel-ipts/ipts.o > + > ccflags-y +=3D -I $(src)/intel-thc > diff --git a/drivers/hid/intel-thc-hid/intel-ipts/ipts.c b/drivers/hid/in= tel-thc- > hid/intel-ipts/ipts.c > new file mode 100644 > index 000000000..c680b0926 > --- /dev/null > +++ b/drivers/hid/intel-thc-hid/intel-ipts/ipts.c > @@ -0,0 +1,212 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Transport for THC ports in IPTS mode: plain SPI with a private framin= g. > + */ > + > +#include > +#include > + > +#include "intel-thc-hw.h" > +#include "ipts.h" > + > +/* Bulk transfers have no address phase, so the SPI opcode is zero. */ > +#define THC_IPTS_SPI_OPCODE 0 > + > +/* Clock used until the controller has been read, the slowest known-good= one. > */ > +#define THC_IPTS_BOOT_SPI_HZ 7812500 > + > +/* Time the controller needs after reset before it answers on the bus. *= / > +#define THC_IPTS_BOOT_MS 100 > + > +static int thc_ipts_read_cfg(struct thc_ipts *idev) { > + int ret, try; > + > + for (try =3D 0; try < THC_IPTS_CFG_TRIES; try++) { > + u32 got =3D 0; > + > + memset(&idev->cfg, 0, sizeof(idev->cfg)); > + ret =3D thc_tic_pio_read(idev->thc, 0, THC_IPTS_CFG_SIZE, &got, > + (u32 *)&idev->cfg); > + if (!ret && got =3D=3D THC_IPTS_CFG_SIZE && > + le32_to_cpu(idev->cfg.device_id) =3D=3D THC_IPTS_TIC_ID) > + return 0; > + > + if (try + 1 < THC_IPTS_CFG_TRIES) > + msleep(THC_IPTS_CFG_RETRY_MS); > + } > + > + dev_err(idev->dev, > + "controller did not answer, last id 0x%08x, error %d\n", > + le32_to_cpu(idev->cfg.device_id), ret ?: -EIO); > + > + return ret ?: -EIO; > +} > + > +static int thc_ipts_spi_set(struct thc_ipts *idev, u32 hz, u32 mode) { > + int ret; > + > + /* No multi-packet transfers in this mode, so both sizes stay zero. */ > + ret =3D thc_spi_read_config(idev->thc, hz, mode, THC_IPTS_SPI_OPCODE, > 0); > + if (ret) > + return ret; > + > + return thc_spi_write_config(idev->thc, hz, mode, > THC_IPTS_SPI_OPCODE, > + 0, 0); > +} > + > +/* The core takes the fastest gear that is not above the request. */ > +static void thc_ipts_spi_from_cfg(struct thc_ipts *idev, u32 *hz, u32 > +*mode) { > + u32 cfg =3D le32_to_cpu(idev->cfg.spi_cfg); > + > + *hz =3D thc_spi_hz_from_div(THC_IPTS_SPI_CLKDIV(cfg), > + cfg & THC_IPTS_SPI_CLKDIV8); > + if (!*hz) { > + dev_warn_once(idev->dev, "controller asks for divisor 0\n"); > + *hz =3D THC_IPTS_SPI_MIN_HZ; > + } > + > + /* > + * THC_IPTS_SPI_MIN_HZ is the slowest gear the core has, so a lower > + * request would be refused: run at the floor and keep the port. > + */ > + if (*hz < THC_IPTS_SPI_MIN_HZ) { > + dev_warn_once(idev->dev, > + "controller asks for %u Hz, running at %u Hz\n", > + *hz, THC_IPTS_SPI_MIN_HZ); > + *hz =3D THC_IPTS_SPI_MIN_HZ; > + } THC already has above logic in thc_get_spi_freq_div_val() in intel-thc-dev.= c. So it's unnecessary to calculate frequency from div, just set frequency to = THC, thc_get_spi_freq_div_val() will handle > + > + if (cfg & THC_IPTS_SPI_QUAD) > + *mode =3D THC_QUAD_IO; > + else if (cfg & THC_IPTS_SPI_DUAL) > + *mode =3D THC_DUAL_IO; > + else > + *mode =3D THC_SINGLE_IO; > +} > + > +static int thc_ipts_touch_set(struct thc_ipts *idev, bool enable) { > + u32 touch =3D le32_to_cpu(idev->cfg.touch_cfg); > + > + touch &=3D ~(THC_IPTS_TOUCH_POWER_MASK | > THC_IPTS_TOUCH_ENABLE | > + THC_IPTS_TOUCH_HID_REPORT); > + touch |=3D THC_IPTS_TOUCH_POWER(enable ? > THC_IPTS_TOUCH_POWER_ON : 0); > + if (enable) > + touch |=3D THC_IPTS_TOUCH_ENABLE | > THC_IPTS_TOUCH_HID_REPORT; > + > + return thc_tic_pio_write(idev->thc, THC_IPTS_CFG_TOUCH, > sizeof(touch), > + &touch); > +} > + > +/** > + * thc_ipts_port_start - bring one port up > + * @idev: port to start > + */ > +int thc_ipts_port_start(struct thc_ipts *idev) { > + u32 hz, mode; > + bool supported; > + int ret; > + > + ret =3D thc_interrupt_quiesce(idev->thc, true); > + if (ret) > + return ret; > + > + ret =3D thc_port_select(idev->thc, THC_PORT_TYPE_SPI); > + if (ret) > + return ret; > + > + ret =3D thc_port_supported(idev->thc, &supported); > + if (ret) > + return ret; > + if (!supported) > + return -ENODEV; > + > + /* Without this the engines write into the configuration block. */ > + thc_spi_input_output_address_config(idev->thc, 0, > THC_IPTS_BULK_ADDR, > + THC_IPTS_BULK_ADDR); > + > + /* > + * Firmware may leave the receive engines armed with the PRD base of > + * whatever it had mapped. Stop them before the controller starts > + * pushing frames again, or those frames land in stale pages. > + */ > + thc_dma_unconfigure(idev->thc); > + > + ret =3D thc_ipts_spi_set(idev, THC_IPTS_BOOT_SPI_HZ, THC_SINGLE_IO); > + if (ret) > + return ret; > + > + /* The first configuration read is unreliable without edge detect. */ > + thc_int_trigger_type_select(idev->thc, true); > + > + /* > + * Release the controller from reset; it answers only after this. > + * The bit is the reset request and one means out of reset, so it has > + * to be written whatever it reads back. > + */ > + ret =3D thc_port_reset_release(idev->thc); > + if (ret) > + return ret; If this is thc_port_reset_release() function use case, I suggestion to comb= ine thc_port_reset_release() and thc_port_reset_hold() to one function thc_= port_reset(bool hold). When hold is false, set THC_M_PRT_CONTROL_DEVRST and sleep then release THC= _M_PRT_CONTROL_DEVRST; if hold is true, only set THC_M_PRT_CONTROL_DEVRST. Because you cann't guarantee BIOS/UEFI will hold THC_M_PRT_CONTROL_DEVRST i= n pre-os stage. > + > + /* Out of reset from here: a teardown has to put it back. */ > + WRITE_ONCE(idev->state, THC_IPTS_RESET); > + > + msleep(THC_IPTS_BOOT_MS); > + > + ret =3D thc_ipts_read_cfg(idev); > + if (ret) > + return ret; > + > + idev->vendor =3D le16_to_cpu(idev->cfg.vendor); > + idev->product =3D le16_to_cpu(idev->cfg.product); > + idev->max_rx =3D THC_IPTS_RX_BUF_SIZE(le32_to_cpu(idev- > >cfg.buf_sizes)); > + idev->max_tx =3D THC_IPTS_TX_BUF_SIZE(le32_to_cpu(idev- > >cfg.buf_sizes)); > + /* TX_BUF_SIZE() never goes below 64, so only the rx half can fail. */ > + if (idev->max_rx <=3D THC_IPTS_RX_HDR_SIZE) { > + dev_err(idev->dev, "receive buffer of %zu bytes is too small\n", > + idev->max_rx); > + return -ENODEV; > + } > + thc_ipts_spi_from_cfg(idev, &hz, &mode); > + ret =3D thc_ipts_spi_set(idev, hz, mode); > + if (ret) { > + dev_warn(idev->dev, > + "cannot follow the SPI timing, going slow\n"); > + ret =3D thc_ipts_spi_set(idev, THC_IPTS_BOOT_SPI_HZ, > + THC_SINGLE_IO); > + if (ret) > + return ret; > + } else { > + dev_dbg(idev->dev, "SPI clock asked for %u Hz\n", hz); > + } > + > + ret =3D thc_interrupt_quiesce(idev->thc, false); > + if (ret) > + return ret; > + > + ret =3D thc_ipts_touch_set(idev, true); > + if (ret) > + return ret; > + WRITE_ONCE(idev->state, THC_IPTS_CONFIG); > + > + return 0; > +} > + > +/** > + * thc_ipts_port_stop - tear one port down > + * @idev: port to stop > + */ > +void thc_ipts_port_stop(struct thc_ipts *idev) { > + if (READ_ONCE(idev->state) >=3D THC_IPTS_CONFIG) > + thc_ipts_touch_set(idev, false); > + > + /* Forced: the bit may read as clear and still need the command. */ > + thc_port_reset_hold(idev->thc); > + thc_interrupt_quiesce(idev->thc, true); > + WRITE_ONCE(idev->state, THC_IPTS_DOWN); } > diff --git a/drivers/hid/intel-thc-hid/intel-ipts/ipts.h b/drivers/hid/in= tel-thc- > hid/intel-ipts/ipts.h > new file mode 100644 > index 000000000..0f8bcb8dc > --- /dev/null > +++ b/drivers/hid/intel-thc-hid/intel-ipts/ipts.h > @@ -0,0 +1,140 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef _THC_IPTS_H_ > +#define _THC_IPTS_H_ > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include "intel-thc-dev.h" > + > +/* Configuration block the controller keeps at address zero. */ > +#define THC_IPTS_CFG_SIZE 64 > +#define THC_IPTS_CFG_TOUCH 0x0c > +#define THC_IPTS_TIC_ID 0x43495424 /* "$TIC" */ > + > +/* Bulk data window. The DMA engines have to be pointed here, not at zer= o. */ > +#define THC_IPTS_BULK_ADDR 0x1000 > + > +#define PCI_DEVICE_ID_INTEL_THC_LKF_PORT1 0x98d0 > +#define PCI_DEVICE_ID_INTEL_THC_LKF_PORT2 0x98d1 > +#define PCI_DEVICE_ID_INTEL_THC_TGL_LP_PORT1 0xa0d0 > +#define PCI_DEVICE_ID_INTEL_THC_TGL_LP_PORT2 0xa0d1 > +#define PCI_DEVICE_ID_INTEL_THC_TGL_H_PORT1 0x43d0 > +#define PCI_DEVICE_ID_INTEL_THC_TGL_H_PORT2 0x43d1 > +#define PCI_DEVICE_ID_INTEL_THC_ADL_S_PORT1 0x7ad8 > +#define PCI_DEVICE_ID_INTEL_THC_ADL_S_PORT2 0x7ad9 > +#define PCI_DEVICE_ID_INTEL_THC_ADL_P_PORT1 0x51d0 > +#define PCI_DEVICE_ID_INTEL_THC_ADL_P_PORT2 0x51d1 > +#define PCI_DEVICE_ID_INTEL_THC_ADL_M_PORT1 0x54d0 > +#define PCI_DEVICE_ID_INTEL_THC_ADL_M_PORT2 0x54d1 > +#define PCI_DEVICE_ID_INTEL_THC_RPL_S_PORT1 0x7a58 > +#define PCI_DEVICE_ID_INTEL_THC_RPL_S_PORT2 0x7a59 > + > +/* The block fills in while the controller starts, so $TIC is retried. *= / > +#define THC_IPTS_CFG_TRIES 10 > +#define THC_IPTS_CFG_RETRY_MS 100 > + > +#define THC_IPTS_CFG_KNOWN 40 > + > +/* The block as far as this driver reads it, padded to its full size. > +*/ struct thc_ipts_cfg { > + __le32 irq_cause; > + __le32 error; /* protocol error flags, not used */ > + __le32 buf_sizes; /* Rx/Tx sizes, see *_BUF_SIZE() */ > + __le32 touch_cfg; /* touch engine control, writable */ > + __le32 touch_state; /* touch engine state, not used */ > + __le32 device_id; /* THC_IPTS_TIC_ID after a good read */ > + __le32 spi_cfg; > + __le16 vendor; > + __le16 product; > + __le32 revision; > + __le32 fw_version; /* changes on every reset, not a version */ > + u8 rest[THC_IPTS_CFG_SIZE - THC_IPTS_CFG_KNOWN]; > +}; > + > +static_assert(sizeof(struct thc_ipts_cfg) =3D=3D THC_IPTS_CFG_SIZE); > + > +/* The core is handed the struct itself, so the offsets are part of the > +deal. */ static_assert(offsetof(struct thc_ipts_cfg, buf_sizes) =3D=3D > +0x08); static_assert(offsetof(struct thc_ipts_cfg, touch_cfg) =3D=3D 0x0= c); > +static_assert(offsetof(struct thc_ipts_cfg, spi_cfg) =3D=3D 0x18); > +static_assert(offsetof(struct thc_ipts_cfg, vendor) =3D=3D 0x1c); > +static_assert(offsetof(struct thc_ipts_cfg, product) =3D=3D 0x1e); > +static_assert(offsetof(struct thc_ipts_cfg, revision) =3D=3D 0x20); > +static_assert(offsetof(struct thc_ipts_cfg, device_id) =3D=3D 0x14); > + > +/* Buffer sizes are stored as (size / 64) - 1, Rx in bits 13:0, Tx in 23= :14. */ > +#define THC_IPTS_DMA_UNIT 64 > +#define THC_IPTS_RX_BUF_SIZE(val) \ > + ((size_t)(FIELD_GET(GENMASK(13, 0), (val)) + 1) * THC_IPTS_DMA_UNIT) > +#define THC_IPTS_TX_BUF_SIZE(val) \ > + ((size_t)(FIELD_GET(GENMASK(23, 14), (val)) + 1) * > THC_IPTS_DMA_UNIT) > + > +#define THC_IPTS_TOUCH_ENABLE BIT(0) > +#define THC_IPTS_TOUCH_HID_REPORT BIT(2) > +#define THC_IPTS_TOUCH_POWER_ON 3 > +#define THC_IPTS_TOUCH_POWER_MASK GENMASK(5, 3) > +#define THC_IPTS_TOUCH_POWER(val) \ > + FIELD_PREP(THC_IPTS_TOUCH_POWER_MASK, (val)) > + > +#define THC_IPTS_SPI_CLKDIV(val) FIELD_GET(GENMASK(3, 1), (val)) > +#define THC_IPTS_SPI_CLKDIV8 BIT(4) > +#define THC_IPTS_SPI_DUAL BIT(6) > +#define THC_IPTS_SPI_QUAD BIT(7) > +/* Slowest gear in the core's SPI table; anything under it is refused. *= / > +#define THC_IPTS_SPI_MIN_HZ 2232143 > + > +/* Code and length in front of the payload; the long one is inbound. */ > +#define THC_IPTS_RX_HDR_SIZE 64 > +#define THC_IPTS_TX_HDR_SIZE 8 > + > +/** > + * enum thc_ipts_state - how far the port has been brought up > + * @THC_IPTS_DOWN: no controller, no buffers, no HID device > + * @THC_IPTS_RESET: out of reset, configuration not read yet > + * @THC_IPTS_CONFIG: configuration read, engines not configured > + * @THC_IPTS_DMA: DMA engines configured and may be written to > + * @THC_IPTS_UP: HID device registered > + * > + * The steps only move forward while the port starts and only backward > +while > + * it stops. A failure therefore leaves the port at the last step that > + * completed, and the teardown knows how far to unwind. > + */ > +enum thc_ipts_state { > + THC_IPTS_DOWN, > + THC_IPTS_RESET, > + THC_IPTS_CONFIG, > + THC_IPTS_DMA, > + THC_IPTS_UP, > +}; > + > +/** > + * struct thc_ipts - state of one THC port in IPTS mode > + * @dev: device used for resources and logging > + * @thc: shared THC core context > + * @cfg: configuration block last read from the controller > + * @vendor: vendor ID the controller reports for its HID device > + * @product: product ID the controller reports for its HID device > + * @max_rx: largest frame the controller may send, in bytes > + * @max_tx: largest frame the driver may send, in bytes > + * @state: how far the port has been brought up, see enum > +thc_ipts_state */ struct thc_ipts { > + struct device *dev; > + struct thc_device *thc; > + struct thc_ipts_cfg cfg; > + u16 vendor; > + u16 product; > + size_t max_rx; > + size_t max_tx; > + enum thc_ipts_state state; > +}; > + > +int thc_ipts_port_start(struct thc_ipts *idev); void > +thc_ipts_port_stop(struct thc_ipts *idev); > + > +#endif /* _THC_IPTS_H_ */ > diff --git a/drivers/hid/intel-thc-hid/intel-ipts/pci-ipts.c b/drivers/hi= d/intel-thc- > hid/intel-ipts/pci-ipts.c > new file mode 100644 > index 000000000..8386d9250 > --- /dev/null > +++ b/drivers/hid/intel-thc-hid/intel-ipts/pci-ipts.c > @@ -0,0 +1,124 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * PCI glue for the Intel Touch Host Controller in IPTS mode. Ports > +that > + * the HIDSPI driver already claims are deliberately left out of the ID = table. > + */ > + > +#include > +#include > +#include > +#include > + > +#include "ipts.h" > + > +static const struct pci_device_id thc_ipts_pci_ids[] =3D { > + /* Lakefield */ > + {PCI_DEVICE_DATA(INTEL, THC_LKF_PORT1, NULL)}, > + {PCI_DEVICE_DATA(INTEL, THC_LKF_PORT2, NULL)}, > + /* Tiger Lake */ > + {PCI_DEVICE_DATA(INTEL, THC_TGL_LP_PORT1, NULL)}, > + {PCI_DEVICE_DATA(INTEL, THC_TGL_LP_PORT2, NULL)}, > + {PCI_DEVICE_DATA(INTEL, THC_TGL_H_PORT1, NULL)}, > + {PCI_DEVICE_DATA(INTEL, THC_TGL_H_PORT2, NULL)}, > + /* Alder Lake */ > + {PCI_DEVICE_DATA(INTEL, THC_ADL_S_PORT1, NULL)}, > + {PCI_DEVICE_DATA(INTEL, THC_ADL_S_PORT2, NULL)}, > + {PCI_DEVICE_DATA(INTEL, THC_ADL_P_PORT1, NULL)}, > + {PCI_DEVICE_DATA(INTEL, THC_ADL_P_PORT2, NULL)}, > + {PCI_DEVICE_DATA(INTEL, THC_ADL_M_PORT1, NULL)}, > + {PCI_DEVICE_DATA(INTEL, THC_ADL_M_PORT2, NULL)}, > + /* Raptor Lake */ > + {PCI_DEVICE_DATA(INTEL, THC_RPL_S_PORT1, NULL)}, > + {PCI_DEVICE_DATA(INTEL, THC_RPL_S_PORT2, NULL)}, > + {} > +}; > +MODULE_DEVICE_TABLE(pci, thc_ipts_pci_ids); > + > +static int thc_ipts_probe(struct pci_dev *pci, const struct > +pci_device_id *id) { > + struct thc_ipts *idev; > + void __iomem *mem; > + int ret; > + > + idev =3D devm_kzalloc(&pci->dev, sizeof(*idev), GFP_KERNEL); > + if (!idev) > + return -ENOMEM; > + > + idev->dev =3D &pci->dev; > + pci_set_drvdata(pci, idev); > + > + ret =3D pcim_enable_device(pci); > + if (ret) { > + dev_err(idev->dev, > + "cannot enable the PCI function, error %d\n", ret); > + return ret; > + } > + > + pci_set_master(pci); > + > + mem =3D pcim_iomap_region(pci, 0, KBUILD_MODNAME); > + ret =3D PTR_ERR_OR_ZERO(mem); > + if (ret) { > + dev_err(idev->dev, "cannot map the register space, error %d\n", > + ret); > + return ret; > + } > + > + ret =3D dma_set_mask_and_coherent(idev->dev, DMA_BIT_MASK(64)); > + if (ret) > + ret =3D dma_set_mask_and_coherent(idev->dev, > DMA_BIT_MASK(32)); > + if (ret) { > + dev_err(idev->dev, "no usable DMA configuration, error %d\n", > + ret); > + return ret; > + } > + > + idev->thc =3D thc_dev_init(idev->dev, mem); > + if (IS_ERR(idev->thc)) > + return PTR_ERR(idev->thc); > + > + ret =3D thc_ipts_port_start(idev); > + if (ret) { > + thc_ipts_port_stop(idev); > + return ret; > + } > + > + dev_info(idev->dev, "controller %04x:%04x rev %u\n", > + idev->vendor, idev->product, le32_to_cpu(idev->cfg.revision)); > + dev_info(idev->dev, "spi cfg 0x%08x, rx %zu tx %zu bytes\n", > + le32_to_cpu(idev->cfg.spi_cfg), idev->max_rx, idev->max_tx); > + > + return 0; > +} > + > +static void thc_ipts_remove(struct pci_dev *pci) { > + struct thc_ipts *idev =3D pci_get_drvdata(pci); > + > + thc_ipts_port_stop(idev); > + pci_clear_master(pci); > +} > + > +static void thc_ipts_shutdown(struct pci_dev *pci) { > + struct thc_ipts *idev =3D pci_get_drvdata(pci); > + > + if (idev) > + thc_ipts_port_stop(idev); > +} > + > +static struct pci_driver thc_ipts_driver =3D { > + .name =3D "intel-ipts", > + .id_table =3D thc_ipts_pci_ids, > + .probe =3D thc_ipts_probe, > + .remove =3D thc_ipts_remove, > + .shutdown =3D thc_ipts_shutdown, > + /* Bring-up waits for the controller, up to a few seconds. */ > + .driver.probe_type =3D PROBE_PREFER_ASYNCHRONOUS, }; > +module_pci_driver(thc_ipts_driver); > + > +MODULE_AUTHOR("Emfox Zhou "); > +MODULE_DESCRIPTION("IPTS transport for the Intel Touch Host > +Controller"); MODULE_LICENSE("GPL"); MODULE_IMPORT_NS("INTEL_THC");