From patchwork Thu Apr 27 18:19:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Berger X-Patchwork-Id: 8733 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp459642vqo; Thu, 27 Apr 2023 11:36:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6f+NRDPMa2HFZodxBs6mw/wScXvId5jdV4970EmbI3epHZz1jWyNLEXaUHXJGwPKOUl9Qq X-Received: by 2002:a17:902:e849:b0:1a9:5674:282e with SMTP id t9-20020a170902e84900b001a95674282emr2800429plg.14.1682620584177; Thu, 27 Apr 2023 11:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682620584; cv=none; d=google.com; s=arc-20160816; b=0CxRo0Bdcs5HlaDuM46NJuII9eicEyrYeXo0DXJ0enzen2q5JO5026cKmj1E67ghl4 RmQjMl7h0q48yuoeaPmelHLl1PeiL9MEuwUOn4qUhhKa4F/XF93XUp/rlwwAscTRU3TW 22YQnUN991t7zrUWkg8cR7UsUpiwMdGX3Fq4V2KIyZ1j8vIq8YbdZzd9xdN6FRZtLueF bkkgPLfJavHvk8vkqM58vUJZAP4mYFq46WTopuTUIUaFG9f/lMbb5sNYeqZvdAzIgUjZ S1jbBaJUXbu9RlD1asUiypCUhE9LUXJwU81acQGUqS3ihuEj24UEDCSYAjxPLNh65Pi+ zo2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=q7ATKwYmuUSj/ogSpDjDq/5jbaMNI6uN2RRcY4VcdQU=; b=VIwistBnPFy65ZFC21IqRXhqURCTFJ7swg+DsIIXENtMayFwePNQnZkTndYNoppJ6b WNNimskU/EVESWxI/pSaR2nT1jEoKB/TJ7P7tSZIr/XwFto6mnayp9Dl6JPJO0h5G3DF dcE/Jm/dIwmD3boL2l1LkhY9P5R6zPb0qpYt3103/SPYeaeuthgun4JwAPo0DwoIZI6Y GveMXKkJE7Jb+/7EpCBx2Nf+F1L3E8vS5bhgh39SBYD3PplLWKwwo6GumMPuU2zO/Zwg syeGe67XeG4Tr0V2qwwzCrS16DUW/TSPlFL++FNGQN7J62HrcwkXOQ74/Wcv572vl6Eq oZBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=JOCYJplp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n2-20020a170902f60200b001a96124e47fsi14557336plg.348.2023.04.27.11.36.03; Thu, 27 Apr 2023 11:36:24 -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=@gmail.com header.s=20221208 header.b=JOCYJplp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244285AbjD0SUD (ORCPT + 99 others); Thu, 27 Apr 2023 14:20:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231577AbjD0SUB (ORCPT ); Thu, 27 Apr 2023 14:20:01 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0D4830F6; Thu, 27 Apr 2023 11:20:00 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-74d2597fdb2so436766085a.2; Thu, 27 Apr 2023 11:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682619600; x=1685211600; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=q7ATKwYmuUSj/ogSpDjDq/5jbaMNI6uN2RRcY4VcdQU=; b=JOCYJplpxoGq4Gx3tOkSbP5MJ1e8JEdMLZWEEKKqARz9vZ0cCP/2A5zaqBJUM2PdH8 3fn+Gpg6iSnVEEW1QU1ACL0/909mfOd7cCBOuorbhRACGMBtd2x0dRxKOQTN/dw4W7g5 p21U+sl6BgEybZ9Iq7IOLi+SLh8Xdem88Q6P4X2X4NBaAERAStw+CqIVy3WbADo7Cs1j PtRP885AlS9Rg6HHvTq/901NA2afjlvnamn2/5XCeFCpT5UQ3ZVSopKfi1544pDKHY3P tTMaGkiJbWYvGFqmgFuCJ2xWUVHg5LCXbOwgWddbNErkyvrlCMuzbaTkJVIQtlkHJgqU 1BgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682619600; x=1685211600; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=q7ATKwYmuUSj/ogSpDjDq/5jbaMNI6uN2RRcY4VcdQU=; b=DzWipB9NfwLXUJtU7wVkXzHshpEsufrhGIQer1PJ7QOU9zhd1zcMZHIIQTwxoZmPTb CN01a1OG9neMweDUbWMgJMJJ0EbsXfIK5U8fo0pEhgjj/IIoX8v4PFXk0aWqglf8lrGt djIYoW1E9yUOZAtwfR+OkRSQq+a10NvJz2zmLpIifFX90cLhIChOQ6En//Gsto3TeQTk qQP844FlbcxySzmaCeVBIhXM0jX9CTKNr/5gAFPBOC8FqjNQjDQ8LQA6KBUFDvctVOgd 3Rmy2Va7BDEbUNOvurGifrqce2uEoC9TfzoBPKz0BP/BUwyzsvaOw2qnFWVz7jIqEhsy nE9g== X-Gm-Message-State: AC+VfDxxfNpiHD8znS1TrisxiAJv3roSmxvifH8KON/a1t/hCaNx0dgy uwZQESmcEVf8fODLTnk24cCQt8pHUec= X-Received: by 2002:a05:6214:c47:b0:5ef:564a:3296 with SMTP id r7-20020a0562140c4700b005ef564a3296mr3654265qvj.44.1682619599827; Thu, 27 Apr 2023 11:19:59 -0700 (PDT) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id s14-20020a0cdc0e000000b005e5b30eef24sm5788316qvk.56.2023.04.27.11.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 11:19:59 -0700 (PDT) From: Doug Berger To: Greg Kroah-Hartman Cc: Al Cooper , XuDong Liu , Dongliang Mu , Jiri Slaby , Florian Fainelli , Broadcom internal kernel review list , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Christophe JAILLET , Doug Berger Subject: [PATCH 0/2] serial: 8250_bcm7271: Fix clock handling Date: Thu, 27 Apr 2023 11:19:14 -0700 Message-Id: <20230427181916.2983697-1-opendmb@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764355561947842934?= X-GMAIL-MSGID: =?utf-8?q?1764355561947842934?= XuDong Liu offered a patch to correct some clock issues detected in the probe function and Christophe JAILLET pointed out that there was a similar issue in remove. Since no V2 has appeared, I am providing this pair of commits to address both cases. This set chooses to use a managed clock to avoid the need to explicitly call clk_put from the driver. Doug Berger (2): serial: 8250_bcm7271: balance clk_enable calls serial: 8250_bcm7271: fix leak in `brcmuart_probe` drivers/tty/serial/8250/8250_bcm7271.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)