Message ID | 20240627091137.370572-5-herve.codina@bootlin.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B4B11C2BD09 for <linux-arm-kernel@archiver.kernel.org>; Thu, 27 Jun 2024 10:52:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=bOAN8DOKAutpcJ98IdSxdr6GKYFYp22/ixh21amGeTg=; b=Ji55WKBiiUbP9r1NBB/vzMFcnL CDVrId44z5nwj4In9cbznlrrHNqvU7CBgeOCltNX3G7QA9Relb06gURx2xEZJ0hmqLai4lc0qBIcg gqMIeMUFQgSgbAy8hHrctvvG0kI2vgrO0yndVoMWlLkQiS2dacOyzUx5gCZmNImtTTQqjAKcO78WK u2FJOqhgu81TLEisRK1+uqlej8rveGU2uWGXecwAjZyFQSp9HSFjD/DiIOVbaJZJQez/MyhTHmyN4 HOY41j3hqvoNM/dj/T4D8jn4JG2L6Rg5YgigFUFXBWhj1vigoeRx9s2y1Qzi/0GQPTB59ih8R/990 asf1aFCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMmjD-0000000A2yk-2lV9; Thu, 27 Jun 2024 10:51:48 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMmj1-0000000A2up-3Ict for linux-arm-kernel@bombadil.infradead.org; Thu, 27 Jun 2024 10:51:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=bOAN8DOKAutpcJ98IdSxdr6GKYFYp22/ixh21amGeTg=; b=JXDsRoOuDQ3LkVay+p1lt154k8 AyxNMh84sG1kMihYj1mA03ud1ym6Ru5adqHXhI2ViLTGE5J9nkt4EAmaUl8Bxx4cczKiO0+TGrK/g 4koXd2NAma1Y8O2yw1F2Emx2H+AYa3reYYF2HD35Qmg3nS+3ak4smPsXIcTSjAboQcETsJP38qjCv IqvVvvMPHXpy9KQCaFXRwwu3nVUAM3v2bn1OM9QFXYrh+UvjKQZDOeLqXqYW4j3krqJUFs9fjQiQr iW3zSHdo7FXAeEWVO6JPuMRLTyvEKQcpEnIJgw97JTNfJ5LD10ZNhS2Z15k4POpoMJ70nnmJ4BJQ+ pcjuG5jg==; Received: from relay7-d.mail.gandi.net ([2001:4b98:dc4:8::227]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMlAw-00000008mkq-2OhF for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 09:12:22 +0000 Received: by mail.gandi.net (Postfix) with ESMTPA id 8F62B20005; Thu, 27 Jun 2024 09:12:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1719479538; 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=bOAN8DOKAutpcJ98IdSxdr6GKYFYp22/ixh21amGeTg=; b=BLFoZXTUyOahcb22V3K5FvkqRw9RWqaUUM+SECzMK0lB6eCEOiT4uNzzDgA2xwMjwrYCM/ y0fZyBJz6gHkEzOnnpAcpN3dBYwcRdYmEbkBks85SaJLq1ncqugOfHIraS4FD1FcZt7z3z 7BXpS8PeWyiWnFfbQDspOtLfOVIDR5mDZylVVvv9zHgywwy9sh7UP+aHrSggC6YIYwqa2R 7hhY4yY3VlY5u8VHn75u9Vw9eR1x5fdM+jSAmmpP8ovdIQL4rDJr6aZwvDW5AUOlPI7avz mumzb8X+JJ2mykvehqYTKw/6JZ9NBUvDJG87BChGeV4pDrn6WtV6ApdwI74ikQ== From: Herve Codina <herve.codina@bootlin.com> To: Andy Shevchenko <andy.shevchenko@gmail.com>, Simon Horman <horms@kernel.org>, Herve Codina <herve.codina@bootlin.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Lee Jones <lee@kernel.org>, Arnd Bergmann <arnd@arndb.de>, UNGLinuxDriver@microchip.com, Saravana Kannan <saravanak@google.com>, Bjorn Helgaas <bhelgaas@google.com>, Philipp Zabel <p.zabel@pengutronix.de>, Lars Povlsen <lars.povlsen@microchip.com>, Steen Hegelund <Steen.Hegelund@microchip.com>, Daniel Machon <daniel.machon@microchip.com> Cc: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Horatiu Vultur <horatiu.vultur@microchip.com>, Andrew Lunn <andrew@lunn.ch>, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Allan Nielsen <allan.nielsen@microchip.com>, Steen Hegelund <steen.hegelund@microchip.com>, Luca Ceresoli <luca.ceresoli@bootlin.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, =?utf-8?b?Q2zDqW1lbnQgTMOp?= =?utf-8?b?Z2Vy?= <clement.leger@bootlin.com> Subject: [PATCH v3 4/7] reset: core: add get_device()/put_device on rcdev Date: Thu, 27 Jun 2024 11:11:33 +0200 Message-ID: <20240627091137.370572-5-herve.codina@bootlin.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240627091137.370572-1-herve.codina@bootlin.com> References: <20240627091137.370572-1-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240627_101220_616881_B876C527 X-CRM114-Status: GOOD ( 11.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add support for the LAN966x PCI device using a DT overlay
|
expand
|
diff --git a/drivers/reset/core.c b/drivers/reset/core.c index dba74e857be6..999c3c41cf21 100644 --- a/drivers/reset/core.c +++ b/drivers/reset/core.c @@ -812,6 +812,7 @@ __reset_control_get_internal(struct reset_controller_dev *rcdev, kref_init(&rstc->refcnt); rstc->acquired = acquired; rstc->shared = shared; + get_device(rcdev->dev); return rstc; } @@ -826,6 +827,7 @@ static void __reset_control_release(struct kref *kref) module_put(rstc->rcdev->owner); list_del(&rstc->list); + put_device(rstc->rcdev->dev); kfree(rstc); }