Message ID | 20230126162203.2986339-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp364304wrn; Thu, 26 Jan 2023 08:31:50 -0800 (PST) X-Google-Smtp-Source: AK7set9Q42PvtWSbGFzTPGCIIMttx193OdeDm8hh/D3AV88ZKAKHfKIH7vInLooH4AlZGyxrPk3R X-Received: by 2002:a17:90b:4c0e:b0:22c:390:16c with SMTP id na14-20020a17090b4c0e00b0022c0390016cmr3069740pjb.36.1674750710473; Thu, 26 Jan 2023 08:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674750710; cv=none; d=google.com; s=arc-20160816; b=rZCBDY6KfLqKxXGQtzz+ilOym7dn0hS9bjTGrKZE0zYz4eQRsOshfIjhRp1Lhoak4A 6tU+z9NgZ68yq5ZfmOHZVhG67jpCUqB5M7dXiNFhPpOP0AwZ37Zpg77YoSgJguKsSI/0 nwJqd+BKaY9IdbpnQbnkypy/xQ5KkW7YxTsMbyXlj8m5FWxQWzfpdIHoWu4fWtrXaDwU Yhn+6Phc0IyWn7n+SzMs0xAFVS4pWLu43G8zN69lr21npBTgS6uQKODPJkF5xTP/iz/A zJZwLkkd6agSb0hpKR2G42xcOPpDOiPyZqiaCtRr7VLtpIuv31ppogOSW9uBKSmgDC3T 8U5A== 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=eO1YUt94G5H0KkMZ69ArHAQBmTq1G4V3/VGhpLf7iVo=; b=PUvwVM10pvcEgcGWXMeJGoFFOIxYlr9/lDQXy55folTrEaZS13iQEb0AtrM0mqLpgu upqcMseXZs6drfxx/9r8ilu1NBY8d89HtNmIA51ombkLRNFnSjey8skpTJU5kLdlL9Se 2tLXe2IycqPfGeJTJzVXrEXGYM8v72JHjTpFkmHgkN1KCeHOW0mW4ALkFr/WM9YqepmP l++UZvMMmtcme9RG+wvrlKDEwTNsPScEP1fqrOr8iQG3YcQD+9trwlJ+lbwpyqAGrX79 YMQ8xNFBeblqDMYSZ85SiUk81XAGCdyL2NL6f4/JNZOcomh14tktpg1fqwqPl+NfGeog JzFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tKJBVZ/7"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jx19-20020a17090b46d300b0022724ce742dsi1882671pjb.75.2023.01.26.08.31.37; Thu, 26 Jan 2023 08:31:50 -0800 (PST) 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="tKJBVZ/7"; 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 S232657AbjAZQWV (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Thu, 26 Jan 2023 11:22:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232671AbjAZQWR (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 26 Jan 2023 11:22:17 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DD623433C for <linux-kernel@vger.kernel.org>; Thu, 26 Jan 2023 08:22:12 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AB7486189B for <linux-kernel@vger.kernel.org>; Thu, 26 Jan 2023 16:22:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35F9FC4339B; Thu, 26 Jan 2023 16:22:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674750131; bh=SQ5jhsryjRdmabv2oRisOi9tQKyvrV7uZidDTYhHI+4=; h=From:To:Cc:Subject:Date:From; b=tKJBVZ/7CYeBmXjWhJfISoo9OgvN+nP8c6o/lEwoWCEA00cwyMVwJtPCKFZLxD0vl Q3FM+145xjx8ORpanpSKifs4LiSRp2gVje4g1u8R7jzd9R/OxVdORNc7YihRoj2aH7 4EEOiRUoG0UHW1KE1FPzd+xK+f3OmhNXmuplTwjEhYb79YU4vDR3O6MnMhuUGgkBmE GO4HvXPRl52Nfck9OUn3XXgGUQ9Bt9Sst1W33Yzqj0yhiSxvRhkxBAooVp2d0GmD/n VjxsznI8CqNG3BA36PdUJCnyAL3v00x11Dz+cB8ZN3e63rdlKWwYtiHT4s0yktVKtt uN+xGm5XebOVw== From: Arnd Bergmann <arnd@kernel.org> To: Mark Brown <broonie@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de>, James Schulman <james.schulman@cirrus.com>, David Rhodes <david.rhodes@cirrus.com>, Lucas Tanure <tanureal@opensource.cirrus.com>, Richard Fitzgerald <rf@opensource.cirrus.com>, Liam Girdwood <lgirdwood@gmail.com>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Charles Keepax <ckeepax@opensource.cirrus.com>, Zheyu Ma <zheyuma97@gmail.com>, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH] [v2] ASoC: cs42l56: fix DT probe Date: Thu, 26 Jan 2023 17:21:24 +0100 Message-Id: <20230126162203.2986339-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756103400811497959?= X-GMAIL-MSGID: =?utf-8?q?1756103400811497959?= |
Series |
[v2] ASoC: cs42l56: fix DT probe
|
|
Commit Message
Arnd Bergmann
Jan. 26, 2023, 4:21 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> While looking through legacy platform data users, I noticed that the DT probing never uses data from the DT properties, as the platform_data structure gets overwritten directly after it is initialized. There have never been any boards defining the platform_data in the mainline kernel either, so this driver so far only worked with patched kernels or with the default values. For the benefit of possible downstream users, fix the DT probe by no longer overwriting the data. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- v2: reword changelog --- sound/soc/codecs/cs42l56.c | 6 ------ 1 file changed, 6 deletions(-)
Comments
On Thu, Jan 26, 2023 at 05:21:24PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > While looking through legacy platform data users, I noticed that > the DT probing never uses data from the DT properties, as the > platform_data structure gets overwritten directly after it > is initialized. > > There have never been any boards defining the platform_data in > the mainline kernel either, so this driver so far only worked > with patched kernels or with the default values. > > For the benefit of possible downstream users, fix the DT probe > by no longer overwriting the data. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Thanks, Charles
On Thu, 26 Jan 2023 17:21:24 +0100, Arnd Bergmann wrote: > While looking through legacy platform data users, I noticed that > the DT probing never uses data from the DT properties, as the > platform_data structure gets overwritten directly after it > is initialized. > > There have never been any boards defining the platform_data in > the mainline kernel either, so this driver so far only worked > with patched kernels or with the default values. > > [...] Applied to broonie/sound.git for-next Thanks! [1/1] ASoC: cs42l56: fix DT probe commit: e18c6da62edc780e4f4f3c9ce07bdacd69505182 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c index 26066682c983..3b0e715549c9 100644 --- a/sound/soc/codecs/cs42l56.c +++ b/sound/soc/codecs/cs42l56.c @@ -1191,18 +1191,12 @@ static int cs42l56_i2c_probe(struct i2c_client *i2c_client) if (pdata) { cs42l56->pdata = *pdata; } else { - pdata = devm_kzalloc(&i2c_client->dev, sizeof(*pdata), - GFP_KERNEL); - if (!pdata) - return -ENOMEM; - if (i2c_client->dev.of_node) { ret = cs42l56_handle_of_data(i2c_client, &cs42l56->pdata); if (ret != 0) return ret; } - cs42l56->pdata = *pdata; } if (cs42l56->pdata.gpio_nreset) {