Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp451333lqp; Wed, 12 Jun 2024 06:42:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjgcyUNJPGLMG3P0nhxRmAkBV2mpiRkqJ1pYaXST0l0b2uiK3Lm0vETIJzqgfRcxTsZQSacjqYDER2xqOsSyuUA44DSpMg26E/W0TE5Q== X-Google-Smtp-Source: AGHT+IGxZSCruDycgU3e8HRXFtY6fLy5veaqmb3j2GEqeo2G7CK28c8sOVrGLm7lcoT0izPPNZwm X-Received: by 2002:a05:651c:1a20:b0:2eb:e6ff:7ddf with SMTP id 38308e7fff4ca-2ebfc9fbb8cmr13753231fa.25.1718199775823; Wed, 12 Jun 2024 06:42:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718199775; cv=pass; d=google.com; s=arc-20160816; b=oikf632MfE7517UEulIQjQT8EU41T/vpydT2jlPYKVnXo1Qc04K8O6P3dpQwhok9Dk tA4w5Mo4vBMRReAyYPTb+HrYwmGr2wWXwc3X7zrWqTb1nvnmbOs0fs2jbMyOTPRWBZts RdLLiClmdlmK9H/ibkfHzibaT1sN8lzrYqbMKOko2C9NK0ALzT4UsNcqgzE+I6/B2qFf V/g0lT6UvvOngbb949c9lp49CcCFQsEP4uBDKpW2ctk/i8QnOkLb5OIxBk1DabB1nEim DxSDU6iR6FmUNTi7Mbb1z1wdFsX41/L1IDpp+rpKnZ/fytt9VrQoXgEwxK1k2nopHSiD i12g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=v/n0skyDCqk0A4g17wGPYh0p/6wetdSwsLx+Vq4wTy8=; fh=6VtDt3HOTfV8JH0W9i+/b5hC/+LLrX1/0Le9RodvwuU=; b=B44vbjsaaRD9D/3+5AADSZEcCXoJ0F/RJ9V0QH59GBWnzm0cAQeBIcjmvYAjE974n7 cAEItGTRZkJhSE70bAwnpSe6uFlW0LnXeuBxsjE/7y3SD7SjVWycxKOXpXAYVia4fcs1 qseh74hxGTT87Z99360K6V9RXgEPAWVbJrZ3L3jirlDptx1GG+RIbCtSeU+3iDcM84cN KPBwUP5VoLpCHg0Zad5rxSlSHIassSL0fk9/PCiaFSY1WpaNarZCsSMsI3rQbVxnE1iZ AWpr5aaAwBtqEuDt4otH9WbgyxKTeTNLU82FF2QcY4I+yQ7DAtsMVQwPs1vCT1U9hKUC Ffmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LP6MbhX7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-211571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae1f956bsi6965361a12.323.2024.06.12.06.42.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 06:42:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LP6MbhX7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-211571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A94031F2645E for ; Wed, 12 Jun 2024 13:37:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B6C217D377; Wed, 12 Jun 2024 13:37:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LP6MbhX7" Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AB3917C9F6 for ; Wed, 12 Jun 2024 13:37:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718199432; cv=none; b=TmAyKeHQsHZ7KAz1atev/+Wwn64ecaRBDZUluBpigXrj0IlHiGxuBlS/zKCSkPdObQyHqqbe6fzq7ZZJ42D8hSg6kh2OBF+4GJYBRa18whAW7PV33S1zdSx5MsLAeKhwD6wC2JVISSMjGBSb+22UQioytBAO8dKcIUKinqU3Ark= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718199432; c=relaxed/simple; bh=ZBa7BSruQYc69oMtdtEp/dyK2qiYEo1o7+5F9JmxO6E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Q27QmkwnNHJ921On6J/JMcCxZ0QWSDTJnRUwySAPdEx8yifOWamJTQtp3k3tocZ4g3axdWZ9UVHaphCu4ntuYBsegVkpHe/NMUrEZmG24EIbKL03tjhhuHH+b32FjjCq4KU/PLDZtwy695FlP+LVVby1deF4bVHVQYLJim+tdfc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LP6MbhX7; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1f32a3b9491so51074925ad.0 for ; Wed, 12 Jun 2024 06:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718199430; x=1718804230; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=v/n0skyDCqk0A4g17wGPYh0p/6wetdSwsLx+Vq4wTy8=; b=LP6MbhX7OkwxtXvR0HdFkgSu9YkndIFhgRhqk9L7uK2avB02OQXG9k93OBgTPVFaEN JbkG4PaPnGO8dYDuuIDcaDm4maZES7cQT6BYeDzaiVE17TGyOFxzwKtmLBNXTUGxUCtk uvq/3h+wO7OBdniAZTqvAsSMPIl+7KHPlUdwUUyj5SGmAHwBiM0q/Y3dNvHaxYET7J97 8Y63eFPJjgEYxD//IZoWGH2tGI+BgrVgptsDqQZewlkVoZr3MTWQK+rhrjsNwkhHusgZ qSLIYzF+w/k7OhqNR3juj6KvA0ILb+OQhcK16gQ6nQApH/i7NkjSAwyj9kuUJp2RWB7a +YCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718199430; x=1718804230; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=v/n0skyDCqk0A4g17wGPYh0p/6wetdSwsLx+Vq4wTy8=; b=VPtKL0xxDWbHGVH3mklIzONQGH5wTAxHf0cJ383JGCCJ+WnGIDvE+UVUB/JPt0B3tH iW/8tVhRfqHJ+FhGaZl2eXbhDiLUm0kb9AhTonE4IAqAOPiOyg1mOrCA8eZ006Tq13XQ FVtCkJuvIyZ4ufRpDW9ESg7W0vzrmSPKf/oXdlPjr68mGTjc1qepuPxfJ4+JcdphlxSe ROy5rC4vcMHUPyI604yveNF8LyeMhXYFBcm6wtt1mokxtpo9TuMyHCa2loubrKPg7i6f zLNpdCQIiQatmvNbQPJETpC9YIpkXKhHVq9bw+QBPpAuMvg9T9P8aLBX09UJ9z6o/3IS QoJQ== X-Forwarded-Encrypted: i=1; AJvYcCUIiNC6vcBGlWvIDYachU828fYBIxHI1cOpLckHkRhFUmBaq8CgHaOwsm31n9w+FDz5UpZTRWwb0d8EKOlL9CSc493ZOOzJFqwRuAAn X-Gm-Message-State: AOJu0YzQ34luYuzdo08XKv3oC9ZvMq1mty7CdsSOZ+dKE470QMYyqzPI eemDPFx/WhS9zcL9X1YxvXIYMzSUfOGr3zC3n75nddWgIFYwOp67 X-Received: by 2002:a17:902:dacb:b0:1f8:4932:2f05 with SMTP id d9443c01a7336-1f849323126mr6170465ad.64.1718199430429; Wed, 12 Jun 2024 06:37:10 -0700 (PDT) Received: from distilledx.localdomain ([103.246.195.195]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f845e0ca86sm7291815ad.0.2024.06.12.06.37.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 06:37:10 -0700 (PDT) From: Tejas Vipin To: neil.armstrong@linaro.org, quic_jesszhan@quicinc.com Cc: Tejas Vipin , maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, linus.walleij@linaro.org, dmitry.baryshkov@linaro.org, dianders@chromium.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] drm/mipi-dsi: fix handling of ctx in mipi_dsi_msleep Date: Wed, 12 Jun 2024 19:05:43 +0530 Message-ID: <20240612133550.473279-3-tejasvipin76@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240612133550.473279-1-tejasvipin76@gmail.com> References: <20240612133550.473279-1-tejasvipin76@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ctx would be better off treated as a pointer to account for most of its usage so far, and brackets should be added to account for operator precedence for correct evaluation. Fixes: f79d6d28d8fe7 ("drm/mipi-dsi: wrap more functions for streamline handling") Signed-off-by: Tejas Vipin --- include/drm/drm_mipi_dsi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index bd5a0b6d0711..71d121aeef24 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -293,7 +293,7 @@ ssize_t mipi_dsi_generic_read(struct mipi_dsi_device *dsi, const void *params, #define mipi_dsi_msleep(ctx, delay) \ do { \ - if (!ctx.accum_err) \ + if (!(ctx)->accum_err) \ msleep(delay); \ } while (0) -- 2.45.2