From patchwork Thu Jan 18 08:29:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 189119 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp203128dyb; Thu, 18 Jan 2024 00:38:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFa9VuWm7CYRBsh9sNs9mEnw5Y5QNIqyqam1Iw51c+1LkXdX7n3pI5kHv3Kn2+aXwCQzJUt X-Received: by 2002:a92:c983:0:b0:361:962b:bd80 with SMTP id y3-20020a92c983000000b00361962bbd80mr528834iln.64.1705567094479; Thu, 18 Jan 2024 00:38:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705567094; cv=pass; d=google.com; s=arc-20160816; b=UzVGXBcsnuY/498moU1IwU40LdnlCqQ8eB+JZLgSjXwEhUJvFXlezyEi17qRtbC7vn d2jQOguMXkNps7xCfnwZDcSUUdCWhzC1qpX5fMSfDM4lnfbLbOlxPkiddcp6NYGM6Hhy EoIKdQf1tEJNcLRFMR/zho3+Vce6oQ+K8c4ayzL7Uaa9c61RESN6tJlBCEuNyt3kuCQR BBosZ/FYfTL3wOKxYLB9v3pINe+RyKeoh8xYYV8PvvQGb0E1N9s3+6eiazA8xAENEnxY /+wiM0omCubFhdDh6ytQuJLqdZoEUv1JBtd15FmEYXkBzUHKNbquk47Shw2Rwx3xmJrw 9QCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date; bh=oQqWbwr98ix26IpIL99aTccEVoMhVcc8pTTRq1zi+ZY=; fh=J1rN2teHt1I9rBdgumSIhon8oh/reAu0Fa/X2qRft/Q=; b=o8Cmu4qxfYaZGqQZOqs8tl9z9Ho/rJAK88HTv/xahJWo0q6D7snn4N8W+ZowsM80ZV vg7mU4ooCs6PqR1IPJ9KyLFXilyzS2ePpRNLaAzpUIU2uaKrdxBYmB0pZqzB0Jqedfop jYLDG+mvF5Ypa5vEUfxqL4g3U9161J4hO2T9UZ24JlsFnSaDopJMWPmRbcan70KsNglD r03Iq+kHTja0Ml3V3JwQfyf7JH44dPQu948tdhIo8jKjXcznJ3T5vDyI8gIn5naSmobz uVpLDnMufU5T00VhBqj4xymt5JJz7aB7pdArCiZRlNNt60ExT/qEh5Zx/BlcvO/xEEZX hyiA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-29896-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29896-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f27-20020a631f1b000000b005cf9e5947fbsi1069197pgf.270.2024.01.18.00.38.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 00:38:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29896-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-29896-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29896-ouuuleilei=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3A1FA283AB7 for ; Thu, 18 Jan 2024 08:38:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E1C728DCC; Thu, 18 Jan 2024 08:29:17 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 C1C9C28DB4 for ; Thu, 18 Jan 2024 08:29:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705566556; cv=none; b=erAVgK79eTPT/hG0iLmflzndoibO9X2kjvzU6qoDeEaHLNoOi7fxkWahzeVw8tFsHFvnJY61maWaetzxEtBocPA0h5YBZY7rC1k/2d7Abx43fN7We7u5pgxJPPxoD3VCPWwn7yglNhCEPkTrxVTpuRwmKBjE8mE8EW1+9Ip2ybk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705566556; c=relaxed/simple; bh=2AYP5CD9AZz8aB6EdtcR9jZS/dHOeqWoSjb7AvRioso=; h=Received:Received:Received:Date:From:To:Cc:Subject:Message-ID: MIME-Version:Content-Type:Content-Disposition:X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From:X-SA-Exim-Scanned:X-PTX-Original-Recipient; b=XWlYiQ7M6lyc5tFZsQ8ptRKR096wdHTvEsnVaWCdySEWAqHlpkU4dj2aDGwIQ3/HxWbAr1e6+pc81clia1dqD3/NJiqEPPiuPAvg4SmvjTqsKODasLI3lMV/xVE0D9ohfAZLieIB4SubPEyQ1VEMVCklZxbcmn6YbDVVn1o5c0I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rQNlv-0005et-5z; Thu, 18 Jan 2024 09:29:11 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQNlu-000eGH-My; Thu, 18 Jan 2024 09:29:10 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rQNlu-002Gq5-21; Thu, 18 Jan 2024 09:29:10 +0100 Date: Thu, 18 Jan 2024 09:29:10 +0100 From: Uwe =?utf-8?q?Kleine-K=C3=B6nig?= To: Linus Torvalds Cc: linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Young , kernel@pengutronix.de Subject: [GIT PULL] pwm: Changes for v6.8-rc1, take 2 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788416721839394460 X-GMAIL-MSGID: 1788416721839394460 Hello Linus, the following changes since commit 7afc0e7f681e6efd6b826f003fc14c17b5093643: MAINTAINERS: pwm: Thierry steps down, Uwe takes over (2024-01-12 16:40:34 +0100) are available in the Git repository at: git@gitolite.kernel.org:pub/scm/linux/kernel/git/ukleinek/linux tags/pwm/for-6.8-2 for you to fetch changes up to 9320fc509b87b4d795fb37112931e2f4f8b5c55f: pwm: jz4740: Don't use dev_err_probe() in .request() (2024-01-12 18:25:05 +0100) The commits are in next since next-20240117 only, but they are small and obvious enough to qualify for inclusion IMHO. Please pull this for v6.8-rc1. Thanks to Sean for his contribution to this PR. Best regards Uwe ---------------------------------------------------------------- pwm changes for 6.8, take 2 The first commit fixes a duplicate cleanup in an error path introduced in pwm/for-6.8-rc1~13. The second cares for an out-of-bounds access. In practise it doesn't happen---otherwise someone would have noticed since v5.17-rc1 I guess---because the device tree binding for the two drivers using of_pwm_single_xlate() only have args->args_count == 1. A device-tree that doesn't conform to the respective bindings could trigger that easily however. The third and last one corrects the request callback of the jz4740 pwm driver which used dev_err_probe() long after .probe() completed. This is conceptually wrong because dev_err_probe() might call device_set_deferred_probe_reason() which is nonsensical after the driver is bound. ---------------------------------------------------------------- Sean Young (1): pwm: bcm2835: Remove duplicate call to clk_rate_exclusive_put() Uwe Kleine-König (2): pwm: Fix out-of-bounds access in of_pwm_single_xlate() pwm: jz4740: Don't use dev_err_probe() in .request() drivers/pwm/core.c | 2 +- drivers/pwm/pwm-bcm2835.c | 4 +--- drivers/pwm/pwm-jz4740.c | 7 ++++--- 3 files changed, 6 insertions(+), 7 deletions(-)