Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp138793lqg; Wed, 10 Apr 2024 19:26:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAA+hUCR4dfpfijEOVu/jR+2ZDRNtlMtKJqN5FXeyDF7mk+6k3iE4u3kYfqhb0QHiJhyGVY66PaKpUk70gacX4Vpp3MeUbzxuIIpaOyg== X-Google-Smtp-Source: AGHT+IGSigxvnfAPdzuIGCcgYxcpriMq/m7oekrkV7RB4vJsznRebkR+TrF8Mi/5xFMw0K1yNlzJ X-Received: by 2002:a05:6870:b69d:b0:22e:9901:ede4 with SMTP id cy29-20020a056870b69d00b0022e9901ede4mr4769869oab.38.1712802390341; Wed, 10 Apr 2024 19:26:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712802390; cv=pass; d=google.com; s=arc-20160816; b=VSiHXin20PI3dvdgsF9dWfoMKKCfUy5MWCApu4m7FXsA4swTxdyqNG0qm8KFP+IOoJ d5R1oqUFgrSfJAJXKubP0AWQi5kI1c1Snz0dTFDolurDqAvGx5CENSFr2Zqk9noVGqmj AoNjUpevqM2CpgvV7RC0BicShHzSY/ze2RUDbJvbpSkiYZk9iKMx5628RNmI91Czw3S6 0aFYIL7ehWB0kWtsNnc7piIfsZwAdE+lf8peqN1tGBqt34CH2680AarsK9YHqkZyjp5C 2q+K4sl/NxYkZ6w81hTuze9dRjWDmotCGwEz2F0VD3Thn+kczBdCE9Qci6iETVs0A87v xOyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=UXJSmZxNI75aHxqgtrGql6qZ0waGZlG3tYEnH0qUS7Q=; fh=SLnRp58ygOnMW9SbUS9DvA+vkoF2P1gjwMBIPf3RZaM=; b=TWEOjF2JKPwK6NVjuwAtebIFetxxlRqppJWRMiAzHrmgK1Poy0nEeEUMy6nMBERh5f OqqnrXUilPdnWwXzsbcQVpdN1MrM0kBXQRRmT+I3pt+zocBsS7fIoEw8tpw/JAE7fzgT TjBH94vdQzw8BwdT7laGPoDPMJvufvUPzbPsR+K1bgBPpyRRsVXG3kUVf8qe7j9FqM3B A6PpL73H911t56yWHwvrn0yC2OQQFEb+VHREX296NPTJvfL+aCTCWfnVwE6N2h0iTb+b BDR1Ln6+LFn6v1kKhB2OhDkvuYmWPjWaLC9ljfbsyX83uI6o2VVgbxKy0BxbVoR05TQw kKLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OEAGRLyW; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-139651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g12-20020a63564c000000b005dc97ac8afcsi373358pgm.125.2024.04.10.19.26.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 19:26:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=OEAGRLyW; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-139651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 019D5287BCC for ; Thu, 11 Apr 2024 02:26:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 750A0651AE; Thu, 11 Apr 2024 02:26:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="OEAGRLyW" Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (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 1E4E9633FE for ; Thu, 11 Apr 2024 02:26:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712802382; cv=none; b=Y+7Ps41JpaV4Y4LGVhlqWzte94hm2uw0iNMLvg66aGMy23FUDjzB/vttyp/EzYCC4Netm8R/wUlrMHpmiINk3lP2DcOA7HoZaVs+NhxC1eZ8eNj7hcmnOM01iZaZffq9v5DWPhdNv/dWrmn9SNhV230U6uAS+ydUnlnX2TVRLOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712802382; c=relaxed/simple; bh=UXJSmZxNI75aHxqgtrGql6qZ0waGZlG3tYEnH0qUS7Q=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VE57bJcRh6DAQ8Q3ajJy+XjVyF0CZmVGl8BkcusaiPICJq43BxF/9smYy7FsKITZg3HhjSXi0Zbw28qZ0VSutaMhpUyhrMRj58Tnl4nMZ/y8a4gALYBNXTw1tbGFqWXrpAptQQEPH4VMqNYG6f6gZNuoKSdSFcmSgjd4aTU2vqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=OEAGRLyW; arc=none smtp.client-ip=209.85.160.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f172.google.com with SMTP id d75a77b69052e-43477091797so93931cf.1 for ; Wed, 10 Apr 2024 19:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712802380; x=1713407180; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UXJSmZxNI75aHxqgtrGql6qZ0waGZlG3tYEnH0qUS7Q=; b=OEAGRLyWraUqmw93STYIsFYWNKvqu0EqRRtw8GfQQNfllTju2Wxqpxttv9CCrJ4tS9 KOGdbI/SuAe/W2oAv0JwOqCc7NC0EJMGsOiTYGasSodAtgfAzofDhpODKRI0SsU5kpAv rD1ioUalP4Sd7gJt1s/Rj774wDZyGkm8G4sjdb+XiElTGxwskGAWZj5aStWN4db26zKh tGlfXjuSNDZETs+Ov0onK76ibHWmIKq7wuoFHzhz+rK80QW7D6B20+ql7yHb5YQdoO6q MmkuepzQygnaoHGwxQbLT22ARJglurln3lUXvG3rQLoNfkouNZd5goOOK4LAmAQILkkd yvGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712802380; x=1713407180; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UXJSmZxNI75aHxqgtrGql6qZ0waGZlG3tYEnH0qUS7Q=; b=cZXe8VTtLIoBx2bJtwk0u2IJa8eHjmqFcq0nV+DI9nwM9URIgQTftD7mAla59bRA9q MADPgd+JYiIm8mXBeR6lnjvfqP49A3VSyZEVX9yPtXaaQhTCeWEBxSVQf5BQhgI+tOux VYaZQPMi597QN9tImPoFDER9cVSiHIMUHGSDODzV/vmyDA+ON0Rc4hy3WaRG+6XZn/R/ toHmj4y9e+znm2OM+3hMSyuSDYyx5Ar/FO1c3k0cZPSFOm8JTN1ox3BdEmF/vz3YiI4V eLick+YNL+EW9+DnwmiDXyqofAsHvrVH3E81evk7Ve5oVfcpw9wvHTytikKLfcnJJ8Xu t7yA== X-Forwarded-Encrypted: i=1; AJvYcCVTGGh2I9+hlyM3cz0mi9TGG+eS2llH6gaEnP0FYw+N5OW4rKgzQ6wNjHlVUspNo9i23EmuG/HYhxEnP3l4wAp20D356vCaWJ9gkQnE X-Gm-Message-State: AOJu0Yw6nnknmLi9fLrkYVcj6Z1lBDTvko7t1lQFaPcX5WcXlt1jhdYI XfbxUArPPcYogLg+xasoM+zryAVE30OIRxwTLenK2GoDhVfHUyNOwgyNwZZlj69UItJ2Nt+iUHy kfe/Ls1a4AgRYHjgJIkXqAWfz8A/FXe/7gx9J X-Received: by 2002:a05:622a:4c8d:b0:434:ec62:970c with SMTP id ez13-20020a05622a4c8d00b00434ec62970cmr131218qtb.12.1712802379873; Wed, 10 Apr 2024 19:26:19 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240410182618.169042-2-noah@noahloomans.com> In-Reply-To: From: Guenter Roeck Date: Wed, 10 Apr 2024 19:26:07 -0700 Message-ID: Subject: Re: [PATCH] platform/chrome: cros_ec_uart: properly fix race condition To: Tzung-Bi Shih Cc: Noah Loomans , Bhanu Prakash Maiya , Benson Leung , Guenter Roeck , Robert Zieba , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 10, 2024 at 7:18=E2=80=AFPM Tzung-Bi Shih = wrote: > > On Thu, Apr 11, 2024 at 12:06:33AM +0200, Noah Loomans wrote: > > On 2024-04-10 at 21:48 UTC+02, Guenter Roeck wrote: > > > On Wed, Apr 10, 2024 at 11:29=E2=80=AFAM Noah Loomans wrote: > > > > This is my first time contributing to Linux, I hope this is a good > > > > patch. Feedback on how to improve is welcome! > > > > > > The commit message is a bit long, but the patch itself looks good to = me. > > > > Hmm yeah it's a bit on a long side. I'm not sure what could be removed > > though, it all seems relevant for understanding the bug and the fix. > > Applied with shortening the message slightly. We might also consider applying the patch to all ChromeOS branches directly (not waiting for upstream); we do see a number of crashes because of it. Guenter