Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1044525rwr; Thu, 27 Apr 2023 11:28:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Of7/+P8hKfbRk2gAVsmkztDQqr78l0x2eMxi0l5blkqH1WVZERT2daDLEYNudMbgb8OYg X-Received: by 2002:a17:90a:a006:b0:247:2300:87d9 with SMTP id q6-20020a17090aa00600b00247230087d9mr2815215pjp.34.1682620124923; Thu, 27 Apr 2023 11:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682620124; cv=none; d=google.com; s=arc-20160816; b=GVC+yvX6izroujtFibKlyZUlrid4h7UcplVYg2LwSY/1KqgBEtWCWLdUN3dM9uQJ+X Xwv1celyRhPIEfjqhcVjqYjxPyaKqmJ5a+lGGSAtfTAape7Ir+y6oNt7G1SvYNWTeLUU zy6weFr2gqKJusMii1DM0u+rBa0COtVjqRFhxL8uuNgBZAb8WUMj0df2wl1+AyrZ/4G5 ZQOupzzxxSOnUmU7le/R/uy7BQGWhHMh1iGDkcoiTHVX49W+wlvKocb6RCpmvMceLzqd souQUUik1ImUUP2ohT6/4WCF5Za+KB30ODBAPBNYLYtpJkZ03vbX9meb12KNKFsl/bDz dhyw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ls8-20020a17090b350800b0024987e7a8d8si192042pjb.183.2023.04.27.11.28.29; Thu, 27 Apr 2023 11:28:44 -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 S244281AbjD0SUC (ORCPT + 99 others); Thu, 27 Apr 2023 14:20:02 -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 Content-Transfer-Encoding: 8bit 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 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(-) -- 2.34.1