Message ID | 20231006125557.212681-4-m.majewski2@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22CFBE81DE9 for <linux-arm-kernel@archiver.kernel.org>; Fri, 6 Oct 2023 13:01:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=29R1M11N7ekZMKMI2ZTeZdCAjjE3zgiKKvkqKeHQjgk=; b=SUoZSEbyvYgrgS LOR+5/+vqa5YG0ZCv/U7TWdRA/BgnmTEAXPV0Lj+NHp/3MqXj3Iqd8t0EI9uqRaKSlZHAk3bh7QuD yRAUYrK8eOQNF5SHR0F1mZGoY6yQtV+z7sOk1jcrSCDdjzObEjS8Dk+Oj/aovh1LmOL0jhCXZLBB1 Vcm9E3yP4v/6XQzN5PokSb2BlovpYJVXCRMTvwvebEm4uPAu3jhltidRChdnbCLfFqlaMVTvRSavj +qDWTAmo+XuEXSX+kYiJIOrInulYRP8Mhe07/FDxku3O+d1RIRgc2zjihqghss2/dNT4EHkvnFT49 av8elrKN31/DAyM2wJtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qokRo-005q8l-0E; Fri, 06 Oct 2023 13:00:52 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qokRg-005q54-2Q for linux-arm-kernel@lists.infradead.org; Fri, 06 Oct 2023 13:00:49 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20231006130043euoutp01d02bb64e74c21db9c81dbde0ef2dd13a~LhjQ9mr4O0243202432euoutp01n for <linux-arm-kernel@lists.infradead.org>; Fri, 6 Oct 2023 13:00:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20231006130043euoutp01d02bb64e74c21db9c81dbde0ef2dd13a~LhjQ9mr4O0243202432euoutp01n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1696597243; bh=AOZzdNsiIIIEQWK65sqBy/MBDyGZPZVzaQ8WJ1M1Fmc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A6twxmSedXgxWZ+cur1+JhVEgwvc8K9hJs3uaoZt52U1oylvmU6wqUEPAqbsdx8lD WciZ4JetzExz28Xf/TnO5/FWUts+TBQRAEB67GngN3wDhPToAWFoo9LIgesTCPUFFH 3oKisOIgXAtPp4fkRkWY2mM6BTlvXp6D2j3si/30= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20231006130043eucas1p2b7bdba9576ded243fd11d5b5afad1d5f~LhjQqO_Zh3171131711eucas1p2z; Fri, 6 Oct 2023 13:00:43 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 81.5A.42423.BF400256; Fri, 6 Oct 2023 14:00:43 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20231006130042eucas1p10679037ebd812183a5edff0b7c1e8b6a~LhjQSIonV3121531215eucas1p1r; Fri, 6 Oct 2023 13:00:42 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20231006130042eusmtrp1a1746a9796ef019077cb3211a98852a3~LhjQRnFkb3155531555eusmtrp12; Fri, 6 Oct 2023 13:00:42 +0000 (GMT) X-AuditID: cbfec7f2-a3bff7000002a5b7-52-652004fb3294 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id FE.AA.25043.AF400256; Fri, 6 Oct 2023 14:00:42 +0100 (BST) Received: from AMDC4515.eu.corp.samsungelectronics.net (unknown [106.120.51.28]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20231006130041eusmtip2d61d013f799ccdcb01385d85e9f977e5~LhjPax9vM2282522825eusmtip2c; Fri, 6 Oct 2023 13:00:41 +0000 (GMT) From: Mateusz Majewski <m.majewski2@samsung.com> To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mateusz Majewski <m.majewski2@samsung.com>, Tomasz Figa <tomasz.figa@gmail.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Sylwester Nawrocki <s.nawrocki@samsung.com>, Alim Akhtar <alim.akhtar@samsung.com>, Linus Walleij <linus.walleij@linaro.org>, Marek Szyprowski <m.szyprowski@samsung.com> Subject: [PATCH 3/4] pinctrl: samsung: choose GPIO numberspace base dynamically Date: Fri, 6 Oct 2023 14:55:56 +0200 Message-ID: <20231006125557.212681-4-m.majewski2@samsung.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231006125557.212681-1-m.majewski2@samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMKsWRmVeSWpSXmKPExsWy7djP87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JgMAAA== X-CMS-MailID: 20231006130042eucas1p10679037ebd812183a5edff0b7c1e8b6a X-Msg-Generator: CA X-RootMTR: 20231006130042eucas1p10679037ebd812183a5edff0b7c1e8b6a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20231006130042eucas1p10679037ebd812183a5edff0b7c1e8b6a References: <20231006125557.212681-1-m.majewski2@samsung.com> <CGME20231006130042eucas1p10679037ebd812183a5edff0b7c1e8b6a@eucas1p1.samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231006_060045_054397_EAEBFCD5 X-CRM114-Status: GOOD ( 14.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Fix Samsung pinctrl driver static allocation of GPIO base warning
|
expand
|
diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index 511a3ac51f76..952aeeebb679 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c @@ -968,7 +968,7 @@ static int samsung_gpiolib_register(struct platform_device *pdev, bank->gpio_chip = samsung_gpiolib_chip; gc = &bank->gpio_chip; - gc->base = drvdata->pin_base + bank->pin_base; + gc->base = -1; /* Dynamic allocation */ gc->ngpio = bank->nr_pins; gc->parent = &pdev->dev; gc->fwnode = bank->fwnode;
Selecting it statically is deprecated and results in a warning while booting the system: gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation. Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com> --- drivers/pinctrl/samsung/pinctrl-samsung.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)