Message ID | 84392f972af6176b565cdf408a1174bb43efea3c.1637006759.git.sander@svanheule.net |
---|---|
State | Superseded |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=g0FSUlX7; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=svanheule.net header.i=@svanheule.net header.a=rsa-sha256 header.s=mail1707 header.b=msxvXlQ0; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HtL1f3455z9sWJ for <incoming@patchwork.ozlabs.org>; Tue, 16 Nov 2021 07:11:34 +1100 (AEDT) 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:MIME-Version:References: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=CILvP1VMPKXKeiPrLEA/+Mqp50c8PEx0/0/lDh+Usio=; b=g0FSUlX7eKPhB2 xAlbryrxoQHqCQq+L2dho5uaAfE7KFBI8ygXtGZdM/8yb/zYmMi/W7b9m8wRZ3XK7fn10kPjEUrau U/yq2u27sPUNG03yQCZ7i9X4Y1V2NXF6A5q2cmSrG320Ok0J2YpNH7lXRxOuS7SQuc5hS4cT/ha0Z Qfs5xHuFqhWCm8tftktzBLOINXhp4xBYWyu4HssJGylUoHKh0C9nhvqJ/67NiG+UcC5/kZxeDx17N ZJTI6CUrVK2hgizsU41Ebp9I1I4i3kKqWpFJrD21ITmLOju5z4UHfZHUMk7oQ59MHwVWIJMeomX9i b6mPfWPpSktsFkSLcMlA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmiIV-00GzPC-43; Mon, 15 Nov 2021 20:09:47 +0000 Received: from polaris.svanheule.net ([84.16.241.116]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmiHm-00GzBq-2R for openwrt-devel@lists.openwrt.org; Mon, 15 Nov 2021 20:09:03 +0000 Received: from terra.local.svanheule.net (unknown [IPv6:2a02:a03f:eafe:c901:84cc:cf4f:3110:bf98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id B6942272046; Mon, 15 Nov 2021 21:08:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1637006938; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=K354TvHEnz4daM7+AMGe1kmjH6TjJ8VPrIURF65RmH0=; b=msxvXlQ06VQ+iFe/HR1rTNdaSWLQEteUqGOxvzZTNVZ6ULHtXprwGrAOMd+RNuFRZ2na10 L6o+n57Ay6FNqH9+xgl2uzwHb/kqHdABaUd8TlF+vvXpAakHqE2rgMYevo5s0j2Idz/8Am B0eg1B/UFPtA615KPQp9+WvNZHNy8lEIx4aYNg1GveopXdHZ+Vk6raeiUFlysozkQ6EIKH GYas62gZwJ6a1fnPQjygulyZ2FqWDS4VFV2GkOIhgtlQym51ge8mStJsY7+hZlYZ5nGY2E uooTis2ZvclBkybcu6gXHPcFZk+wDApirG1M3VRG9d/6zkFWSHbrd6CAb0z3ng== From: Sander Vanheule <sander@svanheule.net> To: openwrt-devel@lists.openwrt.org Cc: Sander Vanheule <sander@svanheule.net> Subject: [PATCH 2/3] realtek: Use automatic GPIO numbering for RTL8231 Date: Mon, 15 Nov 2021 21:08:41 +0100 Message-Id: <84392f972af6176b565cdf408a1174bb43efea3c.1637006759.git.sander@svanheule.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: <cover.1637006759.git.sander@svanheule.net> References: <cover.1637006759.git.sander@svanheule.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211115_120902_329456_D9DBB42A X-CRM114-Status: GOOD ( 11.02 ) X-Spam-Score: -0.9 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Set the gpio_chip.base to -1 to use automatic GPIO line indexing. Setting base to 0 or a positive number is deprecated and should not be used. Signed-off-by: Sander Vanheule <sander@svanheule.net> --- target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Content analysis details: (-0.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [84.16.241.116 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
realtek: RTL8231 refinements
|
expand
|
diff --git a/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c b/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c index f06c2d81df79..013dc238389b 100644 --- a/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c +++ b/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c @@ -311,7 +311,7 @@ static int rtl8231_gpio_probe(struct platform_device *pdev) rtl8231_init(gpios); gpios->dev = dev; - gpios->gc.base = 160; + gpios->gc.base = -1; gpios->gc.ngpio = 37; gpios->gc.label = "rtl8231"; gpios->gc.parent = dev;
Set the gpio_chip.base to -1 to use automatic GPIO line indexing. Setting base to 0 or a positive number is deprecated and should not be used. Signed-off-by: Sander Vanheule <sander@svanheule.net> --- target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)