Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2499823rdb; Wed, 15 Nov 2023 02:32:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUTBaNQPaM21LauWWAfMrjj/ZoTwSou8o4CupOLcKJALjS7G6kLuQF/UGjHej5I3i6M2Jt X-Received: by 2002:a05:6830:4414:b0:6ce:2789:7195 with SMTP id q20-20020a056830441400b006ce27897195mr5792247otv.31.1700044332655; Wed, 15 Nov 2023 02:32:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700044332; cv=none; d=google.com; s=arc-20160816; b=sNsf1aSFe1Z2eLc7dcuIHvpDfHm0YZu926XgmLhN9B/mAWLlxZAdNaILRhyIsnq4U6 t1Quw2YI2ptwmuBX0CKl6OUJ3FOIe1rpEwywc0HZVzQobssbg5mLnNI1HUkAUBZJ8D8L RDLYaFelceOTnhkkZ63RfrMChoqKq2vcjw4wGo/1nz7Dw+b0UHT472W7Jge940r/0rut G2YTI/RHtCYEq4k7R/acxkEvKDKgg50kW57wTN5Q6cryvWMd7VkU2nUUR6PWctQXEit2 OTpdnVkVxzunDFxcP2HZmRzsPo8XpoKSew47nDjVBl6WUPi2qQF8lNpPNdlvnke5FrV1 dtDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=Pym2wX6/6jKhK2jh1Ks0i8sNe03dRoq5qKQSyQTmiHg=; fh=QR9fnqHPig2kndSpekgKx4gO0NyxTpbCdQS8TWVYSR0=; b=ZR5FRh/3JOmJT0zatG/8vinWfod94Bcj26qMadhjIkvho2YgyByxkA8HdqHK0+pxmi 7qi+xOadvYD1OB1D4ihJpNkRtZ02BKzhbVGRyGOFomhXKu7+vCIfKj0nzUGpB6Ff/C+j fx2EQ488VwznCVe7MlkLOIpmpbVQhmRaxyJSg6tdWn3h3tKGaeeziW2JaTIYMczQDxy0 f3c2cyZA4tQlIjle3JHn7pyY6zSuNmqtx65ioJi1cKyaHeTVlF7Kex6My7TGYJqeTVip qQLsb8JDGP1LWc44QlAmnvbKiUTFg99vtGPSmopyQOdHxbazahDKyTMw5VsiYl+s1Lw8 zePw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QRw+8ueD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id h188-20020a636cc5000000b005bde6fae09asi9571875pgc.135.2023.11.15.02.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 02:32:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QRw+8ueD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D92F0802F259; Wed, 15 Nov 2023 02:32:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234810AbjKOKbz (ORCPT + 99 others); Wed, 15 Nov 2023 05:31:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234116AbjKOKbw (ORCPT ); Wed, 15 Nov 2023 05:31:52 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB7C6F5; Wed, 15 Nov 2023 02:31:49 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AF9r1EZ012730; Wed, 15 Nov 2023 10:31:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=Pym2wX6/6jKhK2jh1Ks0i8sNe03dRoq5qKQSyQTmiHg=; b=QRw+8ueDDltgZjxDWC4Y7aG6UA1iPiOzFz3euUYntaQ0jIciP8dzElnL9OT43XrFLHAF mmApKDg3vU9/r3161i7aQNtU1Um32CXEs1/LzsVAQDPnOSEUH2JpBhLnMxrjc4Tl4gyq KGyFUNerTFafrqmwZ8mi8zRlW4ZZYhDXOQhigxvVhINJm1oXcrBkj1zqMSnPcXbc1zxp vaIguk5fNUSYaGKaV/GiaN6IrYcykU0N+WWAVENWt+buE/57xRScvEjhoSZXguprgC0s n7PX5aUEsjR5GuvzZUXplC/Sf1MF84QFC6PK9hwgZyqUwaAMgl8pbBhrMB/eZ2VvSvUq 7g== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ucg2u9jdy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 10:31:48 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AFAVmgq009416 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 10:31:48 GMT Received: from [10.239.133.73] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Wed, 15 Nov 2023 02:31:43 -0800 Message-ID: <4184a40b-2b1a-4692-bd9b-b7639768a86b@quicinc.com> Date: Wed, 15 Nov 2023 18:31:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] pinctrl: avoid reload of p state in list iteration To: Linus Walleij CC: , , , References: <20231115010906.35357-1-quic_aiquny@quicinc.com> From: "Aiqun(Maria) Yu" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: sOBrNOCD9OwBa_jP5D2s9j4AB4GSV9AH X-Proofpoint-GUID: sOBrNOCD9OwBa_jP5D2s9j4AB4GSV9AH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-15_08,2023-11-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 bulkscore=0 spamscore=0 impostorscore=0 mlxscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=781 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311150079 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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 02:32:10 -0800 (PST) On 11/15/2023 5:58 PM, Linus Walleij wrote: > Hi Maria, > > On Wed, Nov 15, 2023 at 2:13 AM 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 Thx Linus Walleij for your quick response. here it is: [https://lore.kernel.org/lkml/20231115102824.23727-1-quic_aiquny@quicinc.com/] -- Thx and BRs, Aiqun(Maria) Yu