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 825C42E543D; Tue, 8 Jul 2025 16:24:14 +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=1751991854; cv=none; b=l9fd0e1XkAPrd6ImQz/MnHIOYa65cdpV7Sc8WxXNOFP5o0tU5lZ1rpfrOJ0oGPUIIpHTaQy6GffGeYxd9mSgbqY4XEP5pHAwrASrv4HrMRRmmVH4LydPQlalgm8DASufZ/LHBHHULZfHPZInfmvih8rRBWJ9ZDYg9DMp37++yhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751991854; c=relaxed/simple; bh=S9aByOSOY92AJlpxzbwGllzyNY92HL9l9En3wG/2ifg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=E3gZANiZ9AknXBzINw2R7oeCfxAsceKxRwH2JyViajPqHPwm+cmOIDsQ1A00ofmtNIZCGx2wyejBI91r4jomn1FioIL5yg6CAGh7Sxwr5x5gcJQC/qey5gKdYBFy0D7sx7K+8r9vaDBSo57jzILs7bYKhrLFqcXrIoYS8RRoy2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R8c29Vwx; 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="R8c29Vwx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A86BEC4CEF0; Tue, 8 Jul 2025 16:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751991854; bh=S9aByOSOY92AJlpxzbwGllzyNY92HL9l9En3wG/2ifg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R8c29VwxM2XguBxRRtbOheUZuZc+T2SMaPOV62XQrbddfO3aY8cyn4JxKtoLhsbXz SezMGgqbE8upmRkTRik/gxcuR0QgYl9uVvCfkecRVcQC/1YJ2lDwvyxY3y8Xi/jOQY 05ZcJoE9bbPSYYF2Xlsr2DsaE7kLPusZUdHkAqCU= 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.6 002/132] rtc: pcf2127: fix SPI command byte for PCF2131 Date: Tue, 8 Jul 2025 18:21:53 +0200 Message-ID: <20250708162230.836575145@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250708162230.765762963@linuxfoundation.org> References: <20250708162230.765762963@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.6-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 @@ -1383,6 +1383,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,