Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4205454rba; Tue, 2 Apr 2024 10:07:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUx6qKL3j6U3NiiXr9XnOqtTk08Ff9whDc6kINSf3PMRvKGDj/m2jYsEwDItsgUN50rCYPKxsATxlh1zC0Lxt+aTNwLXDyEbyi5T6ReAQ== X-Google-Smtp-Source: AGHT+IHp92lpl6idFORP8e0ferzcipF0bXBHaakae/sWqD7a4/rC6wQbQkNT/zZPWHZT6aQQfgL7 X-Received: by 2002:a17:906:6a0d:b0:a4e:9970:aee7 with SMTP id qw13-20020a1709066a0d00b00a4e9970aee7mr207580ejc.50.1712077644576; Tue, 02 Apr 2024 10:07:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712077644; cv=pass; d=google.com; s=arc-20160816; b=M5JEOC/MgIb2gXH/cojnsr1kJNphZpQVtNk/PBdBaoh4TSjNf72nuyAh8jvIF3M32v 3bR4m8R6GR4H0gbZxJbBqKPPd0NnDD4a+NswEwjEAtkvckmZqMH9VT/6siInwGZj6/w3 6KXHGB/wUeOD8nlb10QReizkFq/G2AOO8fOX81OqZxtGbFzGCImF/K4yboNhY7Ip5KaX KTQchhVQiQsqAtl528FBKwBYBGzqIKWyIkwNStmbbH6VvJ1aOkWMiAZXPXwZIxWo0eYN OcqxzNGvslYJlYR6qeeeILHwL76vYAzDRcWtN4gI4OgT7zqHIUSMiiFATOUPqqOetgJH 9/rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=t0qX4V5dOuF+AyVy4H1pGmM8NKk2LMBP13hX/86nKyo=; fh=ILVJsirAUXTK4XHd9Oy0iBbbpBdE571xaf0aEaeHQ1A=; b=Bhjrjl7HQF2r4QEVv7aoY9SlZul2sr3nmVnH2j0D+whu1L2hsYguxyaTdi5rmQpeYn UlDG0C3PJwJaAXEhe2aZhulV4knVoIwyWY8LuO1U48ivILa4kQUf71CX4kcPZF88wo6b ri2KSXg9x+RhQJtx0kZ4SUc9vQsqsos1MsV5/M4ooyutZEdl3jhq5Dx8Xla8tE0ro/XJ xbedxwV1VY4R+8APFh63Kh88JXSRXmHYOiu8C5Lqb3ZuAJMuORPrihdwYqLmjbaFtjq6 1RYYe3GyPVghh9pbXKeXuVwtKc8v9FEF6ZHgoHj35Yfcvu2ZJnfP++V1Xf32QG995C8i t8KQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S5tUrQAE; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-128401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b3-20020a170906708300b00a4a37bdaaa6si5521085ejk.520.2024.04.02.10.07.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 10:07:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S5tUrQAE; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-128401-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 3E2E51F21C03 for ; Tue, 2 Apr 2024 17:07:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70ECF15991B; Tue, 2 Apr 2024 17:07:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="S5tUrQAE" Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 B7AFE1598FF for ; Tue, 2 Apr 2024 17:07:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712077635; cv=none; b=KFVBP4dmIEOGxj1ETxVCV+1Cvh1MdjOQ25XGzCm1F3iPxGUuJzi6RE6z6DD+bgmKGOLAYDgpz1i8W9Ri18hTFVlvYMXDppLgEHmNKnd4VIcPhOlobRhhP3b1JTNlIUHxqXz7Zg2UFRuOeci6r8FsFEkIfNu1e4AxLVFAagUVloM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712077635; c=relaxed/simple; bh=PyZ6nf5pW6oLTbA/Il8yzhinXaig/Ih9w+i/c0+eUKY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=ieoCbKJzw2JL0t8SSYtwKo8tj4eCdbhwVUNeatZh9/RaAjwZIWJzI8MdwnydlYzOj83Mp8odntkv/SpncnJ0/fHnlocfeG7jxuCGB0m9keH3szj5lSLifZsJsYGzxOHKJc2HORpyhUMr0cznA1OAecv8hfkct8m1XnaqKIdI/Ps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=S5tUrQAE; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-515d55ab035so2366188e87.2 for ; Tue, 02 Apr 2024 10:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712077632; x=1712682432; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=t0qX4V5dOuF+AyVy4H1pGmM8NKk2LMBP13hX/86nKyo=; b=S5tUrQAEstzK+1BPU0zWqCcDyeu7Ii/qu7noAkPzPOLaSOXhOVDQeFVK3a8zKlUKJJ DZ2/OvJMonpcAvQBNu2f4RtNCupWMatl1kjAHE2RMjlTjH37UDGmFr+NI4MlDUsYX3OQ mwh+p3enZ0xI8U13jzleMAK9WE5hjiD3fmxtKFjvyk/WJ03nBoVq/QDC4JJ8jMJoBjSE 07Qq4gwzbfPtIMqgt0w/Nt9lN7ftsykIavQ8ik5MiHoFgeQ+BLasA+LBzrckU/36EwVy elvRM3RDR8vag58gwjG2o61/nc/olUp8ziMfZeO74lEBnreJNMON0y33CFcdevTNKZLm 3Pbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712077632; x=1712682432; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=t0qX4V5dOuF+AyVy4H1pGmM8NKk2LMBP13hX/86nKyo=; b=KdmB9lreQtRhtenvUWheaVkL/Qn5umGwzBfr1+oy2p88rotYRg/FURKSg078+yf+c+ ososd8pt7Gbf2ExxHzpSUX9DBzooXePJixSwom/CZCgJtLybzznwhj8+buuFHsDNAFBK DqQLYikzmSI6EKB+aKIbJfxy5+RGL/yTpQjopvOBhvzVTBeUSYXykJW/BXi6gXDmYULq Ww6BhvlP7ecoxUPs6fQdHxQFAOjoOzfIaMKB7Zqi+hTO4gz1DRH8Qrq42pP3yk9I3J6q tZ0h/oUkzsW81x+oA5NsdfBw9ZNmUGtOQpjYdjhzQuVEp7icT1/yf//Nhz+3fSsdcq48 xmhQ== X-Forwarded-Encrypted: i=1; AJvYcCVNqt64odhEQMGdC47pRtGQI7DUBNdpSVVGmxTHNe0k5FFfOk2R2WBrp6SvgRb/zGQTMidPWm7rKPJBW0/+BdgBFFVD1Vxk+rQZwNVQ X-Gm-Message-State: AOJu0YyCKxsGujqg+qDYy5RvTo83xSCq4fIZLcWvJiB2n7ypKQ0fsFfd RqK+ALAsMlu/x/TRBebo3Sif5DaU02d7zvgIEJCIOmDXotbTWBgJqUmbBvwa8gA= X-Received: by 2002:a05:6512:48d:b0:513:cb0a:9632 with SMTP id v13-20020a056512048d00b00513cb0a9632mr7954720lfq.50.1712077631872; Tue, 02 Apr 2024 10:07:11 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id e12-20020ac2546c000000b00515cc53c5b3sm1603486lfn.125.2024.04.02.10.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 10:07:11 -0700 (PDT) From: Dmitry Baryshkov Subject: [PATCH 0/2] soc: qcom: pmic_glink: fix client handling Date: Tue, 02 Apr 2024 20:07:05 +0300 Message-Id: <20240402-pmic-glink-fix-clients-v1-0-885440b81c65@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIADk7DGYC/x2M0QpAQBAAf0X7bOscIr8iD3dnsWHpTlK6f3d5n KaZFwJ5pgBd9oKnmwMfkqDIM3CLkZmQx8Sgla5UpTSeOzucN5YVJ37QbUxyBazHSVljS2qbAlJ 8ekr6H/dDjB+LM5X0aAAAAA== To: Bjorn Andersson , Konrad Dybcio , Neil Armstrong Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=696; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=PyZ6nf5pW6oLTbA/Il8yzhinXaig/Ih9w+i/c0+eUKY=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmDDs+fFGcLjnsZRmpGubABsNWqLwowNjHewOIs Lv8+UhmLJqJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZgw7PgAKCRCLPIo+Aiko 1Xh+B/wI9dzzVg0oUn6+Q8ChrL8hGLKPR2FpU+6PI5kdA/4lqXyZ3avW2+5mutX9TV5flrOwx4A N61bwdeN6qMbRLnMj4fGB1MsFShUeGXqqWvSpiIuTOaOmZbWTRojU0/Nat10amVFROU3ukFdtV3 0zncr3tvsRSV+ow2Nbi1/aTx82WU8e6m6uZpO0U7DrDzxOyNskwPmndwr66xef89K5alini5Ola m3nM22LjFHcWCHXNXGEd8UdNAA/tBgNqpKAgcd4BiuVlYrClU16GY944PabnD439Pp27Goe7g+l sFnOvwZ+h3NoSJNBSkav1CJeaB3/7Bb79cSZwiEWDa0NWRe0 X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Fix two issues with the way the pmic_glink driver handles its clients. First issue is mostly theoretical, while the second issue can easily be reproduced if the drivers are built as modules. Signed-off-by: Dmitry Baryshkov --- Dmitry Baryshkov (2): soc: qcom: pmic_glink: don't traverse clients list without a lock soc: qcom: pmic_glink: notify clients about the current state drivers/soc/qcom/pmic_glink.c | 7 +++++++ 1 file changed, 7 insertions(+) --- base-commit: a6bd6c9333397f5a0e2667d4d82fef8c970108f2 change-id: 20240402-pmic-glink-fix-clients-5df0bab3e871 Best regards, -- Dmitry Baryshkov