From patchwork Thu Oct 12 08:42:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 1847318 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=fQnyLTTg; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=G7+ZnIl3; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S5jrC5m7nz23jX for ; Thu, 12 Oct 2023 19:44:59 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VBw8KR33xJm0jm7PTDVnm03nNqOGiFTwX79G4pOeHOI=; b=fQnyLTTgnpjNPU gQH1sPWnZJdpB2p41knr2ldsHmdykognfGCBCtSFSbUiqMDvN8CIPm9kAPGPyy1hzJSvVmAER16kC kjvK1FWn10410CtuA79cytJjzlZgSBugwm9udBS+qTyzuf6jJdMk4Am5HDW0eVeDZWLXQU9Srw9gM 7AeHzyfdubr66bexOenJZ2YQVpiHwaffeHVzjiMjg2HG/WOCTEPznacurlWkDUyqc+35h2qHKLwCC EK+DpCk3gYckEJ5CL+sQV8EMNFChQuMXGgZhoY7op/bo6LU7taaa2iTTpOXWXslGW5z5APF1y1zHn +X8Ll0QmGSSZv4JWc/Ow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqrHE-000E6l-1J; Thu, 12 Oct 2023 08:42:40 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qqrGz-000Dvg-1r for openwrt-devel@lists.openwrt.org; Thu, 12 Oct 2023 08:42:28 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-503397ee920so928621e87.1 for ; Thu, 12 Oct 2023 01:42:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697100143; x=1697704943; darn=lists.openwrt.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Lr62bwlrYG40uVL1DURpMK5oHschff/MYZAZ/+IB6ms=; b=G7+ZnIl3KG/sfzHQOWJehXpy2So6Vmw8sCBQCgbfrrfMZVkUSBbk2junvnDCzaiGwT IScCJP3bFrq64PRhJLY6aiwottlNxNBtdWJB0RfLHmXJlThu5/gxYm0JJB+58VgbUBki Krskv0nq1CDod7TXbq4LoRb2csif2HusFiHPySx+ndaCEWQPv6qtYgZlAru85ip2BMqk svDtTrxS3hQJEn/xDl+gVW2iPNNB9OSRj0jOamndRae1J+iVzn1gRvTODNAZfsCcHLFT J5Jb4PRPhrl5FO+2JcHoBd2tH8NmNXjIV0xNnJtWxHt8wtxn5n5WHlYX5aUL2p+PBVgY 9e5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697100143; x=1697704943; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Lr62bwlrYG40uVL1DURpMK5oHschff/MYZAZ/+IB6ms=; b=IsM/NPjEAMRA29ZSsjlKMQGFtBzhJjyYiOi0qmEb58v6+KvF2M2eTAuUUQoXW564dX 0L3oihkvK5BOrUmryMiU/fCB316VgqbQeGmrHwPqYMpDymUHBH4BgGePk4LhW81JA+N8 dUpNG5ZN83ScJdLgHvGweUDCkXRFOQPRVRLijL8gH3tfzYSvDP/mRq5+mDVQT6qeTsRO B8YKeGdtVdfRAoMOP4H4E+rLbcU3jzjJrZot6ZdL7FrHoVqhE5CF+J7ZW3M0OV9T62fY aIJvpbQdqTdvsuvgWCGSxMYS9K9jWDkyDwPaPdAOlifcu5UpSt95HjLiekmDdUdOZtmr NCYA== X-Gm-Message-State: AOJu0YywXdq0qViDu12/T3L6MMTqeeLBiJo0h2CEVCkNQrasC3v7aK+g 1cpvY6NpxAJGKpO3c8HcCxtBlB20G6x4URG2Br0= X-Google-Smtp-Source: AGHT+IG+5xKF6+uVaXC/MbbUv28GecVCbw6+wF9CYi/Q2+g26jAY7n0+XZpwN4gDbxE7lHrZEvARUA== X-Received: by 2002:a05:6512:4026:b0:500:94c5:6e06 with SMTP id br38-20020a056512402600b0050094c56e06mr26160693lfb.56.1697100142850; Thu, 12 Oct 2023 01:42:22 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id o9-20020a05651238a900b00501c8959f6asm2705043lft.98.2023.10.12.01.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 01:42:22 -0700 (PDT) From: Linus Walleij Date: Thu, 12 Oct 2023 10:42:19 +0200 Subject: [PATCH v3 04/10] kernel: Add kmod-rtc-r7301 MIME-Version: 1.0 Message-Id: <20231012-ixp4xx-v3-4-e09c74712c0b@linaro.org> References: <20231012-ixp4xx-v3-0-e09c74712c0b@linaro.org> In-Reply-To: <20231012-ixp4xx-v3-0-e09c74712c0b@linaro.org> To: Imre Kaloz , Krzysztof Halasa , Howard Harte , openwrt-devel@lists.openwrt.org X-Mailer: b4 0.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231012_014225_761281_B1311196 X-CRM114-Status: UNSURE ( 8.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) 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: To support the IXP42x platforms we need a kernel module for the Epson R7301 RTC so we can load it as an optional module. Signed-off-by: Linus Walleij --- ChangeLog v1->v3: - Use AutoProbe, drop preinit hook. --- package/kernel/linux/modules/other.mk | 15 +++++++++++++++ 1 file changed, 15 inse [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:133 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hauke Mehrtens , Linus Walleij , Raylynn Knight Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org To support the IXP42x platforms we need a kernel module for the Epson R7301 RTC so we can load it as an optional module. Signed-off-by: Linus Walleij Reviewed-by: Robert Marko --- ChangeLog v1->v3: - Use AutoProbe, drop preinit hook. --- package/kernel/linux/modules/other.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 2cd01d84d516..feee39602db9 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -728,6 +728,21 @@ endef $(eval $(call KernelPackage,rtc-pcf2127)) +define KernelPackage/rtc-r7301 + SUBMENU:=$(OTHER_MENU) + TITLE:=Epson RTC7301 support + DEFAULT:=m if ALL_KMODS && RTC_SUPPORT + KCONFIG:=CONFIG_RTC_DRV_R7301 \ + CONFIG_RTC_CLASS=y + FILES:=$(LINUX_DIR)/drivers/rtc/rtc-r7301.ko + AUTOLOAD:=$(call AutoProbe,rtc-r7301) +endef + +define KernelPackage/rtc-r7301/description + Kernel module for Epson RTC7301 RTC chip +endef + +$(eval $(call KernelPackage,rtc-r7301)) define KernelPackage/rtc-rs5c372a SUBMENU:=$(OTHER_MENU)