Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1914756pxb; Thu, 16 Sep 2021 20:07:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPQ17Ni4aATSedMPId1DuYAkA76x2L6gkSxEj3BQ5xhZPcU6c8F9gh7pIMzSKHucMGDd+H X-Received: by 2002:a17:906:4ccf:: with SMTP id q15mr10005160ejt.9.1631848036013; Thu, 16 Sep 2021 20:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631848036; cv=none; d=google.com; s=arc-20160816; b=jEwSLJ+H4jdeiRNT4NnlrEuyB+eod30FwP2D1o82JOfhCLWor0PSK1xqt3qiicl3ym pF7IWPTA0kB0jcj7Vxo9eiRRybZTjEkF9FP/hCkKuuwFv2I3U7tW075o0B9jVohHtp8Y 9EGoEEEhVQetPHL+dyPdWS8nHK7wt1sZq87s2xJCjEsdJkjV9cVEN2T0P1n9riznddOQ pvResHHRvBH+5D5XPnrzC0Wcqk2fkhO6R8jpGOqYcXRtkRKq+h0OtJhDBu68xFs/Rqh/ 7Ek+Z1WQwU1m2QljzVYZip4+kuOcQ6AkfQnKj150VZTxlPzKNAaWDQzG+oj83N4hBdfE VkzA== 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=h6RZQhpP7mBrowpJRvLJWy9Ltd725KHQJc/2uEIGUl0=; b=0sFwuxgXCuvpU28S6hx/zqLGsHMsnD5JKSZNhot1U00mTswo6NjZrjm9CZqEhYkPMd Q9Oq6l9ePMo4iYbejFQypseEFX4fagpVfp0+Js7NdH7pE01I30V+ck5PFA6TYBlVLJAP qMP1e0RuaxKq9+z+dnwXZLSjLyQJeyBFnmSw7DAomQexBwfVW/S4obLB2AT1rafpgEjy xNaNFe1VH9RT0rDQ1WgRXBCJMezT8MkI2AQKV65KXOHhikBpwOI13OZCX6QgBd3TgOXr nlaJEYm1CqEZ/2mbtPsr/hQcBjtnr2t21akDGSkhQlngjf+0YBFPpLMLTbiUl9iW8FrX iRZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Ohvm/9e/"; 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 b18si5977826ejh.638.2021.09.16.20.06.53; Thu, 16 Sep 2021 20:07:16 -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="Ohvm/9e/"; 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 S1344122AbhIPRX4 (ORCPT + 99 others); Thu, 16 Sep 2021 13:23:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:39804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243964AbhIPRP6 (ORCPT ); Thu, 16 Sep 2021 13:15:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0B75D61B7C; Thu, 16 Sep 2021 16:39:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810398; bh=H90KaqeN0o0+Sxqny6vwEHWxYTdk8Hk8ctf9SPEmtQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ohvm/9e/m+0Yte/OpbrpxLkjMjIyC6EwanHMxayG8rA3qbt7h5feK+ZuXzp3t7Am2 c/gp0NwMC3MIAw5rEpyir91CI/y3H3EMFeNtASrgszr5Mi5oUhhMwHix7jUXwYKw7G nEv1rTgnAdfrAXe8nrl5YTgBYq5wdKQOlkucn5aI= 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.14 125/432] HID: amd_sfh: Fix period data field to enable sensor Date: Thu, 16 Sep 2021 17:57:54 +0200 Message-Id: <20210916155814.990898739@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@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 efb849411d25..4710b9aa24a5 100644 --- a/drivers/hid/amd-sfh-hid/amd_sfh_client.c +++ b/drivers/hid/amd-sfh-hid/amd_sfh_client.c @@ -184,7 +184,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