From nobody Mon Feb 9 13:38:51 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 2AB20194C6A for ; Tue, 28 Jan 2025 09:16:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738055766; cv=none; b=Gv1tF0L34UG1/+67iow7gw7tPudD46+cvdJNhpcNyoQPQChSkIiHMatUrA1PKt1hHlmGr29Tggp6QIrzXcbKm7vhkXnPBXdJUW9mY66sFhBPp4WsBXlBuzRIVM6gyv2w84McuogwGhpDJJXBzCl5NkWWc1nsN8cDYzdNYArn78k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738055766; c=relaxed/simple; bh=Cvr4uQcWG+OFwSlzG7QQgXzDWMzHG8QrA4n3shGfTDM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SFZHv0cnN3MS2b7NilFLDfbyQ7bfmpeaJqN8PlRcyp0ch0bGhmvIQ8ZZeHS0aKCawSMDEkFWnw8QODTDLVq5sq+Z0POvsyb7xe+EgjdaYn9XzS/Kqpt7dvkc9TaqdEQpV4Hz4naJ8m/r0XUxQfLQb9ufuHCRebkfF+U8O+beawc= 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=VJ0ZIIau; arc=none smtp.client-ip=209.85.128.49 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="VJ0ZIIau" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-436341f575fso58857975e9.1 for ; Tue, 28 Jan 2025 01:16:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738055762; x=1738660562; 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=DCBBhRfrf1i+0amWmGIPe+VXXa83PVcgdkafwK7ozwg=; b=VJ0ZIIauNEox9j91C6h604JHiSAVv00dDO5dNJLJsK+M07CS+qdHpJe4fCXy5Th8ih PzjXCNF5kSZV0kWLpLc5LYl9NFPDoAyAMyDJYBMnkcaKXBNNZM60YT4/UtyTQhJcQbT3 e4XTr0fuCIZZhqQrsCJTJb9J8AtvFr1mNXBhocnanf0BFyN84QyvCG5Hij1PAlsKnwFQ HM5L4F/U2VuNIhlQdKvCurfd/ziCR8Xh+WRYdFXZhvlboP6U724YaNjBMlHuGtvqhPKz LKFIvRJ4jDEbM4x85/1igSq9JREc2iW4mPbjcZxJvJW+ijfusM1HGfqxh9erEk5XePGl 2R8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738055762; x=1738660562; 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=DCBBhRfrf1i+0amWmGIPe+VXXa83PVcgdkafwK7ozwg=; b=rFYikrGbKTQEorLDjTdYrZveHPnH0njeirX7Su72U4hcUw96W/bzQpXrxwNs1gwjqm p7OOQoNF/Sf9VXbY5joxtD/hAdqnubHVhdZlNwljnYpFd3W3Y11UZdJ+vK7L5WGOARJw iiVz7SIIOFTLM4iFyHCXbzvhIRy07I58uWEA80Axsi0UGf6G+VP8UPpKn0F5mq2qSpNg icaSmVE4CAJUXq6ko1VEYqc3vL4gee8UGWUsUdY+Oc7xvSRKpdMKji/J8IHFblFxdPzJ Tr6vupjUg0mFrBORYFcyl1oVcmS1Hv3tp6zvav/fJFfidFoA5xF3PxCkrFBnqc+3mGzE aBqQ== X-Gm-Message-State: AOJu0Yyk7akZ9/S9668EZQVgCcBb/FOfEscisqeEEyg4/Ncw+isPYMml 34yjTWOZOEVnOuVXaMG05nhK9QaZ6KXrSzMdGyR8iuNddYZjkzn7qfvSQnojsUyTZwqdfgbPrmr D X-Gm-Gg: ASbGncuWvOOSulKXjRpQwbxMIpEfzdXMFbLJH8kYoCkCH69ItUBBmDIknQLj/wlEj36 KkRgrUt5T1zYlRrloWQVeksIfzqbuo9tubURL/ymtadriLD2lYvPd5/yy8SC0Zuj042BDz69DqJ LIyeXcUakIFLbZ2tHBgKnhXWs3KryH/r9/JgaVDJptwcDklJIZVnAIJTlX5OcpxIftviRTkSuSG sPOXjU/uMJdkvgkNqrQdXkyr8/zAUxuLQ5lZfe0ox0rQvoLxHpptVmMWPWQVgPXzwCpemQxIOQx sQAJY+yHFwr68GLkBBIwMhoryUBS1s1aZdTLdXwt5mP8EE1cdgWLMMASv37cd2lh2it1GkQ= X-Google-Smtp-Source: AGHT+IGz32dqlyb4iPhToExu/VkawQd8PiO3Di/Rg3Bso/rDoVM/9MjugQ23vA0YfQKBDwIwFTIPKA== X-Received: by 2002:a05:600c:524f:b0:436:1baa:de1c with SMTP id 5b1f17b1804b1-438913e6f88mr416304205e9.13.1738055762135; Tue, 28 Jan 2025 01:16:02 -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-438bd54c0d1sm164577105e9.26.2025.01.28.01.16.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2025 01:16:01 -0800 (PST) From: Tudor Ambarus Date: Tue, 28 Jan 2025 09:15:46 +0000 Subject: [PATCH 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: <20250128-mbox-mutex-v1-1-1f0169ca5f61@linaro.org> References: <20250128-mbox-mutex-v1-0-1f0169ca5f61@linaro.org> In-Reply-To: <20250128-mbox-mutex-v1-0-1f0169ca5f61@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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1738055760; l=1202; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=Cvr4uQcWG+OFwSlzG7QQgXzDWMzHG8QrA4n3shGfTDM=; b=hsR2KaoHFJ+0PmnYrbokQGCPwAh83LDa7Mrtb0xKzeahMvUCA0SeZe1+KGkSYn1NJTLqvRRcV NiyBi2ednccBZWd3TrL1sdc6b3sUJD60gjKT9+o79WZ+Q2vN1c6tkoP 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.262.g85cc9f2d1e-goog From nobody Mon Feb 9 13:38:51 2026 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 228941B0420 for ; Tue, 28 Jan 2025 09:16:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738055766; cv=none; b=S37A9RsIHdCZtFohqTqeIhTd1BDGZU3bpkmPzuy29GF9hjoCSG13ubEtVFgM29XSM1mbdkjOvp2RLkndnxy5Dgj88R6BcrRIPbVd38v1HbHC1ff8xsn97588K3k8YI6D9y5X3FrZn41iVvT5UhGt/1PMQlhEVjjQakPsn47jIMU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738055766; c=relaxed/simple; bh=KHuLhnsJ6iK5XJ/TTyqbBRYPa91qqyTx+6ocjjKrTQA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=s3xIAjDK0qhUk0S3+MNtve4ACJFPgLWMQCqLFp7bWjowrYCogqe9f2of8zSWdrQ+lTLPHeBacRNzEoEr+HsOz9dgSGsWOdoJlqLxoK0XskmFnU8WLsF5w9o9Ri6ue7qzl1Qz6yftFAmcCgKu8BP0cGeWQUb0NXlF1HUrr2YbtzE= 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=haaw/39t; arc=none smtp.client-ip=209.85.128.53 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="haaw/39t" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4364a37a1d7so55019715e9.3 for ; Tue, 28 Jan 2025 01:16:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738055763; x=1738660563; 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=NhODhIsp5sNQhrgscGJrDmO2sd4lDe7ta/1PU/kWbXM=; b=haaw/39t7uhMC3facVk2O8/HJ7R5oi2cz/Lo/ioTe5TMUT9xLmn2TdwHGBrrteL00D kR3EdJAaJHPtXbJr90UD2XNpm3ACK8SKQRKj8FyLVV6LQnvxbktmfwHk/0Zw/PQ+/tA0 bQGSNS2/NSX0kOLeRl/5Q3XMAEozKwK2aMDnZ4Ro3ypfHdG/R9UU/1bibvtjCCg66E1R 9jfSSvriBgqDddl5TsTNzCTtCsawBX9H6tYFbGA0ow9y94CMynd10PiU3Xj020Plf7RE VVOxF8ATY9luvbCmHlK1RLgshGQsv1h7syb5vcEJ0QEj5EbYn8nixAOrq2bRO8bwGZds jHZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738055763; x=1738660563; 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=NhODhIsp5sNQhrgscGJrDmO2sd4lDe7ta/1PU/kWbXM=; b=MJb5VSXjNyaSseqc32Hd5zNF9QMEKayBcFLw+WwDj3aRKgAEghjhCJ5Fj8pTCZBqCP n2X8FhtXwpnDsuFMykh3b2uWWcyZkwG1Uzks54Be9FsplDDcrXsDIYyInuLTkbI4M52J o25z+PGQGjcc/pZ+nzEUWrWDxKYvC/W+AVQJPXBhi8AqhLhmBrhmCtpe7QpWM+3DQQtS eskh47r3U2FFz1lEgXrjRBnXstnvkWWlfNMz5GscPFCqDJZfqLk8RIXvyeNR/q5InBCl zOfjekr5WNtE4lgsc9UrQvLxLnUwZzlWaQJs7GonYhrueZPWHi3iVlonTlal8nmHzNTv 1mjw== X-Gm-Message-State: AOJu0Yx/8elJQfkIcDiBIhmSEcFWIw7y/pl0L3x1rwvkO/d3wtWkLoy7 HrqOg5f7M60BhFVl4LDOv25Ad5u18+ktlJZTvrkm5UdUjLZLRImjcWvtVyey3kf/NvW4lSdgsBb / X-Gm-Gg: ASbGnctPLJRRub7zP4LCHnhg4/4tjTwIWLMcphyLMUZ/c0rO35i+d76lw7iMbJQ28aq WYM+jvm9Ylsg23TswID55t1hwbV0VDnE/hFE4ExwN2rupY8QbIJn50sDFyNAb/nKOAUDLdHtpew 47DJbCQEfcllDWjnCTl8h92pMtes/UlGlNRGgKAdaDGJ7AumGN1UqfI8I7XSODOhDSSiAKql+kW f1dnhsnU1pdvFu82D897kYZyqyg+GgZkC6fJ8ysxr9v+yEnRa/7FARfSwsjiRynd4yNv0BunNM5 uIND7tT+jaqwUMlTDopFjwhEPcfkOuzCQ013GEokGX8Gu+r/qsw6d3CBPFcIdvK1aLztpOU= X-Google-Smtp-Source: AGHT+IE/Khj+EU92WPLCRPaqKiq6rtMNgKTFoj2DcPlAzRLResjeKksaOejp3zs5CJvqFQ5tet16CA== X-Received: by 2002:a05:600c:1f14:b0:434:f623:a004 with SMTP id 5b1f17b1804b1-438913e391fmr463401725e9.16.1738055762962; Tue, 28 Jan 2025 01:16:02 -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-438bd54c0d1sm164577105e9.26.2025.01.28.01.16.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2025 01:16:02 -0800 (PST) From: Tudor Ambarus Date: Tue, 28 Jan 2025 09:15:47 +0000 Subject: [PATCH 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: <20250128-mbox-mutex-v1-2-1f0169ca5f61@linaro.org> References: <20250128-mbox-mutex-v1-0-1f0169ca5f61@linaro.org> In-Reply-To: <20250128-mbox-mutex-v1-0-1f0169ca5f61@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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1738055760; l=1087; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=KHuLhnsJ6iK5XJ/TTyqbBRYPa91qqyTx+6ocjjKrTQA=; b=frmym2dKzE0HlBcUIvivrylcKXkV22mT7eIzMr9Ghh8PtpxGM0qakC20Gok33siriO9YbyvUt wS/ZClY/WZfB+i/ivbJbAxeMCuhDeww6YiMDhDwsQbBc671qzTbQ0q9 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.262.g85cc9f2d1e-goog From nobody Mon Feb 9 13:38:51 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 C62881DE4FF for ; Tue, 28 Jan 2025 09:16:05 +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=1738055767; cv=none; b=X0PUaeE+grJ8jZCQFrny9IM5Wpy5JwAF9lL6SREea/iXHSa1dIOpP0cftIcQ4nFr3RkEI+SnLaGoXnIJvz317osdFoqZdt+MJWgW+3uO33nE6c4AgjcLHF3uHMD1YWljBRJJwdcF2w1DRF0EbI7wD+QaYOSyXETygquTDrl2BGk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738055767; c=relaxed/simple; bh=lYgTr05n0wjzLTnXwU9L0c3clQSlq8DIxGGbGbDSbXI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qxr0lM8MBZJWSL4muOtyweiot3AqXcp+u+lPHXGYOtIiOi400aoQ/zPksGYmGLrSM/39jpqJ9m70glhUiOvTkt/2Q/ZIgXPF4wQfKTOD2SHMjC+21yN+11twi3xsDBqPsRT79VPFpfeleVCQzOfWtVJma+bbJZrteZ+C8xcsxvA= 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=qa4CsMSo; 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="qa4CsMSo" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4361815b96cso35715405e9.1 for ; Tue, 28 Jan 2025 01:16:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738055763; x=1738660563; 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=bfoFpwN8w7BdBhUW1AlsXFME6YIPvzB4mMHhPkEMbJs=; b=qa4CsMSoOgxo1omwxwizCSfe/B9FVUrrjAlLRZkoUasenwNU1++ymzYr36GEAj/22J Bj9LuSZzZVmUqzfQ2g5EBFqrf6WboNNa3ERIg14VyxkR4hYt2YGx2K5yO7TgWCKfclci fR1xw99I1bfZA4/Y2a9XnngJl2Pv3Z0lvnxKQuxVX79rL/wsWaPagE9WLBQQ7/XkcQb7 ohLhSbcMmpLh/U1f/Ap796/634iGyxQNuDSi+JtzXiuXOb0+d5I9ZIdvolwE9+Ztz+y+ xCEy2IGfvc+d3RkRQXATaqJZCRqA7mP4Bf8+yXMw53sK9bjeIapJOK1l/ymF7RoAMNEr 3waw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738055763; x=1738660563; 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=bfoFpwN8w7BdBhUW1AlsXFME6YIPvzB4mMHhPkEMbJs=; b=qJ7prPOUvvRtb80Z+aG0yc585dyeT5pxd7pwm9D7tMQ/L1ZBzUFT0938VxYuNJiu/1 TGNYpBGHbA8Z+Nicbhq0qeaJYlCVNW5MaXArkvTvqyyDSCqOf1TivMQeGg+mPygig+Up Q4FxX0L8VNwOLPff1q/lT9uTkBK0ACXt8HhTDUmrrvV215h4POHcHZtGRmch+/R4LAHS haHb944WL7yjZgumJQTf7TKAe/gegkFOxfmZoMrrxpwxJY+kcyae0VDjg35o19Dht4uq C5/lMyxHjmJ60B6OejAuDxJlbewsVHv+KDbQEMJB6hKFmU7K+ggujfJl8O4GcLgIyCrc C9Lg== X-Gm-Message-State: AOJu0Yzu6eVkwuKANhFHhA8eewXH5kPHnEDHUWz3J1POCFa6zfO9P+ym 1NgiRkdWy3pBEN9Qb4OUIDeo0OAb/5XIQ98NHZGPYjhQ3WDhuu27jirLFk/tP00oxXL42Xn2DIs / X-Gm-Gg: ASbGnct/ANgsA6/IWnil34siHCGk30VPW8uTdm3ZaiZgaouUQVQqbI9ZaTAj9dyvV/r pNZ5Jtmq/YifTcScssNtmM1TZNTDUIQP5lwGu1gVJq8aoCZ3mAaVKiT58UZde617gGX3jUac57g e11QoPu346/46bmTHlJjfabgpiMZ7jAYV7F7BPppYleI+bWMzUIX5vuA+UINRI4wn8dgO+gF3s2 CEPO6p//29giB4IEO+9f/70McI7S2cgh0/JLwTm0uQzt8tEBDSrFXbiGsK5WqZd2put6pAGzeht V3/RAYykG5UJlYfVSujsOQV8/OuF6GeHBbujKVUFJcn+fhjG4aqflFmCK4LjZWqqhfYvOwM= X-Google-Smtp-Source: AGHT+IEjFhmLh+WPjw7YMr995ctsjAEo2whLiadVMol1XJbCiV9Y1usLLOC7bfWZ+HyLFX78+tWbwA== X-Received: by 2002:a05:600c:1c93:b0:42a:a6d2:3270 with SMTP id 5b1f17b1804b1-43891426ebcmr327902655e9.21.1738055763575; Tue, 28 Jan 2025 01:16:03 -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-438bd54c0d1sm164577105e9.26.2025.01.28.01.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2025 01:16:03 -0800 (PST) From: Tudor Ambarus Date: Tue, 28 Jan 2025 09:15:48 +0000 Subject: [PATCH 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: <20250128-mbox-mutex-v1-3-1f0169ca5f61@linaro.org> References: <20250128-mbox-mutex-v1-0-1f0169ca5f61@linaro.org> In-Reply-To: <20250128-mbox-mutex-v1-0-1f0169ca5f61@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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1738055760; l=2186; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=lYgTr05n0wjzLTnXwU9L0c3clQSlq8DIxGGbGbDSbXI=; b=wNAhIDwgfANCPj3o7LHpO0+ZzWIYOzDQ1b07viR8WEf6miVoRYbPndnG9Th9UqmiQqi+Dmqip rWhsmlONdxqBgpSWFQ6zLyTVBevOz8KrhYoBiCETaRUEARr1HkY3Wev 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.262.g85cc9f2d1e-goog From nobody Mon Feb 9 13:38:51 2026 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 8921C1DF731 for ; Tue, 28 Jan 2025 09:16:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738055768; cv=none; b=sKnkGiwSsRKaygD+pf/rMD3pn5P6sMiaHd716xK0qC947Q4Ocx7FYrj1/vKhvjvVlmBN7Cn3XpT1P6knvj2sYExj2NENTZoXsBsOi4n6FFhj+pfv48rAPeocCL4Ihjrd0LI+OxQT3svopI90gzVCRn62ayKts2tQr3wtDx3DA88= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738055768; c=relaxed/simple; bh=GV+aZ6yqbZMMfgFDbigRLSInYAbf6GH8b6cHBRPgP+s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=M2lt7hJOBRJYsCfO9iszF4yOQL10kBsrPV2/cl4PjnBi0eXU40Z0+S0wsAZfoL39BW1iYNW5I/s0ev+tULV39kUusi7HZSRU/3Wc3tSGl5xSKU21ee4cRIbpenLTkdnlyjw/4O0BbI4f00+OyQiG67G+oQUmRgGEGe2fWZq3H4Q= 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=SbsnYowl; arc=none smtp.client-ip=209.85.128.47 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="SbsnYowl" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4363dc916ceso39929855e9.0 for ; Tue, 28 Jan 2025 01:16:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738055764; x=1738660564; 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=MfvTOlbsO9KxAqcLO4jODUluwEzI+k4HBU1fifJbNG0=; b=SbsnYowlZku8cLjya4GOXnsi6ZdzEx23RbNJ2+WQLJbtz9qahlkySOe3IVCFV77x0j GJyLUFa7k+Cs9zfydNkTv7TTgwvX0QAEwYAR9Kq6nunebrRHAKFTs8bywgU/PSITrleH 7OFcErlOfOPuxrWlHzOX/diztfcGqV2BM4XGeU5dvcV26ayLv/i9bIlgn29fGN8tJU2K fE+UgWYTs5HSNsx3swmc+SS2N7A5wXUpS2AI+fPz2CEOMSPmxW18XxPLNG/kDlQLzFhl J6Ml78QiL//dmz5Kfis8SY9ZqkzhnB5+fIH+QH02TAYuXvsRcj4FFdzWbTpq4aLz0sMa jtEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738055764; x=1738660564; 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=MfvTOlbsO9KxAqcLO4jODUluwEzI+k4HBU1fifJbNG0=; b=QbmA4IiHHOfkhM8gWHIvcT1zxSNirv24x0TyhLimY0SpFSUDjP+DDNSGZK48LxnzF3 hWdF67SyXlqRwFXme7hPDxom52VZI/2iW6D6mckmh08SCMC99XIIS+6evKjj8ELBdfXG WNhzNtLFm8ZhuT/o5x3PcqwiK2uHNTbiI5BHq52onaDc8d1gw2HcPWjaRDdlwPa3dI+7 ItVfGQlrL4DIAHs3K9LYwk5uH4SSlm+NzBl009aIom82ZEYJvzqpttknGOIUp6COkfyF zK1jaiG+RUjVbtPTy7yWcDyUW+d4AbymG/y+WEPqLu6Q3IsqOLlTASLY0ZWBBfuSy4ta TlOw== X-Gm-Message-State: AOJu0Yz89UN1PVpmSVd5OcUxP85KDi0Eltya5a/01oxZwjjSEaFlhPkd xpfA1od+QyMkdVLFE2rPZZXwuQLLh37G9iHXxNb0QXy/SDtF/f1iv/IDcfAt53j8ZKG8fSZyafc Lk/0= X-Gm-Gg: ASbGncueErOn2kO2TjOb/ASKecpRKlDUAqz0C5IPxyiYxp4m4j5UhidFTCuDAiDKou0 FsQAmS3WLLIdFjPH7RKZgppauXwDAIMzmHxvFcQ46SwygGSpPzp8YEi+DlZ0J98fWvVOIt1GvRj kaQ5kGGHdSoK328PdtT/YDbVvmGkkB0obodOAMDsvjJIVMSN4VK4769cW55iiHIw3WP2zV4q3vt 8kBnnQ9fQzANbcBoA8oM83yleYEAJB7K1DoZYAbydIFFkThgb+km/vlTiaFpo+25fvRQGDxiflk BrLc5/0xuQMKZpp7si0NKegEradDw4jmkP1R1Z8q7bLVeJtcUFHbCc6HUmq0zJoTL67BRW0= X-Google-Smtp-Source: AGHT+IGo9gDzfs1c2/lx3bbXxdR0M95yPQosA78HEuTN0EFw3H6lhDwjFlyXmbgdjZH3/sH4lBmILA== X-Received: by 2002:a05:600c:a012:b0:434:9e17:190c with SMTP id 5b1f17b1804b1-438d57c2f7emr18511465e9.0.1738055764210; Tue, 28 Jan 2025 01:16:04 -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-438bd54c0d1sm164577105e9.26.2025.01.28.01.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2025 01:16:03 -0800 (PST) From: Tudor Ambarus Date: Tue, 28 Jan 2025 09:15:49 +0000 Subject: [PATCH 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: <20250128-mbox-mutex-v1-4-1f0169ca5f61@linaro.org> References: <20250128-mbox-mutex-v1-0-1f0169ca5f61@linaro.org> In-Reply-To: <20250128-mbox-mutex-v1-0-1f0169ca5f61@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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1738055760; l=784; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=GV+aZ6yqbZMMfgFDbigRLSInYAbf6GH8b6cHBRPgP+s=; b=ujZAvnabNBCWoyRUrwdd1TKhtJaMD/f/T20xtij5YakK9Q+PLBLhv3WG5aigz1nATkx8SWttG OLWytrbC3BuDZ6gUDPxWsewpoeDgJPgJ0QkWgKsZo1TTZQKthzw7KLL 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.262.g85cc9f2d1e-goog From nobody Mon Feb 9 13:38:51 2026 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 DF5F81DF985 for ; Tue, 28 Jan 2025 09:16:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738055768; cv=none; b=TQ8aIDuKtmTVScAe4SAY45qOIRluNrrRLVHqSxzc5WQOIYO6m/8svJ9xplw997lpJwnCYgCbbMWCkrLh2fj+EWanNLvFaYA7ZLVv9/je02JA+5I0XWXfqdJgpRHvVksXUfipWVPec8/gt3nLsJ+XuH53O80R3PJvXF0Wf5rRBI0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738055768; c=relaxed/simple; bh=ZQ2fT89U2PgFj7ElxqqzrgufPFVVzpfQNZQZLDe4+YY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hQ0gu4SwUEd7/XO6Diu3iaEqZlrBhpPuJd7US3YMzR1J+h6xMmAB5zP7Prdcau+8fTTob5zNJiDRuFol5g5q9grjO6K1RguC2/FBLL4TBe2p2TnBHQ5uBx1RIIbeDKDRiKB5oQgeP3iL5xnyOAYqv2EVJtBJ+JZ2lKPZCjzDR6I= 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=xaT4eug9; arc=none smtp.client-ip=209.85.128.42 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="xaT4eug9" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-435f8f29f8aso37734965e9.2 for ; Tue, 28 Jan 2025 01:16:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738055765; x=1738660565; 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=Ga4pb1qZ8RbFeOjra+ZtpnT0jnT0yF0ZydpY9DvHNWI=; b=xaT4eug9c6y47iywkbhyHHXlU6UUrLUgUGV06sQleC3pUmHWw/6+LvcISOyMaEiU+Y 6wCzEvvLd5hbh3MmPABSq45qQmjudJfaFuz87RN/XPVtC77RVY0mU4/FmwKrBnS6AQor RMZeVe+bw0ImChLGJRXfD7gGi6b1g2JRH2cPt4aHqlSXz5ScRmdNzYlRUMPpy5+hu1oT /PDtegBYRnK5BUZBc0/HjZitNSFe2E6q4FfnPDg2xsTWnU3FY0xtxMroYcRT/f7qjSXO KYO0aqt26W/gioOzYpLRo8jvu5XapAkHoEJbepI51qa5KELFXhA3heWhAG3yeuW+NbOm g3nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738055765; x=1738660565; 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=Ga4pb1qZ8RbFeOjra+ZtpnT0jnT0yF0ZydpY9DvHNWI=; b=CX3Ox+HdlJxAmNKLn96HN7JlFOKMs7gfAg4Vep284qf30JXg1Y02P3/pU1Ad4xtJNG sQl/ldATQ+7xBKXOreqjhhOEDJTZ+NfF+/nhU+I0flP+tcAgyOHv8KnS8A6Er9uJgkxD +NrLhyUWy89rPbNT1Nv2xDijecyYDEOy00m6Am69JFa22F3VwKMCE9yZKykUfVMzZao4 6b07qIrd+CDLjQd0OrSiZG64nefI5B+5M8qXUKteLriikn/cm+28XYwcljTx+KNgr9o9 ZklB/jrEsS/jkcc2FIOtUIiNqfWKhkb6IcFtze/anOzlyGbC9Ll9qydEdOSgBWwGyrTt bnEA== X-Gm-Message-State: AOJu0YzbBlU8LLdP0diFCsvzYwuD86JAI9/1GG6EgbcAmZGCasqZFfIa peYcOKamGdDQZgnRDnPtRf3gFRnqxNghSZ3a2O5a1VONKjJRnyVC+T1nIm7FaS34ycTN6gBs83h YHOM= X-Gm-Gg: ASbGncv/tbbXcm/FcR2zrdaRU9mYq5HNGtQx5jWAk1+ow/g5kq0az95mGnLwOSiOmRT EeFKugD0i3hE5vL3W+viiNt1M5BdKm1AgMf385b9lAqDw/PGITF59DAItnCg2LW182hAq+b+euX 5MMCDbxAVyVKGc8u613WY6l848B3jpU69VSkYBn/UdmwtftvFLXmpwvpfMmOW8IwPWUVlSVYrGP YnrQxFBWPsTZfYi7eGbA3RvNFSg1/hJJxTTIZ1m6xqTRr5S92VJnGHLstq8f7sxsukj807/LWzV mGT8dk5V4SokOT8Fg6SBOHWM5/4gBRzznqY1ba8mwk2+iOF3g6xIP0E2a15HM1/MUpi7BtA= X-Google-Smtp-Source: AGHT+IFGMlnUZG26lzYyqAidXzYne526FAOenXOLOab/yrUK3VeZief+Z/0CXOiVP0/J4lo6bRKHeg== X-Received: by 2002:a05:600c:1f19:b0:434:a1d3:a30f with SMTP id 5b1f17b1804b1-438b9cc072emr193655045e9.6.1738055764813; Tue, 28 Jan 2025 01:16:04 -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-438bd54c0d1sm164577105e9.26.2025.01.28.01.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2025 01:16:04 -0800 (PST) From: Tudor Ambarus Date: Tue, 28 Jan 2025 09:15:50 +0000 Subject: [PATCH 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: <20250128-mbox-mutex-v1-5-1f0169ca5f61@linaro.org> References: <20250128-mbox-mutex-v1-0-1f0169ca5f61@linaro.org> In-Reply-To: <20250128-mbox-mutex-v1-0-1f0169ca5f61@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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1738055760; l=872; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=ZQ2fT89U2PgFj7ElxqqzrgufPFVVzpfQNZQZLDe4+YY=; b=sJfpM/QBOQksM4pCM2N/KRujZ7b2e7VZU1Jq+23lAk3+YW4OpTJYsq+JCOykwqSp61DUVbAU4 FORdBNOBZBOC2VFWo1uxYlo9lZ2yHXkQxbL7miDlhkG/vqNzZ+hPIBm 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.262.g85cc9f2d1e-goog From nobody Mon Feb 9 13:38:51 2026 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 B39BF1DFE22 for ; Tue, 28 Jan 2025 09:16:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738055769; cv=none; b=mLt9Puh+ZSKsvPiPb9ezjXYNXkPYbWYb5m+M6wzD1g+CFnf3c7vVeMtPT/Rmpmwxotv1jvq26AzIR5K0auUVlB16aQW3Po3thaY+tE6/o/m8qFPEI0TFDVKnj9rOk2FwW4joDG5gxO7fBB/toqJ7wIGvTa03nOgXrAuredW48oU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738055769; c=relaxed/simple; bh=nqLFHSLJGy17rx/C1GH2M8l41jtpKmkJbZ3r+2kGERU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cOu3Dno5A4RJTy/BXA48OcaRY/YWvx4Mp0N60TP1S5jAR7SWSjaNsTKN4CSvQ5ppTAFbSBoCh2AtGPlR3lo2LN4Z0APlHsT7bzvHThOjTwE+EmIdbH9ikYwyVQsXJ1RuUROwkOVTVmZT2yV8Pn9U31+wGKguLeXvPHnywr9nd9I= 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=oLt3sIBC; arc=none smtp.client-ip=209.85.128.54 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="oLt3sIBC" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-437a92d7b96so55040555e9.2 for ; Tue, 28 Jan 2025 01:16:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738055766; x=1738660566; 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=2AhP5IlD7VTFeBVlv488f3+9gHqXTvT8FJcr1eImROI=; b=oLt3sIBCkTeCESYzKfPHOFlXi7binSlusCwcf6saClxEIKj+rKgVpNL5HrwlXywpFQ Jk1dxj/x0Djyb79MlJAbGllrwRsC64cJNlNNAKKL2+iOCuS/KwqIBimcUemXuBNJzMlu DjyaCXPMrwYlWP5SoB8Kfonnni/7Btcnmr/PWRzxNB/JFjPZCApXWmDR17UJ0eHRj4Jb Zep8HdZrwPONHGz5K422ddHpWMLq3G/ghO0xp6R6M3zY5R+be4k4KvktmD8Vg9PR8u5t ZkmuPN6N8D8efp727Zn1iHQRZgPVo6Px7O89+VaM4KEfP1SK6vPgvgl3/xaFnJBKyQvf zy2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738055766; x=1738660566; 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=2AhP5IlD7VTFeBVlv488f3+9gHqXTvT8FJcr1eImROI=; b=j+Jk2+nOwxoo76Fk1yfoB5K16wNFqNqQekxxaEPrkVfrz+dLvj6gq4NyxqX1hn2Ifl WlEfbsC9lOfchHpb2/fOGiPEN+5hQVU7ZfwTwimuHfmddcly62u5ynMI9XEVmFvWBf5k sRyJRV0bSVw0jNSGgWKVR4MM1NOXa/SVosyQh6PTrZXnDPcxFJvAXTwRqE6ciawIQq4Q 3bu+MbecuYZxGMFvPYJdVskhI73i44Z8a4TBossgy1heUW2v0wVJNYPjzo878i3vXqOB zbrValF7JciEXDxhYHTqPMgTW6DmB/BBcFavDNJRgozWynVG0ec2QqjRWhqprMjlbbC6 3+Bw== X-Gm-Message-State: AOJu0YzHhfMcXZoRZoV7dFYQM/nKpYSQbQH2vRh2KSAuVYzM/N3CCEsQ /6QCVSPeZGM1zhUKOyKQNHY5emxB6D449qZzZNSWtmcb1xMjXklEe4CyKr774gI50qxGdPeGw9g YuyI= X-Gm-Gg: ASbGnctrCsBx1vaC3EAqUBgXerT1UBoppao/umrED2GbkB+xwqiHx4yOP8RtfomdY1z Is1ux498DTNOGTPtT0Xcx5NKFN//MrLLSu6Oe7BVgAsXiz5Bq3rfjGYmkC4yW9or5zluRbBRSnf GJ6GczsOxiq0TeTmEbTwF6JGypOh6XubXb5oqIDT1YyXXCRhmlKcKK7gylBdB493ovmDxXPoYx8 BRPtm6pwRW4Ii4mXjbgOr7CYk6qFaHIk1R5W0fRwwGVvWqbx+GSdNx+LGZg/eRbjbW18byLRG4v iCUg0Y3tymu/xc306X7n6+Zr2KgUisp3YWaQmLqeofroWM+Ag1B8N36xRCJxWeW3/ohTSNE= X-Google-Smtp-Source: AGHT+IFh03nsYagtkMcasDWdXJZU2j/I84LOn9rLyHOtHeV2zddxFmV6Y0a5/ozVZ7ALTbEFXhRP+w== X-Received: by 2002:a05:600c:35c3:b0:438:a290:3ce0 with SMTP id 5b1f17b1804b1-438a2903f47mr355227415e9.8.1738055765673; Tue, 28 Jan 2025 01:16:05 -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-438bd54c0d1sm164577105e9.26.2025.01.28.01.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2025 01:16:05 -0800 (PST) From: Tudor Ambarus Date: Tue, 28 Jan 2025 09:15:51 +0000 Subject: [PATCH 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: <20250128-mbox-mutex-v1-6-1f0169ca5f61@linaro.org> References: <20250128-mbox-mutex-v1-0-1f0169ca5f61@linaro.org> In-Reply-To: <20250128-mbox-mutex-v1-0-1f0169ca5f61@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.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1738055760; l=688; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=nqLFHSLJGy17rx/C1GH2M8l41jtpKmkJbZ3r+2kGERU=; b=b11Zx+Cuszus10TrUi+QuPFX9+RSFm+wIdgRO20erQE3YPKl7HM17WuGilGpD9GzWZxUQe3kL p6/hCtt5JOeA9Eel92N/C8ZGkxlzbtmBc0l15Me9iPcEvglFw5Ilwe9 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.262.g85cc9f2d1e-goog