From nobody Sun Feb 8 05:23:49 2026 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 548F178F37 for ; Mon, 24 Feb 2025 08:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385642; cv=none; b=TCdjDPcTDDBa3ujo2ehI7RWftlP6Ihod4FpJgJvN0dVktelylng/AgtJ3kIDa0Yy+TLkT6XqCPd5wVxRypleI1msAwQcyNTG64F9W0381aZHR2NhS7Bxysrl+eEJNhePLPmLb7kdThKEmLgSnpkH6HXl/HLSkVziQKuUgcxyxMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385642; c=relaxed/simple; bh=AvLrAR2hqzQ0JNsRuACWtnei7y2xBFOifmlqDERTMbc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RO28peCo9sW16kXA3daQuATSyVEpW51pkYSKT5DfarkgW98U6rDJpcPz5WPqqKmSPTixBgcfMvTaIJQ/1ZCLCFInW4/3FoRykGwaNyJWlAB1xDz7gZYAgzdfLCmgqov5nROXWtEAqBLzXbKEpFTrjVfFO8fw9e1lZH7hQzKJIcE= 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=r4P1yHYy; arc=none smtp.client-ip=209.85.128.46 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="r4P1yHYy" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-439a1e8ba83so38732425e9.3 for ; Mon, 24 Feb 2025 00:27:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740385638; x=1740990438; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Tx8xv35ofByeg3xa/QLRoDfTGHfxK8XYZ3X6DCdp5Pg=; b=r4P1yHYySrYWHN8IT3J+u5NH3GBrwy4MUf9mCNAXSTJ1g+lNp4FvzMUnR3ocLS2rcA G/tdelNra5fkRI/cuQZv/dqt/F6p23Yty06E6mTcVRIoAHAB6pGV2KloJoxGCSLGvBDX OIh7HTlGLmbr9ew3Sc2+GYek51K/MPWsEwwNw0ZlJEC39iQAyosnQN5NzlWd4LKa2rlV EJRct1Fmot7A7pDwR4QybfncvhxZnaF1y6uXjtJEkU+2V9mLDR3r1/txUa3RGwGrh3V7 euOhy8i+dauB6IPmguCltz1b8xUMsLQv5JSim4K5NSBBY+keeOoyJQrz8MMDuyhRR0GJ h9tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740385638; x=1740990438; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tx8xv35ofByeg3xa/QLRoDfTGHfxK8XYZ3X6DCdp5Pg=; b=OsCPuKTFdY48QHp3bSj5j6BGyCyZ+yjrE5F8clhWDzx/ikW8hkQ0M0XQA74VfqmEzG lww6eOCg0tZUBHJW3Ed69S+C6NgbX3Ezi9l5h9NVK/O/P/StjC+VKmmA36t+qhzQkV+4 vGqczSfkh8slawOf9dELx9/F+l9v+oCpiAcO7IkIL3SQrYXN2EA87gKgZJlxQw5ymDfD 09eywZBpbPPOmHX7JOClZLi5NPhcx/0LWtVROwSYeSZDAC/EGKSHgPLuQbOfUbkMzskd Xvou/+pgnELyIKUuFTncwopHSL11jWWPJ3tTkvtgCNb7ejxKIFU991FN9R118IifcDec xnVw== X-Gm-Message-State: AOJu0Yyhz0LiWHhuS8V+a/0RTyICbORkYuDf8v82ZnRmfaCyB8/AvL8r /uZm2qX4fz6rtuNSwUuqP3/pA8RivFFPz+G3w5LdX9sPYX/KaX3jL43byEYU1lU= X-Gm-Gg: ASbGncs9RA/Pl+7ZeFYy297ce68IZn2pSbL4o6ezMh874d7ctK01sWIsYN86A2b3Wva mDdtys+aeHg/iwy5GERIWM0KJXjv+sN9p2pks8eped3x5XJ8c5fN1qeyDVeH0HTuKmGGrdf8M7d jfiJndK/GmPezI+buPEAM8daNMgjOyQQT+mo2iN4OfODMCc5NPRoc23W8Gvb0mPDcjCGz8L7cec bUU/JoIUHmFglBQTOTVL7BrTx2N6xQSHUNcMBQrPdmTy/XLzyKMujJKFfghIa5X2kUzCgBsdXWW J9Ayn/1FBx9pE5BbgPVAOrmAKQv/seXW3QBegrG80SVcuCrWdh59lhiIkn9KR1rks75Pm3Ftpaw 2ICi7VA== X-Google-Smtp-Source: AGHT+IGXaPHgFzfEDoc1M7uOk1At9JP0vGwcN7S7NwZMnE9hpvptsRJ76S6cLQM63Jf8UOK1fr44Og== X-Received: by 2002:a05:600c:4687:b0:439:9aca:3285 with SMTP id 5b1f17b1804b1-439b6ad5cbfmr74734555e9.6.1740385638546; Mon, 24 Feb 2025 00:27:18 -0800 (PST) Received: from ta2.c.googlers.com (169.178.77.34.bc.googleusercontent.com. [34.77.178.169]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-439b02ce428sm101226065e9.5.2025.02.24.00.27.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 00:27:18 -0800 (PST) From: Tudor Ambarus Date: Mon, 24 Feb 2025 08:27:13 +0000 Subject: [PATCH v2 1/6] mailbox: use error ret code of of_parse_phandle_with_args() 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: quoted-printable Message-Id: <20250224-mbox-mutex-v2-1-9d699148fe4e@linaro.org> References: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> In-Reply-To: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> To: Jassi Brar Cc: linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, willmcvicker@google.com, kernel-team@android.com, Tudor Ambarus X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1740385635; l=1202; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=AvLrAR2hqzQ0JNsRuACWtnei7y2xBFOifmlqDERTMbc=; b=AY3TBAQEpiZjXrTWfxERKo9juVaJd14ASBdE4yREGo4s12VcHPjqf90yGVPNVgQe91mOtZWlW iRlAfRzsZGYARbYc8hySbDpYwZdiQQLOW1t3hD43cd1CWJNUqlVa0fZ X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= In case of error, of_parse_phandle_with_args() returns -EINVAL when the passed index is negative, or -ENOENT when the index is for an empty phandle. The mailbox core overwrote the error return code with a less precise -ENODEV. Use the error returned code from of_parse_phandle_with_args(). Signed-off-by: Tudor Ambarus --- drivers/mailbox/mailbox.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index d3d26a2c9895..cb174e788a96 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c @@ -415,11 +415,12 @@ struct mbox_chan *mbox_request_channel(struct mbox_cl= ient *cl, int index) =20 mutex_lock(&con_mutex); =20 - if (of_parse_phandle_with_args(dev->of_node, "mboxes", - "#mbox-cells", index, &spec)) { + ret =3D of_parse_phandle_with_args(dev->of_node, "mboxes", "#mbox-cells", + index, &spec); + if (ret) { dev_dbg(dev, "%s: can't parse \"mboxes\" property\n", __func__); mutex_unlock(&con_mutex); - return ERR_PTR(-ENODEV); + return ERR_PTR(ret); } =20 chan =3D ERR_PTR(-EPROBE_DEFER); --=20 2.48.1.601.g30ceb7b040-goog From nobody Sun Feb 8 05:23:49 2026 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 D59811802AB for ; Mon, 24 Feb 2025 08:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385642; cv=none; b=tX/RT5arXbDdjNskz5B6KR5dQnB8TlRrrt4iXBZdN/jnE4rH09CvLllaXsiFINYSRSMzrIfqVjpnZFYZWRVotnZFafGQvfeUblD5fi5+KiYAlbllWxcJ1N5p93qq7Ts/I5L6CeWtiyKKZlKbk6ES6iOzRpn0KdomecpqFYuePqo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385642; c=relaxed/simple; bh=xvUrT34DHgavDlxpE+bt0d2h24qMxOIe02MZBYiW1GA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=q+nckYIwEXU80H7Hfuz+PtzRdVresJy778xy7APIbxu8APKGK0wT/ImgfK4ObXf/efEMR37skiXT295VLJVtBMiuFFu1ePv4XD/o5SN3Prdrp9svcLauZAv2jDde/Waj1c1k97jbieE6G+QMFjLrz4+U5F343pfDdA2hJOl/R2w= 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=jY/bzeQt; arc=none smtp.client-ip=209.85.128.51 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jY/bzeQt" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4394345e4d5so25895025e9.0 for ; Mon, 24 Feb 2025 00:27:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740385639; x=1740990439; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Chp5vPq1nTfW11iVdpsrRvjO/EdFmTPF24qIJekslIE=; b=jY/bzeQtAcuKhTOXJJ90UnjWM4Epz57SwLhnUYTfQlUCg2jNSqrvmRlxy8xC20RCXS SlI1jWeHuTuJse6+qgfRk7kPiUhfPEIfCSWWnw9qDugWIwRwD/DPwfGQ8RZw5wzR5hLJ 82cT6KBbBqBesGu9to/47XWWYSFsRLKrJZb0mzIFGVeihnD/dPv3WWvSScNRqVuoOsW7 Z8uZwKY2iTBXMylrVrgFDyKMeGuApcHQTOwPbR76vK33GnXcqfB0/OxtL8MZxXk4rcJc HU4m/pPLQHDXpDKEu5zQFMfVy6y5LN9eh+FLSE9N9ADAi5BuYXTEj+cEiJaUTkuUfIHG UekA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740385639; x=1740990439; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Chp5vPq1nTfW11iVdpsrRvjO/EdFmTPF24qIJekslIE=; b=u8UHCCOTYPLlRVe4g97o3fslH6Bd0eHjnwCCilhvn7dI48qlfxSTAu0M+zstr/0CB9 XHJ7CZgBgjfzHs7cwX4KMd0lFCjL6Ujyuuv5bOshENDaDCsESIN2RtEJTElMYpBGaXn/ 5ntH2TSaN1nijBav84D7WviSDklHxUYb62WGs1oHM19QxsSvG/MpMCsuK+Fr8zzTUEFF xitiahur3XFe1Q5pCxlrRkxTpNtnoVvXJIbCQdzJaOC/IzbLGzr1Atw/7imDKhKmdI7h 0sVY+y6mdyVbDnb0s3IKCqr1SkdXutzKf5R8xwvoCffUZwCYHns9q+KLKWchnLd3eOL+ 6KuQ== X-Gm-Message-State: AOJu0YwAe2gofD3tF5QfNqSXsG47ZcZht0ay3y9Ev/i0sYjr9x6a5Q/n 73uPjkPigzA51QpUyYB/GCRXV2NLm6AfRF8qA+lERQS4WiKJ17lCDGTDc4jF51E= X-Gm-Gg: ASbGnctGdYtn9yYTJW7F8W3wSGSYr9gSOYDjO8Aoezd0Urp4CSNr4xWmBh5pN4LPAO4 Drws6rPZvYQhX2HHbMwFLDuNcrE6dTmdsGYog7TyvhfuyS1ar6IlW9flFwm8gI6CJbG5QRW5CW8 XoCnA8bOuo/zDfUsp/GGEUObYvqrIm0HkhTK4kaRyTIh/TsgX8e7CTsX3pnW5Jn6Iozoui+QpwU R1ppO/0YRLBUEGCJ9y5L5pd0YAOIlozqMhbrwrFCH2H3Lvnse7tKamHaqnVMTB5c7R5yOmb/WRS byyOiZiOK8RsLJAXzWi0p8eXSypcTNamUxXTMq0ntn4xD4xGbdPT3RssaEFw7LCQAqf+BadxuIF nY9XHsA== X-Google-Smtp-Source: AGHT+IG3EN7iHOR8WpEUQAJyeqea7sut3+ULdnp4GaccfhrNdXlAf6zE7rfiCj++pETCwtlmJt1W3Q== X-Received: by 2002:a05:600c:4f47:b0:439:8bb3:cf8e with SMTP id 5b1f17b1804b1-439aebc369dmr83266885e9.20.1740385639174; Mon, 24 Feb 2025 00:27:19 -0800 (PST) Received: from ta2.c.googlers.com (169.178.77.34.bc.googleusercontent.com. [34.77.178.169]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-439b02ce428sm101226065e9.5.2025.02.24.00.27.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 00:27:18 -0800 (PST) From: Tudor Ambarus Date: Mon, 24 Feb 2025 08:27:14 +0000 Subject: [PATCH v2 2/6] mailbox: don't protect of_parse_phandle_with_args with con_mutex 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: quoted-printable Message-Id: <20250224-mbox-mutex-v2-2-9d699148fe4e@linaro.org> References: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> In-Reply-To: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> To: Jassi Brar Cc: linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, willmcvicker@google.com, kernel-team@android.com, Tudor Ambarus X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1740385635; l=1087; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=xvUrT34DHgavDlxpE+bt0d2h24qMxOIe02MZBYiW1GA=; b=cU+DxsaQmMMrm7v47So5bWbpGyHdXQjZhTNG7oD2czNK60cAnsahWjjlFA4Fm+cYzvJhDXDeC 4us+SYjP5bhAqP/ad9Se70OXjUjIK6TD5q0zjNtjkju6iVLwSS6dCem X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= There are no concurrency problems if multiple consumers parse the phandle, don't gratuiously protect the parsing with the mutex used for the controllers list. Signed-off-by: Tudor Ambarus --- drivers/mailbox/mailbox.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index cb174e788a96..784b56859a06 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c @@ -413,16 +413,15 @@ struct mbox_chan *mbox_request_channel(struct mbox_cl= ient *cl, int index) return ERR_PTR(-ENODEV); } =20 - mutex_lock(&con_mutex); - ret =3D of_parse_phandle_with_args(dev->of_node, "mboxes", "#mbox-cells", index, &spec); if (ret) { dev_dbg(dev, "%s: can't parse \"mboxes\" property\n", __func__); - mutex_unlock(&con_mutex); return ERR_PTR(ret); } =20 + mutex_lock(&con_mutex); + chan =3D ERR_PTR(-EPROBE_DEFER); list_for_each_entry(mbox, &mbox_cons, node) if (mbox->dev->of_node =3D=3D spec.np) { --=20 2.48.1.601.g30ceb7b040-goog From nobody Sun Feb 8 05:23:49 2026 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 8947B185B76 for ; Mon, 24 Feb 2025 08:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385643; cv=none; b=LrIRYQVd3X99QwMCkQtQacC+jDNhYfws66zvvMNCGibPTbdDoh1cbEOGrTpPEcd+wdEMyhPmRSiIcvINIw8nlPsbZFoalINGPS0oHny6DH31ibT0FiIrDTNIkDeQDLSlz/w1QbMxWT+qepfj437dZ6iRioMBht8x+ycY/rJi3Ms= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385643; c=relaxed/simple; bh=3T0cL+VEf4J5ClWNfYMV045WOy2JwE+1mmFR9rUZZAQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pluLPHYyxOrxxZ57F2xLp/cqKwm3Vie6cI9rbmvESV2K4StdkDFCg8cbY7wjefxr5roHov4Pp/stBSFpaZdsXzecADrYJA0M+hMheBTyPQlvkFJg9OzQeA7hp1EXxUIlwEEu1HTR1VVeJn6vDRx+u+cGUWdG7gZOSAptUF91Ivc= 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=WHyrk0Z2; arc=none smtp.client-ip=209.85.128.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WHyrk0Z2" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-43948021a45so35487835e9.1 for ; Mon, 24 Feb 2025 00:27:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740385640; x=1740990440; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=aYwMXRGhqPJVeCHmiE25B/8hJ2pbS0pkX4B/uzw0Bpo=; b=WHyrk0Z2x598FNKKsW6db/YXYMiaBeUrQVce7sZGtIkf9GHv0aiidCBRB4E5+dZ3iX xFwFjRjjF4UsfPa8/y+d+Mh4RC1eqq5ymKvp5bIDYrzurGPi78GDKGIMhH9WyBj9cz0d gVkkLqOLWw4b6hwhC/1oVBCvHvi7DKBaV73ACV+ejUf2r5rYe55DKPyYIbxFEQbwBeAd rB39jRPDSrAGJ19Z9erIUzkHvhBHePFUQC7TOIVooVIosPYcjWbLMkSCHHpQ1Dr8wejQ /SehGHEFjo35z2HnRwEZqyzYSjiuuYXpzdmD7yHbblavEDcqM2qFSMDvuuoTxCroZry3 Uchg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740385640; x=1740990440; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aYwMXRGhqPJVeCHmiE25B/8hJ2pbS0pkX4B/uzw0Bpo=; b=C//7neXOgJ/2PUz9752lsKGcwesSgO5YWg7uJ9BazKTCi5c0l03ctzWkf7Ulrkm6dw 2++Jm5jJ0s43CEhw96RiwooG+0rmMRO/u8kGLs6bsEUiQdg+w/1lpMjUUlqaVcsVLQ3D veHYFBDa2k4wtWVpa9fDsndfty3UXY59OD4SllMEPgL3GACOj5INYgK/6V5sea1beVSa 7jRW+cKN+xA+G0J7o72eDUcQkYwdjPLveG2VCVouSDpF1fChfh+I2nkRtYkcRKyjhLGp GSecWytgTWUUdCNowmvPtcbl0MOOb5Y9w4+ZTUvPu+RKf390WJVRXpWY37n3ei1rNNMj +Ijg== X-Gm-Message-State: AOJu0Yzdn6ACwFSM5Ns9aRZBk4zZASsunfk2PoyyO7O5eJJBAL480VUy tdp3aKuDMw6I5Kjfv3NaX/8jADzwupD3m7KEDta5CU8HHMgregd1NJs2j01imEk= X-Gm-Gg: ASbGnctH1zRZ2ekNr5bXy8P1l290rORwmpXcW8oEPdgBX70ooJfKYSDWoG95eppagOS 2ZkjbixGFe1pGFKEBIOypJQy9zFJ2YPoyHYLAtRDdhWxX6sK/wkPk2Es66A9oyziAU31NYAdQRr q446G92A/LOGzJ9+ABzy0Lt374wwQKjFNg18ntMyumN235NZBlHyCOvZanwz2AAWS4rgqc1SfIn HSDX2MAuodytSZs3oA6ekqqecTYYkQF+wydFe04v8aBoorIysUfT63ax2rgW9AqqomECFool7Xs cOeUMNeq0tOZIKxM6r1/KBlS0v5Wt6bCQqxoMXO9BiYYoIBLSYyj9pAaBx+1wKJTSF8jOpYoWSk Qp0IGjg== X-Google-Smtp-Source: AGHT+IGZckWvGeOr8E/UDV8u/tU4+iCw1PmLZDRhSbXopZ3hDTSITsUdwNlMxxSGKUNtLevOBuFg4A== X-Received: by 2002:a05:600c:1396:b0:439:6d7c:48fd with SMTP id 5b1f17b1804b1-439ae1d877dmr101582335e9.4.1740385639804; Mon, 24 Feb 2025 00:27:19 -0800 (PST) Received: from ta2.c.googlers.com (169.178.77.34.bc.googleusercontent.com. [34.77.178.169]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-439b02ce428sm101226065e9.5.2025.02.24.00.27.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 00:27:19 -0800 (PST) From: Tudor Ambarus Date: Mon, 24 Feb 2025 08:27:15 +0000 Subject: [PATCH v2 3/6] mailbox: sort headers alphabetically 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: quoted-printable Message-Id: <20250224-mbox-mutex-v2-3-9d699148fe4e@linaro.org> References: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> In-Reply-To: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> To: Jassi Brar Cc: linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, willmcvicker@google.com, kernel-team@android.com, Tudor Ambarus X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1740385635; l=2186; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=3T0cL+VEf4J5ClWNfYMV045WOy2JwE+1mmFR9rUZZAQ=; b=KgwNXE0g+z34fknGI4MqhozA71+p94txtbTEk+oADQviMovI34n2DASTu3qUbsm6SCokbRChp EcXLw250C8LBwJyeCREXTg6MAyRbh13INCZCU4wWn9/wR4OZbK6Xy0P X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= Sorting headers alphabetically helps locating duplicates, and makes it easier to figure out where to insert new headers. Signed-off-by: Tudor Ambarus --- drivers/mailbox/mailbox.c | 14 +++++++------- include/linux/mailbox_client.h | 2 +- include/linux/mailbox_controller.h | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index 784b56859a06..fa3dcec63940 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c @@ -6,18 +6,18 @@ * Author: Jassi Brar */ =20 -#include -#include -#include +#include #include -#include -#include -#include #include -#include +#include +#include #include #include +#include +#include #include +#include +#include =20 #include "mailbox.h" =20 diff --git a/include/linux/mailbox_client.h b/include/linux/mailbox_client.h index 734694912ef7..c6eea9afb943 100644 --- a/include/linux/mailbox_client.h +++ b/include/linux/mailbox_client.h @@ -7,8 +7,8 @@ #ifndef __MAILBOX_CLIENT_H #define __MAILBOX_CLIENT_H =20 -#include #include +#include =20 struct mbox_chan; =20 diff --git a/include/linux/mailbox_controller.h b/include/linux/mailbox_con= troller.h index 6fee33cb52f5..5fb0b65f45a2 100644 --- a/include/linux/mailbox_controller.h +++ b/include/linux/mailbox_controller.h @@ -3,11 +3,11 @@ #ifndef __MAILBOX_CONTROLLER_H #define __MAILBOX_CONTROLLER_H =20 +#include +#include +#include #include #include -#include -#include -#include =20 struct mbox_chan; =20 --=20 2.48.1.601.g30ceb7b040-goog From nobody Sun Feb 8 05:23:49 2026 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 20FC9193435 for ; Mon, 24 Feb 2025 08:27:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385644; cv=none; b=Jn6+mevdT3mokncSPYuYS/39qpbSt+i5OZ2e2WAAa5IpGpXtrwCRoa70X6Kp7MztKjE4w+D4dDWFiEGknaLzRWgFWohRNjyg3rZ2UHurKKM5oW1yKTlsESzy7sMndUmV4fwa/tdla0Hy0VcZ7tfOW6tNrsHxUpPH9ZzKMHDqyRg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385644; c=relaxed/simple; bh=Q3G1+33lrvJYjOe1KYWkvp9kKAHqf4tAYP2F+D1Ce2s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IZ+euIy0I4MydWZBRd1eNyB+6ZkvXQvYxD8RCniOaZmzvFje6SdxUShVnIVjOXqwRN4V3jeQ9oKBYNyMGJ5rSVvM6puVDgiwejoa89MR/xkbKdGs1snAd/xjD8v2ERr7R0r+fkgtrqaboBmPzwpNkRhivOx0uE76kOrANGNumxY= 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=eiR5CFvZ; arc=none smtp.client-ip=209.85.128.46 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eiR5CFvZ" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4399d14334aso35597805e9.0 for ; Mon, 24 Feb 2025 00:27:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740385641; x=1740990441; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=uk396VuDOMsVA8+Zf1OOE0m10yce424MtlVhncgJRbc=; b=eiR5CFvZRqugZ2hJ306pXL7lP/IQgK1oX40u4+t5rnKkkvWBxSeqpCuyIyPT+eoyYY LwK49yFJTgjzxITIrXArSgwHYRtX/f0RgvGW81kIemQoYIl5D0/9jclXA1WGaBgLlCgq p1SnqSU9GWgIuJa5fwGmWwQuyoVYXYUSLA7Z1nFW/3MfmjzG7wJlYJ1/ONAB0b0XGDsC jxOS3GJso+mxZYHROexL8KBapRPY1p9HIRqHWDzGdmaz7pmLEFkluFr0j00+hmhTfyCs uMZeqSuqNThh5U9Bqkbx2X3JZECOwSVxCqFZwUwS+LojC2wGhowiYnLYIogKUiRlgsD7 p94Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740385641; x=1740990441; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uk396VuDOMsVA8+Zf1OOE0m10yce424MtlVhncgJRbc=; b=I2qAzSfl+P+c3QyJOpuqqe7Lrfh593v9twjp+gzxFzkwN6Wg6/kEa8iVKyH+em0zeL wR+1rtcMst9kRYedfxuSNpgM2Xtpv4jjN/U7dJ5JcpQZgvIc5fvP/2HUbOIQOrNUpwRW ycAqSJwmdT+9qKWA/zwQrkJQmJFHQujyt9MRkKy8m0XOgbd5pZMZK7dEIM43faV894YO gPmW3VX+/UE0tdXaj1imglQMAgUNverG8t3RuIpBMUrRHaveiR2mshffxE3SslJ34uJy pEbSuq5/91jwZqZvz1FpCwhA167d5WB+eLJ/3Zyjs49La8kjjBNVrcy52Pf+nRajmFlD zLxQ== X-Gm-Message-State: AOJu0YzjH/5SMAWZx2u5mM62n3tCyromsQXLPVg7gG20KqQvrue9zYEh A5SjugRSQdpk2s4eq8gQFqrVIn9xB8LDWZ7vBA2A2dk21oG0jRVk0ljJdzp/KjpZLOku3tNOmHv bPZ8= X-Gm-Gg: ASbGncsQpXDdufaidgDCsRIMi9VZR6lPYzHca2tOEeocG1QdAoqa5k6dwiZy/rOBlO7 BQp9v91lI3kG1ss5QPUPsEa2pdpEN+hsbTOvSWEtp0WMC/Jku4dcxnsGUig0wUBD2IPqlQhR1/e qymVjd7gDiGfEHPd5JrwgYJAn8MSkcPlpvUvA9pwc6+uoPHRRZmOe40Fxb7KuqSV8cRd47TL+sk yOUE4P6IxCmdTkcZSoZ/QpKn52ULUqlPOlfbv6TA0F8kdx2zuSx7jeG1JYVJ2bk2+LUz1cl0D2x yxO6wwWUyurVDViTomFaDlEBR5keu+J+BG/ikC4yZMNvq55d9k6SlWZKl2hP8A2qqtnL1oOnCiK ra38VBw== X-Google-Smtp-Source: AGHT+IEnRLN9Ixv+JBMwIap6yESxjtcmZunqGmsR9gYImMzQg7bdBY8/6/En1B1LtKHsJVvsiPuCTw== X-Received: by 2002:a05:600c:1396:b0:439:6d7c:48fd with SMTP id 5b1f17b1804b1-439ae1d877dmr101583305e9.4.1740385641454; Mon, 24 Feb 2025 00:27:21 -0800 (PST) Received: from ta2.c.googlers.com (169.178.77.34.bc.googleusercontent.com. [34.77.178.169]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-439b02ce428sm101226065e9.5.2025.02.24.00.27.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 00:27:20 -0800 (PST) From: Tudor Ambarus Date: Mon, 24 Feb 2025 08:27:16 +0000 Subject: [PATCH v2 4/6] mailbox: explicitly include 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: quoted-printable Message-Id: <20250224-mbox-mutex-v2-4-9d699148fe4e@linaro.org> References: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> In-Reply-To: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> To: Jassi Brar Cc: linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, willmcvicker@google.com, kernel-team@android.com, Tudor Ambarus X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1740385635; l=784; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=Q3G1+33lrvJYjOe1KYWkvp9kKAHqf4tAYP2F+D1Ce2s=; b=WmCEx3ps4LjV+7JWLnRXH/r6i5vER0+8ZA/yvKti1u6dprJB/h7kS2fkL6J07pSpqEALnNEQH jyzYE5+1VOZASE4pV+teKr7kHBDw/vq1b2iOeSlZvXopJYo7TX5UtAO X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= Don't rely on those including the header file to already include the needed . Include it in the header file. Signed-off-by: Tudor Ambarus --- drivers/mailbox/mailbox.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mailbox/mailbox.h b/drivers/mailbox/mailbox.h index 046d6d258b32..e1ec4efab693 100644 --- a/drivers/mailbox/mailbox.h +++ b/drivers/mailbox/mailbox.h @@ -3,6 +3,8 @@ #ifndef __MAILBOX_H #define __MAILBOX_H =20 +#include + #define TXDONE_BY_IRQ BIT(0) /* controller has remote RTR irq */ #define TXDONE_BY_POLL BIT(1) /* controller can read status of last TX */ #define TXDONE_BY_ACK BIT(2) /* S/W ACK received by Client ticks the TX */ --=20 2.48.1.601.g30ceb7b040-goog From nobody Sun Feb 8 05:23:49 2026 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 DF7561991BB for ; Mon, 24 Feb 2025 08:27:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385645; cv=none; b=pAEOgnhGP5bG8H59xt+X461/WFCSdDoy0yegnXcVmiMsUN8qAIncRR8mFatPAxwrTCgbYuMUTMfVJCr6TcrwQDFgG/JzUrb1N+mJtdhmedo2YGqwlaPB4fKbuIXLYxYmtN+xsfVmuLbPtWkphJ8C4bcYWprvHv6KcgTEpXYhhbQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385645; c=relaxed/simple; bh=WEwufN0C6Da76f80mjDGNWOq+qPLBT6It6oOTpWRUUA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SEqqDbFuB3Lk8jv/+x2kjdoYS19JfnfDJylZZ+jvRxrY9F7oyJhtO4MjYQKHiTd5uRfhJt1FMCliJBVGONfvMDYyDvwv6dAHKEFyt4XkyhWXIeiERkjW4xpdFmYG7/lUTwh6+Sqf36bK4ivDu7LIAIul7RCWGmf6RMCN5Muqw0A= 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=vylbfStb; arc=none smtp.client-ip=209.85.128.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vylbfStb" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4394345e4d5so25895225e9.0 for ; Mon, 24 Feb 2025 00:27:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740385642; x=1740990442; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=f0mLZ8aDGec3ZA3HBLn8nFBClxMH4vzor4RA7AoG0JY=; b=vylbfStbI8OI+mqrlNHo32MpYVF8IICPAlaKeX4CKMxcNCP82P9DcFmbRkSyYjR0Zf J1WUnnHtgNaMzkxz4XL0bgAuv+FHH41+bOmuUoC3tQ++02ILCYEb1gqemEyicS4uziYr C5WDsW671JmGj3D49Husltj/iEsJtEAGp/1Bl4bE9hSxK+42CRieSbGSZYpbexlO8TbY wAV7rlj0+H+k1QxMDHPvQiNdXAmQyjN4VdUQ+KL3LMTDMkplAnAm86bILT44l/zPVjC6 MyqNG5vi8C+4h1EMAlIJSQ5+TJ5nESAiJkhQsoxLqjmKnkLeQglOQLGcfXxa7ar2JN05 XEQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740385642; x=1740990442; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f0mLZ8aDGec3ZA3HBLn8nFBClxMH4vzor4RA7AoG0JY=; b=Ej2xRgHwwhPtTs96qRfQVqsF1UE7TfXjaNxxSDAnYlgbx/uxkiSIRGYGKJiHkWKbbd jdCPA34wykIh2q34tuXJHCAQVbavtUJbT6ODYtZf2CYcNdo8pZkbc4g9omRuJLaJs9Ab fa6chVlKNNJh1qT+Sv8etsM2+E0XpwOKpaaYA8xFFca1dD1AOCXXV6oCBJEre32jCiW9 CW0HRQENjbsKcFXMOANYj1xRyu+OJu+c+FQXpn3rc/cMfI4ET0i6X91U3Ps4jQe3JDC8 UOQWtALWpDlEPeAvBVpj1Ft0mU+qagUsdlKqzQXdvzyzae4FVOcgc4eFDOT2/ssAMilC FeSQ== X-Gm-Message-State: AOJu0Yz3Hyh3bC6CbbCmbXdHZ7v79/9EvAIsKLIwKgps/jVcK4wuu381 ZmjMoXzfAyQrZw3f5obTgL1GqIxgoRcEJaj34SnhIsgKd6Uwksgt1LR8c2Bx6oA= X-Gm-Gg: ASbGncuOJb5oofIfRZ5WsqLIUR/CK0Fpd9LDxAcqvSgEWi6k2AIqo08OVqRp/0PaiBI hN4b0/ifMDr/yrpGqQ1STT2JTOSDTXp7ecWkqnk3cRGOPnttLpKceKatSZZyCP85bmVUHUYn+Zm BfouA1TS4s3ArNTV5+ldmiqj00W/xgf+LtStX9ARYYgKDpLD6paSd2eFVG18iBvd/I5uX/rI2wF /AHIio6wqD3I44Pr3QoISkUsnuCuIGb4FOVl94Ia9LnzyQpRLgAwxLv+1lhxfHiwJm4PYMWhOEJ zYpIuIgqdkgckWaF5ciRngbuRR87rN6e36+ee84xmfowxEESZGcE/ZxiKiH3BzykULPy8ZSSqd6 ZxaQLwQ== X-Google-Smtp-Source: AGHT+IFKQ1uNeNV3fTYP3rNQfGMp+Cmi02jyOhk7zI1MJlrHb9GT1CNOMyyQrhWu6ADrvprOTDrjsQ== X-Received: by 2002:a05:600c:4f92:b0:439:9377:fa22 with SMTP id 5b1f17b1804b1-439aeb3453dmr96701895e9.18.1740385642236; Mon, 24 Feb 2025 00:27:22 -0800 (PST) Received: from ta2.c.googlers.com (169.178.77.34.bc.googleusercontent.com. [34.77.178.169]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-439b02ce428sm101226065e9.5.2025.02.24.00.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 00:27:21 -0800 (PST) From: Tudor Ambarus Date: Mon, 24 Feb 2025 08:27:17 +0000 Subject: [PATCH v2 5/6] mailbox: remove unused header files 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: quoted-printable Message-Id: <20250224-mbox-mutex-v2-5-9d699148fe4e@linaro.org> References: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> In-Reply-To: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> To: Jassi Brar Cc: linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, willmcvicker@google.com, kernel-team@android.com, Tudor Ambarus X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1740385635; l=872; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=WEwufN0C6Da76f80mjDGNWOq+qPLBT6It6oOTpWRUUA=; b=33BrSzmBZCmO7UuYHSKOFU12ITPgTpI0lBFILdYbaJ+cjpt8t3PAZqCy2+Kg0acahU6SF8RPR pfyneL2ZWw8A/JBrsheGXn6qeYaGUGyynkfbmGmUkcHNI5SATn4s5ey X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= There's nothing used from these header files, remove their inclusion. Signed-off-by: Tudor Ambarus --- drivers/mailbox/mailbox.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index fa3dcec63940..5e3a1d0315f9 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c @@ -6,17 +6,14 @@ * Author: Jassi Brar */ =20 -#include #include #include #include -#include #include #include #include #include #include -#include #include =20 #include "mailbox.h" --=20 2.48.1.601.g30ceb7b040-goog From nobody Sun Feb 8 05:23:49 2026 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.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 1BA741AF0B8 for ; Mon, 24 Feb 2025 08:27:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385646; cv=none; b=Bv0IuzVvV1ABLFI7sY0/k+hibIjbNvfO7NCK6EvBsCtEqdK4YhPcsZoBI6GrQbLgDUcv4wrQsaJFIpkyvw+qDIFfbATzUMptEEFfCiIFTht/BjkH+OletaO4VSlbXPb2u36EBUgnMvyVJjT+AHoEeONjtILgwMLAKew+anPFUic= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740385646; c=relaxed/simple; bh=Gd0AsB4MDJqJrTBiMBmfW5sN6pr/39RogZ00/SCGwSE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KRfRJf9zLqSDyrWPI8IkF0yaTItVhKsO/CASNWOfY3IYXACXc9PmvsikLh6G31iCKsg5Q4lJ5326k/YF43kvkwwPKt0KNm8iLtZkegNtHxFrBmm2TUMMEVqWz2Xg7UvNEnEC8VG4sx4e91ijLrmWdxPGvOYKW3ui2y41YqDj7S4= 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=JZejnnRJ; arc=none smtp.client-ip=209.85.221.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JZejnnRJ" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-38f286b5281so1966372f8f.1 for ; Mon, 24 Feb 2025 00:27:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740385643; x=1740990443; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=MmrEY3WJOxkwx04Dfoi/hh1YEUUv40j0mnJA+Iy5ldw=; b=JZejnnRJU8e8VlTTkKsW5r1Wuk7b3O21i6DwQy/Xr5oYoz+cZMqn5ar/9wp+slZURM MgTGJna7TuZLwgCsBtCGpnrZZOL1iK4PikbUaP12tYAmFILaGUlqDN6rTTLxjxwN7EnM DSNmmiCUa7hYlabJcQC2atOo7It/1kWtaDf0/Gj48DA+rlC8jc8gJmUGQ3H0PvcBCdfE 3SKvmn50N5mjuQaOeuq9LplXT2blVujLAUaK28MBAKuE5mV+g2x8XolIL3qMQ3ioRb1m B6kVGkKMpbo8qD/Wqv6BwtuMFGU3C0u89/Eg0r6ad570kPhw0Hi9RS9Id1TIut+mdJ8g 4EGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740385643; x=1740990443; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MmrEY3WJOxkwx04Dfoi/hh1YEUUv40j0mnJA+Iy5ldw=; b=u8B8xxlWNlTEP1x+5qYIF/Lqxx6bUQ11nwZ7Dgl/OVRZhPKhzr3Z5IrV464mq0BLo3 hQl3iXAPXdRydS3wd/5zvgP1qsaRdH4URUgGD7P0ff1GbNPQTXnaV8V7tNZYKRr2dyoI ilh0gyi2JXGKeTK980VE0hWWCEcbEE0UVX9X/d2nuk9nB1/uVB9Wliw3PB0ogWNj+kIy 4Pv60PGqnDBfdJtYNquZ/1/Uh4znRlyw3s0X6K3Zm/I6cEds9cMxNBKYmA1juDnJttso pE1CWBLbmDjzdWbUEc0+vivxFtXlQm0dT0zxnjrvNGipUeODBtbZGCCqgBGyFghDH5L0 n3fw== X-Gm-Message-State: AOJu0Yz6g9WRZ2rm0PbaGSZ6DjHARRpzKP/TMCs3lLP4ejcNYrlu1Uu6 0jdgFNIxAmYFevUvBqJprWyT/gwMOAl1R6+8j52xrB0HtRJndYsl4gNIl39/6EQ= X-Gm-Gg: ASbGncv40iYNBsCtOeqZzQnZ2IXGRBzLNv3Gdv/cvDcU+oQu8jcikAasHNXrqoQ6fa+ YtKqhb/og0pjnOwTAYHlJeFEqFTIQ+DfTz42CzecVdJpYSHnSVGLXohJXX1qZoU+22Cwxsavhbc UvWD1j5LF+WmM6kgaBSqOPdX1j6e6LXxI6Ne3RGVKitD1oNO5Xe0YBKPbc/imJNB1TIQfX0p88H ITK7Xz61FR/C9XEyJpSfMz8BkacpnTenAUYqIvS0v9mK0hKSS2lfi9/yHjihrbviOEH6EHJvc/o 1EFEGlpkR+uxjytiHSEaRfXPEv+5zimYuRgDICRU+9vV3denUbKtWWf7MYWckfsuBDRtOgz+1dg 4/abQLQ== X-Google-Smtp-Source: AGHT+IEJEKFpeJYvKv06leQw9wcqo2Q70UNfL8ohmFub5mnVp+G5VXXa55IvFzh+hxNQhs1kKIhwoA== X-Received: by 2002:adf:e612:0:b0:38d:de92:adab with SMTP id ffacd0b85a97d-38f707a9c30mr7054960f8f.29.1740385643274; Mon, 24 Feb 2025 00:27:23 -0800 (PST) Received: from ta2.c.googlers.com (169.178.77.34.bc.googleusercontent.com. [34.77.178.169]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-439b02ce428sm101226065e9.5.2025.02.24.00.27.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 00:27:22 -0800 (PST) From: Tudor Ambarus Date: Mon, 24 Feb 2025 08:27:18 +0000 Subject: [PATCH v2 6/6] MAINTAINERS: add mailbox API's tree type and location 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: quoted-printable Message-Id: <20250224-mbox-mutex-v2-6-9d699148fe4e@linaro.org> References: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> In-Reply-To: <20250224-mbox-mutex-v2-0-9d699148fe4e@linaro.org> To: Jassi Brar Cc: linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, willmcvicker@google.com, kernel-team@android.com, Tudor Ambarus X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1740385635; l=688; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=Gd0AsB4MDJqJrTBiMBmfW5sN6pr/39RogZ00/SCGwSE=; b=UV5W9I8qx2LKXZRy+5vNYtrNiE7l5y6zkn9rhEFzJy8kY0k5yeuNtCl2MrtNVOarrhPTnsp1U FiVZqN2UqvED103TzA0mu3bzJ3QMJZhkm5UMvSU4r5yqxicSwmiXQGe X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= Add mailbox API tree type and location. It helps contributors know what's currently queued. Signed-off-by: Tudor Ambarus --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 20163d8a8d90..94f8f59c71e9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13735,6 +13735,7 @@ MAILBOX API M: Jassi Brar L: linux-kernel@vger.kernel.org S: Maintained +T: git git://git.kernel.org/pub/scm/linux/kernel/git/jassibrar/mailbox.git= for-next F: Documentation/devicetree/bindings/mailbox/ F: drivers/mailbox/ F: include/dt-bindings/mailbox/ --=20 2.48.1.601.g30ceb7b040-goog