Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1784575pxb; Thu, 16 Sep 2021 15:50:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyN01qa0fgSPxsy15+0+v2Z5+8wDhLe5o31aroMmlOfoNsZ8LSiWEhC/RuoDt1sgeAPnqsl X-Received: by 2002:a05:6402:3514:: with SMTP id b20mr9109651edd.152.1631832626424; Thu, 16 Sep 2021 15:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631832626; cv=none; d=google.com; s=arc-20160816; b=GitIyLqY4ilRwotIzs4EaV8LfcHHpFz49fDdsmW4YTI1RE9GOQAeipkCBRQH47jZxe X4wV2AX0m91ojLqAw2Trd59h95PRbvSTYvyWW2ep8+FUXQr8ToDyaOXhfC4Z8RPxlKZW ww19x1su+YBAMIEtGFG5gwxQsUAyEXwSwIJuqWeLq+w7TlZi3NWzYtGqTbe0dG2uFlyy ama98SnrFnVXUekfOcStxxPGMnEgB1zyctLNkMvTngvymrIh2I4OTrfB6SGpojO3iIyy NvkmZgqTEbrpF1swJPrMIYTOf/FTmN06qOsn4IyWGXVAa7aKXJbyRfLFB1YgkKAqnKLM Trnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oG8SZ1noToZl30XpR4jysMDsVjJ9XTkV5PnbLop/AYo=; b=VNc5wNpmAl9RArD8lF9I3EmjxjQsPWxsLBxuj1F+P6HLNT6stnMJuxc7EFWbhcrab3 u61ZgQcysQHlA3uTLMKYvWvz5uzj2psFhnBjtyW3bjNgWKvmn6iXDMHc6AQ3URTz9J8s 6pb4B0JjdLXYF3e6/PRKPxazNWsdGKgOAULYk4OCfgQdmvxQ94ogJ5CxC/PuJT9xnbOv EcZFqtPr981NFcp5jfcvNYLNwrHHIpLeOqj2ONrHr0c0VDvbOhU/fcKVsKtbp9byPNMy OeyuQ7xZbNK6R7lGZzMwcSCBvbR2d1QN4pf8hHIx7a+xuJhqXof4yocht3tqEwa07My4 tCnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vD2u+AkB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di4si5247377ejc.95.2021.09.16.15.50.02; Thu, 16 Sep 2021 15:50:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vD2u+AkB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243837AbhIPQpu (ORCPT + 99 others); Thu, 16 Sep 2021 12:45:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:52364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245009AbhIPQkB (ORCPT ); Thu, 16 Sep 2021 12:40:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7F06F61A08; Thu, 16 Sep 2021 16:23:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809408; bh=hjBsaiOmUqLXWjSvSFU75rW1+H8eKB9swhXT0Nw2DpY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vD2u+AkB/r05P0JVyyvpL6WZfHnDYBng3+vFhS7j3bdk0e+UI5kGl035FjPRfk6Rz +gu9IWR1Uichamqtx4ThYgH4w/M4UPhwDYwzYPnTPUdqRlq+vIn38Y6vDcCQxKoZKe PCv6rtD1KCgqocHN8D3TFwzP6BAsaxHT42xQvcpU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shyam Sundar S K , Basavaraj Natikar , Jiri Kosina , Sasha Levin Subject: [PATCH 5.13 111/380] HID: amd_sfh: Fix period data field to enable sensor Date: Thu, 16 Sep 2021 17:57:48 +0200 Message-Id: <20210916155807.805508193@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Basavaraj Natikar [ Upstream commit 3978f54817559b28535c58a00d3d31bbd5d0b65a ] Existing amd-sfh driver is programming the MP2 firmware period field in units of jiffies, but the MP2 firmware expects in milliseconds unit. Changing it to milliseconds. Fixes: 4b2c53d93a4b ("SFH:Transport Driver to add support of AMD Sensor Fusion Hub (SFH)") Reviewed-by: Shyam Sundar S K Signed-off-by: Basavaraj Natikar Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/amd-sfh-hid/amd_sfh_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/amd-sfh-hid/amd_sfh_client.c b/drivers/hid/amd-sfh-hid/amd_sfh_client.c index 3589d9945da1..9c7b64e5357a 100644 --- a/drivers/hid/amd-sfh-hid/amd_sfh_client.c +++ b/drivers/hid/amd-sfh-hid/amd_sfh_client.c @@ -186,7 +186,7 @@ int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata) rc = -ENOMEM; goto cleanup; } - info.period = msecs_to_jiffies(AMD_SFH_IDLE_LOOP); + info.period = AMD_SFH_IDLE_LOOP; info.sensor_idx = cl_idx; info.dma_address = cl_data->sensor_dma_addr[i]; -- 2.30.2