Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5918948rwe; Tue, 18 Apr 2023 13:41:49 -0700 (PDT) X-Google-Smtp-Source: AKy350YMjr3hMgF17payMjoiXBuUu9XQuAD4BSsTkiTGzhQoh4nAjwbThLS/PYRNTz7UAwUfuWm2 X-Received: by 2002:a05:6a20:1590:b0:f0:1b0b:acf7 with SMTP id h16-20020a056a20159000b000f01b0bacf7mr1172550pzj.2.1681850509716; Tue, 18 Apr 2023 13:41:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681850509; cv=pass; d=google.com; s=arc-20160816; b=ImYYBcALUKXH6Fgo+lG37Gr6JRA/3NfLdEtPvWkugbGJhX/HC8klTnkRtYT7oVXx/s CB8kk90Zd1t4ReAfA8hnsU/+XwkhJiVB9t5iVTW4WwpX8fKMXKWdhzARGHSOj5QQYRoS dze+GTAg/U75ftB+q9KvHRdqDYhij0CqQc5XS/aoP+ahix/ofhpwl0f4/sVuAha+o7cw LqmLjEcpt/EpxovaQFmq18UHYswPBfZ3Ky+rkQ4KGh8fPLxCJfR1H/r/qQWT9GWQvQAQ oTXBqLpZAatzqVDxLC7G1MHZ27NjZZaTUUXX4AeiWgii0tqLbx6roviIfRiRTXN2KtEf Rcow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=N1IV+630uA8ZmyLZgSNxBXpg99Ftvy/6cWq5+DRYkfg=; b=kZXcXDzeqq5kTsZ1WYSE31WJzjdVdu+oXIsr/XUrl3mNb1OCgOcKbdmsexgEhIJdsz C3dHAcLw2mcvi5ogNq1eYptlr3CL4ILmx4c/YdpxB2Vn6Ir2YNhMvUUO5kYPYH//gH84 0sUe2oxsgf2F4Ti+a+ESleHmuKu0+ZcnjTYW+lTM8nMsuFOjcnVxbN6F+jbYCVroghZO qOIclZBcZHZ1nQjDeCaSh7lKevudvv23HGV2f81U/NPg7k+NjUvOgwjoykBPOiNOWSr9 9vnqnO/+UXIKSk1HGTzqtyj8z/YtmklRS5drh1QD7Sd9XKSnxAGmQpxSvL9gxQHUUB9x PCyg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=U9N7BiDW; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j193-20020a638bca000000b0051f74820afdsi1734520pge.782.2023.04.18.13.41.12; Tue, 18 Apr 2023 13:41:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=U9N7BiDW; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232241AbjDRUiH (ORCPT + 99 others); Tue, 18 Apr 2023 16:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjDRUiF (ORCPT ); Tue, 18 Apr 2023 16:38:05 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2077.outbound.protection.outlook.com [40.107.101.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD96D9750; Tue, 18 Apr 2023 13:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n31LGTLI1HI7aQ3WePvB485p6DbP/yH6HGsdqnUNEC5vpksQPkK1R5XwNDw+p3N7umy8k0haJ7yH1gMRZN9TlgaiMJ6ucbgnr4ibJUU92k6Mu/EHOk3Sr8nusLL8rbAukkH4wmWSoPyJ43+uiBFxPg9iM5CqtKTBSk8TJ6jEItZxOGyx7TOzSacP9IC7rOiZGfwWx3fO5L+PXMKMNDYdZkGod6ZKegYCcAB4aEYm4nAfFYA+eMGIRfa3pQ9cQuS3wT3TeZWPg64vzTOcbdmYRTEeOt9vn8AEaovds1nvLiF+8sAhklxNe/qtBR/aGspgaLt4uDKex2+vJ8oTf1TSOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=N1IV+630uA8ZmyLZgSNxBXpg99Ftvy/6cWq5+DRYkfg=; b=ajJBzWdjTzlltFzL9zWfWBfRIpdJcZltn2Sg2f3a0b9Va4eelGo9OMnc80OisKK+FTINvVq4FaU+Wyy9uKaxnE+KuaBXXpw/DG7FWREeHdeF82Xa1oRedTut8AMvMhIBxjmDDBeMNHY6xfegi0C35+2PrnBkm9kw15wZDRhALi/52FhX1EVijxv27I4sNbvATlbRClaeb3INO8h/pImT9KfcLKpu6Q/OgAF1m7mkEybG9Z2H8eJSMAalaEy0y3CXovfc3MF14q37ll01CebR16Pp7bmHCNH56mw4kCR2VXmY4JA4Xexej4AWCWQD9g3W9ld9F7xg7fPz/UhWedQIcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N1IV+630uA8ZmyLZgSNxBXpg99Ftvy/6cWq5+DRYkfg=; b=U9N7BiDW1DT9fQ+nA1mpxAta80e7AXxC7U3JiGtV6zKmf6TWq18Mh07Vqz8xWBUBGUTtb8FE3O4jSjfWOkFNc7vyLMI0BYDfYZ6+oWfSzv1hPgpVBjmn5pxgt38aWXIs3A/kLJcqjLFr2JRyfM5Rrb5E2oV8ypTyuRXco9Tsx6wndb9Qf4jQwx2CcyHHGAoUF0K6mP7YUXJKX8zAiyNbSBMvBh9FdhF4TMNDKYROpxKPV2xPPTnF8rTw0Q6egaUxIobGkq1+ZplqgW2HMKn2Jy288jQpalsgZOjf+Wc2D+7vQQE0fwzq5QFu4f5Xfh4sV6ya3191SZeDE/E2mO879Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BYAPR12MB2743.namprd12.prod.outlook.com (2603:10b6:a03:61::28) by CYYPR12MB8732.namprd12.prod.outlook.com (2603:10b6:930:c8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 20:37:58 +0000 Received: from BYAPR12MB2743.namprd12.prod.outlook.com ([fe80::f6e3:c3af:67f9:91e9]) by BYAPR12MB2743.namprd12.prod.outlook.com ([fe80::f6e3:c3af:67f9:91e9%7]) with mapi id 15.20.6298.030; Tue, 18 Apr 2023 20:37:58 +0000 From: Rahul Rameshbabu To: Benjamin Tissoires , Jiri Kosina Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Randy Dunlap , Rahul Rameshbabu Subject: [PATCH v4 0/1] HID: nvidia-shield Date: Tue, 18 Apr 2023 13:37:46 -0700 Message-Id: <20230418203747.24000-1-rrameshbabu@nvidia.com> X-Mailer: git-send-email 2.38.4 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY5PR16CA0023.namprd16.prod.outlook.com (2603:10b6:a03:1a0::36) To BYAPR12MB2743.namprd12.prod.outlook.com (2603:10b6:a03:61::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR12MB2743:EE_|CYYPR12MB8732:EE_ X-MS-Office365-Filtering-Correlation-Id: bdc61667-a920-4407-6e37-08db404ccbd1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Rs3MCluNTc7okDYuwx6wA6xmoo/XdAB3DwAFOlFuvoSG7v+8df3kFlCRndj9aCTR7bC2kU/pquuL9gVjTz83nVH7JqKeZt7te/9ezrUOe/d4wHGh5ZaFxHLTk/aEsNT9uVTWayeq6MNeTeknbzT/RHE+RGUzt1Xh1Iew7RFY55aoY+uMBMYkU/90fadsULuGf4JwEzqzY9qEcYfRz91RYABf08LAf88KTp4dNPIElHPFTKxtIG7ZL0kXJlRspKpbPEA+dSpgThskH+8pAbNP7vsVOcDMDCnXIcZHS56Wk/OEeMAryUNUNkBkFeCwy6PF0eM73T6DVHh/Ju7UXZbU1dQXlz1WHUk6gYOp5LUmuseL+iREao+SXiZFqeVYIGSf4CaMC8PFOiONjPaTce6A+lXPJYwoFQe/7qnCWRwtGx37ylEQrLYUUWdmBksYhicermcqJcmQNZ8HJiXh5iPDUstV1gEhjh1gJwwFywSlCshyZTK2ePT3v6Q/Rkx2Xmyd6rLXnbF7i8OUsO8d81itOQRzntDyM2TfABio8/qGActFWF0d9nVnyOzJgDMnYYlxLt1RtoNQjiFa292l5wSd+e+5OWHSfT0sqf19h41ZpOpqluhiOEkSRAnNZAHtjpma X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB2743.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(136003)(39860400002)(366004)(396003)(376002)(451199021)(36756003)(86362001)(2906002)(6486002)(2616005)(6666004)(186003)(107886003)(6512007)(26005)(6506007)(966005)(1076003)(316002)(4326008)(66946007)(478600001)(66556008)(66476007)(41300700001)(38100700002)(110136005)(54906003)(5660300002)(8676002)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?SgvZVzg16O4EOrD45r/jcGuQnKvjSoaoXpsmvU9fMND9DwDMdV6POlyMa2h6?= =?us-ascii?Q?Cw76+oKVwZqVTgCScRHH4q6jwlLvukIrDM6C8hOhdICq+ffThGwWUN5MNQ9/?= =?us-ascii?Q?PgFGn2WvgqMk/7UnNh/y84K+M1WBJ0K/rADE4VmwG+/CW6eekxiRXl9k2dZK?= =?us-ascii?Q?KfeDqA27W6svPjG1QlDQublHfCB3QOOmAcYGYuWZBoCfgVEqZ8a5nuSayLku?= =?us-ascii?Q?IZdkpcCUAA7sK6sBm1ICVAeGhmHHOw3/0XJ6a8TR6q+IYL1RF+qUdDiIDHOJ?= =?us-ascii?Q?Tslee+HJd3BfEbUu9AMddXA0+QE0K3qg0I0D69/ZkSg1ukT3WGPyXOw/DwXw?= =?us-ascii?Q?m+5XeXLnmVg21gyBAVAFnxlMg3iyJiMM7gOdFm9Pup6CvK+lWdiTc4AjbUu0?= =?us-ascii?Q?OChCKw9lmWtlEebNi163fA+IP06HITbX8cggFVDaeqTb+gFWrptb9D7051Gb?= =?us-ascii?Q?MbAXMogWq+vp9PzJ1PCgtX06w1Xss46b8/XpbA1j7fS6jRmWv831AygV+MfD?= =?us-ascii?Q?pVFMEIu69dFj5t3dFjL6spx5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ascii?Q?XX/VjlE5kjCCKILZnRaaynnzhWH1gGY/fde2lk+eAf78d8hVdVRnS54J962k?= =?us-ascii?Q?bJV/rgUaaIuB6VrEKLU54Ve+6tA0eWx9A3vqNReaUhXkT1dNgTi9EpLDr+C+?= =?us-ascii?Q?1Fv4Z4JNC05vksDYsVEeHPGsDn4IWfGdZooiOh8E?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: bdc61667-a920-4407-6e37-08db404ccbd1 X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB2743.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 20:37:58.7481 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mKdZEle9qzkLbTkvcktKg6Sdh+Btcptjz9/2eilactLeHVO9uj2tyEpLou9I1NJN4XH6yIzIv8Zj0mMkSVk6Vg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8732 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. This is an initial driver implementation for supporting NVIDIA SHIELD peripherals. Currently supports the following functionality for the THUNDERSTRIKE (SHIELD 2017) controller. - Haptics (ff_memless) - Serial number query (sysfs) - Hardware information query (sysfs) - Firmware version query (sysfs) Changes: v3 -> v4: * Follow correct formatting rules for help section in drivers/hid/Kconfig. * Refactor configuration names to indicate Kconfig options are for NVIDIA devices. v2 -> v3: * Renamed drivers/hid/hid-shield.c -> drivers/hid/hid-nvidia-shield.c. * Added space between braces for terminating element in shield_devices array. v1 -> v2: * Declared thunderstrike_hostcmd_req_work_handler as static. Reported-by: kernel test robot Link: https://lore.kernel.org/oe-kbuild-all/202304011342.6Bh3cWhA-lkp@intel.com/ Link: https://lore.kernel.org/oe-kbuild-all/202304020922.vsngJnBT-lkp@intel.com/ Rahul Rameshbabu (1): HID: nvidia-shield: Initial driver implementation with Thunderstrike support MAINTAINERS | 6 + drivers/hid/Kconfig | 18 + drivers/hid/Makefile | 1 + drivers/hid/hid-ids.h | 3 + drivers/hid/hid-nvidia-shield.c | 587 ++++++++++++++++++++++++++++++++ 5 files changed, 615 insertions(+) create mode 100644 drivers/hid/hid-nvidia-shield.c Link: https://lore.kernel.org/linux-input/20230417182909.33833-1-rrameshbabu@nvidia.com/ Link: https://lore.kernel.org/linux-input/20230410170840.16119-1-rrameshbabu@nvidia.com/ Link: https://lore.kernel.org/linux-input/20230401032150.7424-1-rrameshbabu@nvidia.com/ -- 2.38.4