From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E9C22E5425; Tue, 8 Jul 2025 16:24:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751991884; cv=none; b=LhZkQFJRQlV6jobX6yuUmzDMHIVZm0OJyt/EYwGn6WJ/pjpsrlETFJUIA79vGevNfPNGTkTY4aX7ugdq8t6Hn2bh7MLcvXT4/2pI4pvuAFPf8wf7Q7KW4SWp8+gUEAigHeMWItScjuOzbpvR4cF/iaZy+w2IHMyyaHIeV5omL3w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751991884; c=relaxed/simple; bh=fKqoxrphlzUyiz5V58dozrtUH8dIvYJNTb3ofdENO2g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NOJ1EW2W2fmHEI+JY7hWHhwX4WJr28unUughiSfnVswMYudOZrypqiX/DZgWQABLg73mB9MkqMBgOC2La8ktRlLpRPcQt9L+RSQFKYmZjLgd88nlnnbqliBY7fY2eiDWBebmIXIIhjRDrSthqiZuHX7m7ocTi2ydU03NER82l8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B3800DVb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="B3800DVb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9935EC4CEED; Tue, 8 Jul 2025 16:24:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751991884; bh=fKqoxrphlzUyiz5V58dozrtUH8dIvYJNTb3ofdENO2g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B3800DVbN2fPIySEWn17qj+TZggvftF5JLBsO7xJ8SMU/MRTaOeGhXOSY+WMplQ2T qNFVIgI4pQQbQO9tWUVzwJlBPfsiMtqlIhSBgrqesoa7mzy5UicYUG7K4jjsZvLIpS cJCJek+K/pZmoox9to9R/+2aQiew0jJpuLEPVa1I= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Elena Popa , Hugo Villeneuve , Alexandre Belloni Subject: [PATCH 6.15 002/178] rtc: pcf2127: fix SPI command byte for PCF2131 Date: Tue, 8 Jul 2025 18:20:39 +0200 Message-ID: <20250708162236.617915940@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250708162236.549307806@linuxfoundation.org> References: <20250708162236.549307806@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Elena Popa commit fa78e9b606a472495ef5b6b3d8b45c37f7727f9d upstream. PCF2131 was not responding to read/write operations using SPI. PCF2131 has a different command byte definition, compared to PCF2127/29. Added the new command byte definition when PCF2131 is detected. Fixes: afc505bf9039 ("rtc: pcf2127: add support for PCF2131 RTC") Cc: stable@vger.kernel.org Signed-off-by: Elena Popa Acked-by: Hugo Villeneuve Link: https://lore.kernel.org/r/20250530104001.957977-1-elena.popa@nxp.com Signed-off-by: Alexandre Belloni Signed-off-by: Greg Kroah-Hartman --- drivers/rtc/rtc-pcf2127.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/rtc/rtc-pcf2127.c +++ b/drivers/rtc/rtc-pcf2127.c @@ -1465,6 +1465,11 @@ static int pcf2127_i2c_probe(struct i2c_ variant = &pcf21xx_cfg[type]; } + if (variant->type == PCF2131) { + config.read_flag_mask = 0x0; + config.write_flag_mask = 0x0; + } + config.max_register = variant->max_register, regmap = devm_regmap_init(&client->dev, &pcf2127_i2c_regmap,