Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2485742rdb; Wed, 15 Nov 2023 02:01:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjJIE/YOnnB3F4Y4rRv3ogAViGNZDo7r5B1KjP1VwQl3g/NWtXpj9+f27qZaZ008in5SAr X-Received: by 2002:a17:90b:4c04:b0:27d:198:fcc2 with SMTP id na4-20020a17090b4c0400b0027d0198fcc2mr11291472pjb.33.1700042470629; Wed, 15 Nov 2023 02:01:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700042470; cv=none; d=google.com; s=arc-20160816; b=Nb8LI9/vISlPhNhiVNxXZZZc/oqJNxMr+0dVNXUK2fyUUrFD09mY55iweuCGLBukNP Bxd7JmhfqsLWGEXj7dUPWk9RLUpTKY7zp/5hox+3T1/k8jB2MsZZQw/QXLtvwPwSJEDe hBJpiGKP+95JA86TliyCUBQRIaVIug20skCqS/3NYTGiztNrvhkgW5CZC0du2yUUB1m/ EfvrGJWy4f0H916RjR8dfIthAulW1zPCrZw0IFpW2RG8x2PjGgJgszj52P5fAlA7CBC9 kL0Gg9GjHCwtqLZR8CFuHMkot+QiPZswmIcHxh+5PBePlBkSEhR5I+SuMuvQPMlql0v6 xQxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=yMYbJ2pYyOF1bQRIseaOIgNKpTkxL2DUlV+Adcdxow0=; fh=UDCFKlkTfmla7owSVGXN74JQVrdLq2WOTehUdjDwdi8=; b=heVjZ6aR8W7CUpwpTXDd3z7Zilshyxzvbl3ytZKHZxieX0tEVGWoqN5hLNIUiJHI8+ 1Bx2XNxzdJ3QjmjPERJmkZGp+aVaKw/xq1JoLaTZrf5VTI9GhSBBANSJfa51cC8WuR2z 6LkkrbKsKacghNnnTUIu3GpFCroqr1dNkV+M0wt8dcPmV2rbsFKb3K/254GQIMjmojs4 pl/p7DkxjKB50UJXr2z6MDA7zxqixfmcuFJ9gGoct8PjVt5+sI39C9bKkkhsm9E7QGu7 o4WuhJL9D1yOcInue/sw3mdwXkRgOVFOsXjEARk4xLi1zLEm3ytQCjA/K1b33XqLS7Ya GO4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RrLiRV+F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id 21-20020a17090a195500b002775281b839si9730878pjh.39.2023.11.15.02.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 02:01:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RrLiRV+F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BB4C28027F79; Wed, 15 Nov 2023 02:01:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235079AbjKOKAY (ORCPT + 99 others); Wed, 15 Nov 2023 05:00:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234926AbjKOJ7o (ORCPT ); Wed, 15 Nov 2023 04:59:44 -0500 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0400D44 for ; Wed, 15 Nov 2023 01:59:10 -0800 (PST) Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-d9fe0a598d8so6553771276.2 for ; Wed, 15 Nov 2023 01:59:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700042350; x=1700647150; 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=yMYbJ2pYyOF1bQRIseaOIgNKpTkxL2DUlV+Adcdxow0=; b=RrLiRV+F5TKUSeWyyD7BgqiwEFAcdNAMot6tUi/wm3wOKKCKwfGMUhPMWaupE0GsEt W2TxZgIrnh5k0frUnB+6eeWdjQ2He1h6RfE52T9eMJ7mtInxw0YQh49M3/OaKUshio0k 2r1GKhIsuH3SWEo90k4hauylgWU24iWkYF5YIYjB1ps7C8/2j/9YxvigGj5rszOoqza2 olbx6Y23QAVEbwWF7ejTot7wwrUZYWUQq67l+dIUOBGOfPXbXxQjATAAYLXz2Xko6w97 ma519hHrtQjGjQhbAWd6KUHFtb9IINh0ocVWnMRvKdan6TvNAaenVN7WYIJ2Yw89ESUJ rh7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700042350; x=1700647150; 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=yMYbJ2pYyOF1bQRIseaOIgNKpTkxL2DUlV+Adcdxow0=; b=RW7jxsfcVc1cUZpTOniS3JwqPEvTX7ha3MNmiGKtJGpNxzNLqlIuGZYoiYlo954B76 hHLLTFdvuU5nTSnbV2z2l8z8rk1LAq3YA7zglbXhqe+51bjjcd6gsnzLrVTvsZPQPl8v FAMx7964Rav/ttET08wLRaxzE0ClWdYUKEy3irMnE43tTONQZoegiYlr8tJ5t6qUpC5s 5W8pKyuj3bVL259fHSsOONUhZD3be8BOR9mHY1zXBB0UkB3oAQ7ZyBnHeTn3I+uZxyWF WDoOjnvbg2kJFz7rRaatSDmWq/0a5AkcWiNZ7te6++W6Wuoqjo6c9qV7ahH5WzFnIY3W 1BDA== X-Gm-Message-State: AOJu0YzaeOW00AHMUwWA8d5btKgbUdN/Wm97W3JMOk+2Mj7ip3KkxkP1 KfGA+Q45OPwhlb1d0LKlgysoBNxYEL5yj+SPAZKPsg== X-Received: by 2002:a25:3d81:0:b0:da3:b814:2500 with SMTP id k123-20020a253d81000000b00da3b8142500mr11637353yba.18.1700042349793; Wed, 15 Nov 2023 01:59:09 -0800 (PST) MIME-Version: 1.0 References: <20231115010906.35357-1-quic_aiquny@quicinc.com> In-Reply-To: <20231115010906.35357-1-quic_aiquny@quicinc.com> From: Linus Walleij Date: Wed, 15 Nov 2023 10:58:58 +0100 Message-ID: Subject: Re: [PATCH v2] pinctrl: avoid reload of p state in list iteration To: Maria Yu Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@quicinc.com, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 02:01:07 -0800 (PST) Hi Maria, On Wed, Nov 15, 2023 at 2:13=E2=80=AFAM Maria Yu = wrote: > When in the list_for_each_entry iteration, reload of p->state->settings > with a local setting from old_state will makes the list iteration in a > infinite loop. > The typical issue happened, it will frequently have printk message like: > "not freeing pin xx (xxx) as part of deactivating group xxx - it is > already used for some other setting". > This is a compiler-dependent problem, one instance was got using Clang > version 10.0 plus arm64 architecture. > > Signed-off-by: Maria Yu > Cc: stable@vger.kernel.org Thanks, very much to the point. Can you please send a v3 and add the info Andy requested too, and I will apply it! Yours, Linus Walleij