Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp64436rdb; Mon, 14 Aug 2023 09:32:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJAZadk1PRXE13WZao98s6jMLstdTUCnj94GYbhdqiSI20P611PtngmsJGUzDlYrHS+CUe X-Received: by 2002:a17:906:53cd:b0:99b:dca9:5b8f with SMTP id p13-20020a17090653cd00b0099bdca95b8fmr8466764ejo.56.1692030772742; Mon, 14 Aug 2023 09:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692030772; cv=none; d=google.com; s=arc-20160816; b=dVNrUALeabKZKm8m6yS+ZDM/PLTZM4xg1LguUcFiSpDARGbqbNPK5fdGPLZUHbwGbb wMe1SjlA1Une+RtSPgwmPmbt9gHmoC+iAKQlZxWhFMXvP3/TLA/ibIb9UPENSkhe6zLj Laj5SXKJ70/OfwWDnYQ0bkekaPWtSqg3pq/e3NRmZVLTllQwKMX72d3A1AkDR76OwWct rVkLGjDygwNU2PxHAJBUmSmrMDgXGphOSDuQN40XYtFd37GVXsdpYRkiTZaDVOzW+2ru FTyUviKdmH1gC3t/IrQXxd6wPznssoJUkrDHORpDUHvpiGbCg0AKeWNFxgYhCO/a/xjR BLHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=R+JfylcDTKNSxp7M/N5Is0OsD+bt7b/rmBp9CTcJ+8c=; fh=OWDvP0Cd6gCq9RLE1wklO6l8HG5LRkzrn1lVBb/lsWc=; b=mPpuXWEVNzQQMKCxKPpjtl4IlsfOX9UXnERerGA2gMWa/KDzO9t2gObDEYlp0P4/+2 pecA9EY6VYK5Uhpexy9Y/fH2j4WzZddcG1hXm8dGWFS7XgI+7fvBtanwvg4cQsimaSd8 rbTsIi1zmuZsraDUmm07Tn+WrAX8XLFcthIFDA0vViEJj7gvaxxgWALTt4PfV2P8Pnwp tIw84zaq5xOxX5XVgBdkJX5WIO1jy9ZMQfZhLi+bnidxqRBdlY5suXmySIpaHe8Lc9Kv vP/y7uHce2JTePZiPgPJQMbGfLE0ABiO+UaewG7KSfl26eyA6vQFvtYwV6lvna7XQDYi 9XcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eZg/p6Xy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a170906038800b0098dd7716952si8010792eja.527.2023.08.14.09.32.09; Mon, 14 Aug 2023 09:32:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="eZg/p6Xy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231517AbjHNQSX (ORCPT + 99 others); Mon, 14 Aug 2023 12:18:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231825AbjHNQRz (ORCPT ); Mon, 14 Aug 2023 12:17:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 246AC1BD; Mon, 14 Aug 2023 09:17:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B5F6B63E1D; Mon, 14 Aug 2023 16:17:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BACEC433C7; Mon, 14 Aug 2023 16:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692029874; bh=R+JfylcDTKNSxp7M/N5Is0OsD+bt7b/rmBp9CTcJ+8c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eZg/p6XyNRoNiYPKWkkVIsZGnn+ehWk42rjMDvLNB1/UGjHN9m3qaazn7q0fookFQ 7VzjnSZnTvGpth+LAPCeE0710QCQkhtqnP8CAmKLyw3vpoMoeZ0PIcb30FIhUjiDp3 lMPBquJYsBXaJGL/CwTf6CQOCUpCI2vdEXOc5pE+RuKvdqAlAHOEOdDJycbZBMScfj dXQKWDJzL+hQxmn6EF5YOCMXHpavWsD6TeT9K+vHidwuSAR7QdekY7GA8jROd+ez6g j/8rvCj4HJ0H3feeTtR9Wq9ttI2KqKRSI9DnGy56eNhv0zImm0s1CNtOG2A9a57C4Q 0J9iukyqV8c2Q== Date: Mon, 14 Aug 2023 18:17:48 +0200 From: Wolfram Sang To: Chengfeng Ye Cc: andi.shyti@kernel.org, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue Message-ID: Mail-Followup-To: Wolfram Sang , Chengfeng Ye , andi.shyti@kernel.org, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230707084941.28964-1-dg573847474@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lP44t/20Ow0y+TLX" Content-Disposition: inline In-Reply-To: <20230707084941.28964-1-dg573847474@gmail.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --lP44t/20Ow0y+TLX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 07, 2023 at 08:49:41AM +0000, Chengfeng Ye wrote: > iproc_i2c_rd_reg() and iproc_i2c_wr_reg() are called from both > interrupt context (e.g. bcm_iproc_i2c_isr) and process context > (e.g. bcm_iproc_i2c_suspend). Therefore, interrupts should be > disabled to avoid potential deadlock. To prevent this scenario, > use spin_lock_irqsave(). >=20 > Fixes: 9a1038728037 ("i2c: iproc: add NIC I2C support") > Signed-off-by: Chengfeng Ye Applied to for-current, thanks! --lP44t/20Ow0y+TLX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmTaU6wACgkQFA3kzBSg KbaNKRAAtQ5yI2RX3kG1g6Nxx6xQk6u0UG8EvKyZsADukUZxn9ccsUZAuP4vjXOQ RqqwODwaKhGtngnRhqOkbE2rRoNc6NT7YJqLtnWAznDpW2/HMdbDMsmVbybQ7TiL uL+LLtT1HqhF24pZXo3XJZmFZI9W5/5ez3oGBgH0RhiSb/7znTX/bqHPpQnoYFHP tk0NJ6HpiUqHYYjT9ogUBH07CfXgUfW1phYyPZICSGjGdK+wzVlsFLWCEXyVNh8E hilzIQj3uz1PzuLty1VeJQpFhp+PDvtgZzh402iR/vn1wAELsFki/a5qGl5RQq5u auNzbT8HGLLlAG8Dfcm9wIdJ64OWnfYKE3WIEptaIYwwDQKBoFyzdr63Au2ShupU m3V+7he7urtUibjWe+ogWmLOVJEbXMOnCBhfsd5Zt/3uu3dqbnRnT5AWynLRuOKd RmLuiDx4Ahfx8VRbJ+TpmPjckoVdX7xKUN/crkRpFPORtKRRXHGfshwQE9t4amY0 4QqAu/z44qHoWQ8BUb1OkZyxKcpdwMfIu5IbsjqszHYLG9zQztVuu9wuXDFwghtL uVU4lQ62CjtzU41BeAKDxmlAZqt+3woZzsZwgXPkZVz5IuAh6st8CGizRno/SA+9 lXX0hZfjldqWMiXuG6grd6O80ZobZHq78CngCDXaBYB4FIHKmhM= =zNjM -----END PGP SIGNATURE----- --lP44t/20Ow0y+TLX--