From patchwork Mon Oct 16 07:29:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 734916 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8CD7CDB465 for ; Mon, 16 Oct 2023 07:29:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbjJPH3U (ORCPT ); Mon, 16 Oct 2023 03:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbjJPH3U (ORCPT ); Mon, 16 Oct 2023 03:29:20 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABD24B4 for ; Mon, 16 Oct 2023 00:29:18 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9ae2cc4d17eso673389966b.1 for ; Mon, 16 Oct 2023 00:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697441357; x=1698046157; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rzKbeL+RltdAkMywXo6rwpyMCBTadikUP8iBiYw2KH8=; b=Fa9DWsMkPSAFo8kzfD2lgzuWw8u3Syl14mHMx97nzGVvfLKtmqvCPik5GJdvI5KXsm YK/WyYq+YeAz873pnBp+gn/Evr4mDDXm/7G7G2n+g9CW2bKVQi6NiWc+VtcC+NaexUEV Tg/CKVT1jamwYKJXXqp3rEuSjSBzWe2WTF2x61tfr07T56jQ6cIGRDxPaX3LbmgXTjEo XE2L334DYG+2KHwsxkaxZ/9rJWSWNtbCxpX2rI5It2Hh7LmOYQtzwUpRXQ1o00FmSxen Ne+jzPlh0q2HNKjhGfSS91D15HbwF/kPhJHxk0u/CdTq/wjDnMYaMleymCGksELky/L7 6ImQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697441357; x=1698046157; 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=rzKbeL+RltdAkMywXo6rwpyMCBTadikUP8iBiYw2KH8=; b=kTDWDDEt5zU/54F8WdCWmJBGeDoGp/QPuaEVPM6JJb87g2LBTtpwP+4oQKICMJyitE 6yTfcozgKyb95YvtzSNJk7flMjisb/uEo2pKtPaUr5cExBSltN4omqqtihyBtuS19B6O zlOfRdTJFiyTyHcFB9wBcwJPTtSBosR86Fxf4GyXgR8BZINJvuu5jKWk6QsBBdeYcU0q 6X/qahiDBOfD3XYLGENoC7mzf3oPuQ1vQz5cNXURDcHi84f9LxSbW8gv/gRSTkD4Dass NYBk0EvNjEbCFODV9X9bZUumUwf88pECdReCQvPjz1LbHEtfN3dpNvyrwdrFDERizoYO BqLw== X-Gm-Message-State: AOJu0YxKdDPhmdJ2gD47InTUxX3M+OgirTmTDn0OjGIF7yB9ekn9gN4A oXGuB4jFQtvBjTvJYYxxFrmdrA== X-Google-Smtp-Source: AGHT+IGYRxGC8BqeUozOgg4NTbh/Jlhq/lYDZ8UNbvwPqpI4s0ghq19dNlzi0lfqffb4DNNxhWxA5w== X-Received: by 2002:a17:906:3012:b0:99d:e617:abeb with SMTP id 18-20020a170906301200b0099de617abebmr27876199ejz.23.1697441357118; Mon, 16 Oct 2023 00:29:17 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.154]) by smtp.gmail.com with ESMTPSA id v3-20020a17090606c300b009b29668fce7sm3480791ejb.113.2023.10.16.00.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 00:29:16 -0700 (PDT) From: Krzysztof Kozlowski To: Olof Johansson , Arnd Bergmann , arm@kernel.org, soc@kernel.org Cc: Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Alim Akhtar , Krzysztof Kozlowski Subject: [GIT PULL 1/2] ARM: defconfig: pull for v6.7 Date: Mon, 16 Oct 2023 09:29:10 +0200 Message-Id: <20231016072911.27148-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The following changes since commit 0bb80ecc33a8fb5a682236443c1e740d5c917d1d: Linux 6.6-rc1 (2023-09-10 16:28:41 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git tags/samsung-defconfig-6.7 for you to fetch changes up to 438fb575463fc490e6200e5e28d02159492a97f8: ARM: exynos_defconfig: add driver for ISL29018 (2023-10-06 13:57:37 +0200) ---------------------------------------------------------------- Samsung defconfig changes for v6.7 Enable several drivers for boards with Samsung Exynos ARM SoCs in exynos_defconfig and multi_v7_defconfig: display PHYs, AHCI DWC, TM2 touchkey (used on ARM and ARM64 Exynos-based boards), Samsung camera sensors and Intersil 29018 light sensor. Enable also IIO in s5pv210_defconfig used by MAX17040 fuel gauge driver. ---------------------------------------------------------------- Marek Szyprowski (6): ARM: multi_v7_defconfig: make Exynos related PHYs modules ARM: multi_v7_defconfig: add AHCI_DWC driver ARM: exynos_defconfig: replace SATA_AHCI_PLATFORM with AHCI_DWC driver ARM: multi_v7_defconfig: add tm2-touchkey driver ARM: multi_v7_defconfig: add drivers for S5C73M3 & S5K6A3 camera sensors ARM: exynos_defconfig: add driver for ISL29018 Svyatoslav Ryhel (1): ARM: s5pv210_defconfig: enable IIO required by MAX17040 arch/arm/configs/exynos_defconfig | 3 ++- arch/arm/configs/multi_v7_defconfig | 6 ++++++ arch/arm/configs/s5pv210_defconfig | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) From patchwork Mon Oct 16 07:29:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 734185 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6619CDB483 for ; Mon, 16 Oct 2023 07:29:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231135AbjJPH3Y (ORCPT ); Mon, 16 Oct 2023 03:29:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjJPH3Y (ORCPT ); Mon, 16 Oct 2023 03:29:24 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3600CAD for ; Mon, 16 Oct 2023 00:29:22 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9b64b98656bso650690466b.0 for ; Mon, 16 Oct 2023 00:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697441360; x=1698046160; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LqUJPR82M/GrL4dP6m89n4qgbfjI0fh+82Bf+wW3Bm0=; b=e+/+Tbw6VZhEeN83pRHRzPBNHOKkdOZ6+6xIUIcnZW4VuaoS+qSfQnhaGmhfDgedb4 0l+e0zOtAn6sygGw7gLSVk4mbISaVib+7QsFjJEk1PpYGqDCaqoyQUsMfAwetqtWazST y5DoH8OA3GxdlDapmEkJ1Mb7fwfkNlzFINCcknOIA7WC5oDBCKXXMjTMDMlq9fY3XW3+ Te93ecgmpmwmQVPSj6Avo+NbgI0ZEK0l5jkkUAvw3/KhZ8Ef7mfmk/kbiGeOMWLqT02W i+UQ+RNWFQEXDZ5Kyn2n0UUi1wcIhW3Y6FBaRTNc2WS7QAh2LS0ubGSNU6Vh8FHbQPEX gO0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697441360; x=1698046160; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LqUJPR82M/GrL4dP6m89n4qgbfjI0fh+82Bf+wW3Bm0=; b=ShCPhW2GhdndmPwx8/JROhMAdEkxSL0BfcrKw4rEKiAVm1dXUOC2zYel6kO1lFGCYK mNUtwsycLKpjatQoSri0XrVI8DGmwvRWwajLTGotlYPW6DKyn1nWN5Lm5ovSTP2wZwcN tglI8+lSr3qThe2KYZPMJ1A6ogpHyjoA4NZu3hNuCfvfM7B+j3TlGm2ovJTQDf3hpP1X Qq3b4MAwGK9QfNXzkNKskB1xgafsWlJXjKR9Gz+YmyI9Oggppx1BuRzRHGIdCAN+Jlnk sf4YBgjVn2FntMCk47kgJx4aCcd1pmaHQBCUCS2sC5sd22R8JumffRYaSyjUelMtt7od 7rcg== X-Gm-Message-State: AOJu0YyveKHTa0HEB0efAswNR3HYi0UsBquLKwP9yg4Dy5dTANP8N1y8 VAEX3pbJhUz2Z67WGtV1yQSlsA== X-Google-Smtp-Source: AGHT+IHKAAmAs/xPLBwNLBR/dxRcRGzHtNIhdw2eBqAu5qPkmdZhT8WwNLowzzN4VCvYh6lJBlAutQ== X-Received: by 2002:a17:906:ef04:b0:9be:16ba:19ab with SMTP id f4-20020a170906ef0400b009be16ba19abmr6175626ejs.29.1697441360797; Mon, 16 Oct 2023 00:29:20 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.154]) by smtp.gmail.com with ESMTPSA id v3-20020a17090606c300b009b29668fce7sm3480791ejb.113.2023.10.16.00.29.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 00:29:20 -0700 (PDT) From: Krzysztof Kozlowski To: Olof Johansson , Arnd Bergmann , arm@kernel.org, soc@kernel.org Cc: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Alim Akhtar , Krzysztof Kozlowski , Krzysztof Kozlowski Subject: [PULL 2/2 PATCH] soc: samsung: exynos-chipid: Convert to platform remove callback returning void Date: Mon, 16 Oct 2023 09:29:11 +0200 Message-Id: <20231016072911.27148-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231016072911.27148-1-krzysztof.kozlowski@linaro.org> References: <20231016072911.27148-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: Uwe Kleine-König The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is ignored (apart from emitting a warning) and this typically results in resource leaks. To improve here there is a quest to make the remove callback return void. In the first step of this quest all drivers are converted to .remove_new() which already returns void. Eventually after all drivers are converted, .remove_new() will be renamed to .remove(). Trivially convert this driver from always returning zero in the remove callback to the void returning variant. Signed-off-by: Uwe Kleine-König Link: https://lore.kernel.org/r/20230925095532.1984344-32-u.kleine-koenig@pengutronix.de Signed-off-by: Krzysztof Kozlowski --- drivers/soc/samsung/exynos-chipid.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c index 7ba45c4aff97..3fd0f2b84dd3 100644 --- a/drivers/soc/samsung/exynos-chipid.c +++ b/drivers/soc/samsung/exynos-chipid.c @@ -158,13 +158,11 @@ static int exynos_chipid_probe(struct platform_device *pdev) return ret; } -static int exynos_chipid_remove(struct platform_device *pdev) +static void exynos_chipid_remove(struct platform_device *pdev) { struct soc_device *soc_dev = platform_get_drvdata(pdev); soc_device_unregister(soc_dev); - - return 0; } static const struct exynos_chipid_variant exynos4210_chipid_drv_data = { @@ -197,7 +195,7 @@ static struct platform_driver exynos_chipid_driver = { .of_match_table = exynos_chipid_of_device_ids, }, .probe = exynos_chipid_probe, - .remove = exynos_chipid_remove, + .remove_new = exynos_chipid_remove, }; module_platform_driver(exynos_chipid_driver);