Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp464199lqb; Thu, 29 Feb 2024 06:16:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUGFqXK4Cyb7hl7xrra6qmydYX7oqoa2GqOTD7qV/nDgrd+7NuB0iq1LvBN/GN8wObzMWJtnHXM9GXYzD5HALmqhHUEk/eMP5Y5TfEp/g== X-Google-Smtp-Source: AGHT+IH5NeR1AmWDcRiA8r/DVnImCTzG2pHoYNQjtZmw7fO9C8tAaMRabY1OTGjZvx5LBr3y1q36 X-Received: by 2002:a05:6402:2227:b0:566:8054:562 with SMTP id cr7-20020a056402222700b0056680540562mr1576642edb.3.1709216160356; Thu, 29 Feb 2024 06:16:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709216160; cv=pass; d=google.com; s=arc-20160816; b=zEL/IIBA7hEHbMuC2vbcIJOGFPLO4vuy69DdrI/N+XicW6QuesaaiSLUxqQcvKKxuK 2eKMUKRWCdosoWXb+GoSyX0OrSLIYiiqjyLyv2GG8Q2c8ParXNIpoe12zc40LbaJcKFz U32bwtQ9vdkJO8/dGFJx0b7m6sYMljPm7vsteOCZ51yBkmOfUY+NIhA0G1XhHMT+Gc9O Lx/JvWLqNfAAQnuLzTGOqAmjSSwz6Esg7K21O5q7PfWW2Zpvu6xIzbF7uDoUlazLBJuX BMu570v/oFs8eYhWzublODUDM0ailiAsYYP5ukCamQToDEvIbCXqphYHfa0mARw6gt8D soeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=VODy3+pzl+mL+SxkoGGkZEMj3lgjxIWIJ0o/1JFBQvs=; fh=aYDbW87XmM6KobSJr2wo5djkMlWqufEjSp8gSypKDSo=; b=wFw2H6/9Oi6o0Fg38FAIS8WYtFmbRE9PfwzL+MoWNwrzhx2hdatXgU279yee7SIuw7 omg0PVPxOzdG9JlS9vToHNzR7QZb9Pwxxc/hmzZypxsMJ7Guxmuzbv593waxfaNJINRp o2xGsBzTVUZTn/46m8cGaIaGa+uxNTK1n5M6SFJhDkOUBrNJlbKSKI6fU3k92LDHJjas 8ec48QSIfcrvm0l4FEXz2t+/+HY87C3L1Yw92YruwDlbmUakDoedBJ+va8hLngFbmfG3 9VdZNJ2Gzb7albuFHeyhLWHUr77+wwOjnq2370uabADH3e9CUvdWRXB0NYs0PhvJxE7X ZpNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="b6r/o/Mu"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-86814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86814-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ds1-20020a0564021cc100b00565b4b999absi606183edb.428.2024.02.29.06.16.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 06:16:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="b6r/o/Mu"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-86814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86814-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1D6B91F2517B for ; Thu, 29 Feb 2024 14:16:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9AE43137751; Thu, 29 Feb 2024 14:15:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="b6r/o/Mu" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C16E1350E4; Thu, 29 Feb 2024 14:15:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709216115; cv=none; b=E/dCkG263cMII9LXK3tOptOKArQFzQrZ2pDF7PrplbfqN9Ap9kfEPqEyaZ7yEZzP+8ypqqYz9Y4ouG2CNrmRSQPAbUNwfZdTNl6O49nS2OjaTybHkT6seHz8Rlba5gYHTgHJxZ1+ouWDa+x5yRnlopSUP8iEuoPGiThx1SppKYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709216115; c=relaxed/simple; bh=17Re2ZlxCpPi8VT+NvWtc5Nizs8oPUXsA0ViMmWSD4s=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fUriKcdBfbaI74v4i0WKBSucUTgoJLpfoE9TdVjjxd4SsOP6mZRDuaNaFAixUIaiNRzmYjd9Q+ZdE4wdDxHk3+PvbLZ8ipYGeQhSTCgA4xMbPOzjuWlDHUrRLi3c+/QwQusKr5Iv1+wSQTnhhpkHlAvJJUkQ94HibTs+FK7Vc2w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=b6r/o/Mu; arc=none smtp.client-ip=217.70.183.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id C95CAC000B; Thu, 29 Feb 2024 14:15:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709216111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VODy3+pzl+mL+SxkoGGkZEMj3lgjxIWIJ0o/1JFBQvs=; b=b6r/o/Mu9TPn/uf6l5ivBke/Yz/QfZOFnWspbOdUT0tyBMQOKs4qIYOoR80iSfCPE7+p5h AAUAGna7VQJxSZM+VDSWJKDe2oJzV66x1gGVd/6LduwPFq0qTVHd1B/+h8NorBAnZSIcP/ llrWdkcy9+423XM5HVk1urmeMUm7XZW6hYce7vGmM7BUQ+kNQTgMxjgSgxMqtIug+/DiKp D4Dz7ohiNB374q5JIOCvZutQHbGkMpRQEcgxkr8hjjHhGBRZfm5Y4EpjMSTHWmrSssd8iR iI2qdB7wlO0GKPxWr0KDNkWmXVV5rtFba1PfxpQlSc+drhfweBMAfYo5N+vhEg== Date: Thu, 29 Feb 2024 15:15:08 +0100 From: Herve Codina To: Andy Shevchenko Cc: Vadim Fedorenko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Yury Norov , Rasmus Villemoes , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Andrew Lunn , Mark Brown , Christophe Leroy , Thomas Petazzoni Subject: Re: [PATCH v4 5/5] net: wan: fsl_qmc_hdlc: Add framer support Message-ID: <20240229151508.42432f9c@bootlin.com> In-Reply-To: References: <20240222142219.441767-1-herve.codina@bootlin.com> <20240222142219.441767-6-herve.codina@bootlin.com> <20240229135605.6454052f@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) 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: 8bit X-GND-Sasl: herve.codina@bootlin.com On Thu, 29 Feb 2024 15:58:06 +0200 Andy Shevchenko wrote: > On Thu, Feb 29, 2024 at 01:56:05PM +0100, Herve Codina wrote: > > On Thu, 22 Feb 2024 17:49:40 +0200 > > Andy Shevchenko wrote: > > > On Thu, Feb 22, 2024 at 03:22:18PM +0100, Herve Codina wrote: > > ... > > > I've got an issue with guard(spinlock_irqsave). > > No, you got an issue with sparse. > > > I have the following warning (make C=1): > > drivers/net/wan/fsl_qmc_hdlc.c:49:12: warning: context imbalance in 'qmc_hdlc_framer_set_carrier' - wrong count at exit > > > > I also tried to call guard(spinlock_irqsave) before 'if (!qmc_hdlc->framer)' > > but it does not change anything. > > > > Did I miss something in the guard(spinlock_irqsave) usage ? > > You may ignore that for now. Not your problem, no problem in the code. > > https://lore.kernel.org/linux-sparse/8d596a06-9f25-4d9f-8282-deb2d03a6b0a@moroto.mountain/ > Perfect, thanks. Hervé