From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E420163C; Thu, 15 Aug 2024 14:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723731819; cv=none; b=V4ODFhzxfXQcwmR8rRJVwFRVdByqTWQAKrHHck/+ck76+118/mSNn4PYgGWTwRuXPPBsRLLjfPRJIU4L5rKTNs75EnlLMFdz4HtjAeFwqzZKLX9BQefbyQhBj9SetUStyCp7uO+X47HVAoZDp2dLamu0alHZKxbRewkb3MbraDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723731819; c=relaxed/simple; bh=VdZir4ic9gD1nK0EpfVPfO9IiWIQ5y+viMeq3LaxOOM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TPBQ8nfP6JAETOmBT4f484rHCkskVRRUOFqYfksTxwehtw1o0/7nsXaiKdNe8Ih+pEVRGMJb1taMOmmNDwpqC3Ynw/TYUnEzQga4U1HPjJl08p5mBJQ1X+W52nT34HspVoKd8YEm/b5A7KYFAmffTE4wMZjA+HPW+2T+nR2OVDU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ol3wdKvr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ol3wdKvr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6116AC32786; Thu, 15 Aug 2024 14:23:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723731818; bh=VdZir4ic9gD1nK0EpfVPfO9IiWIQ5y+viMeq3LaxOOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ol3wdKvrySNkXFdCWUPk+j3Sv35IPxuMVaSRRn39rB9n3ZkZjdbujbAeqI+o0ivxN PTIQ1jJVXXrRZ8UnMrFf3PKcTXY9kK3TbopWaiV+352Wx7di843h5gnYticE0Nc6EP pvvf9+SQm+7bgiLKGwWF2sO/xRG6QBlOizf5g6bg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Zimmermann , Jocelyn Falempe , Dave Airlie , Maarten Lankhorst , Maxime Ripard , dri-devel@lists.freedesktop.org Subject: [PATCH 5.4 248/259] drm/mgag200: Set DDC timeout in milliseconds Date: Thu, 15 Aug 2024 15:26:21 +0200 Message-ID: <20240815131912.346931235@linuxfoundation.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240815131902.779125794@linuxfoundation.org> References: <20240815131902.779125794@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Zimmermann commit ecde5db1598aecab54cc392282c15114f526f05f upstream. Compute the i2c timeout in jiffies from a value in milliseconds. The original values of 2 jiffies equals 2 milliseconds if HZ has been configured to a value of 1000. This corresponds to 2.2 milliseconds used by most other DRM drivers. Update mgag200 accordingly. Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe Fixes: 414c45310625 ("mgag200: initial g200se driver (v2)") Cc: Dave Airlie Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: Jocelyn Falempe Cc: dri-devel@lists.freedesktop.org Cc: # v3.5+ Link: https://patchwork.freedesktop.org/patch/msgid/20240513125620.6337-2-tzimmermann@suse.de Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/mgag200/mgag200_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/mgag200/mgag200_i2c.c +++ b/drivers/gpu/drm/mgag200/mgag200_i2c.c @@ -135,7 +135,7 @@ struct mga_i2c_chan *mgag200_i2c_create( i2c->adapter.algo_data = &i2c->bit; i2c->bit.udelay = 10; - i2c->bit.timeout = 2; + i2c->bit.timeout = usecs_to_jiffies(2200); i2c->bit.data = i2c; i2c->bit.setsda = mga_gpio_setsda; i2c->bit.setscl = mga_gpio_setscl;