From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f41.google.com (mail-dl1-f41.google.com [74.125.82.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C90E1DE8BE for ; Sun, 17 May 2026 01:28:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778981322; cv=none; b=nIj7y+RrVvLrJDz4gtXhj63Wk8ed2xIN7xve8UeOz6NTx2oitjPLvbZgyyvDf7zJb2IpWvdf2vyX+T8idPb2rVx5FQbK4VhbDiDEPYmiLITqOqk5Xi1D3f19+EU1mvKb4fYZd9qHwPtCxwEc9ULKp9P6pyZfnL37xOl7/D+3flg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778981322; c=relaxed/simple; bh=cu9Zky6li4tk2Xlj3OFkZViXL7TFqJC66jyQATVm4PM=; h=Mime-Version:Content-Type:Date:Message-Id:From:To:Cc:Subject: References:In-Reply-To; b=kJQVBbVJAGADwES33QBhZTUObIk7/fLWeZ+ahnxw0/U0LkAjENFUPiKAL9nmYi8wPIStjYFaoDzoBnD+NFbB66uzMtEoU1k6I6dQL/vI6plM3w/cqezrkJrhDQu6XJ1BLOREFf/wcobl7tyshJEILrvN2gnd8oftFo/P0MHTRGA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nexthop.ai; spf=pass smtp.mailfrom=nexthop.ai; dkim=pass (2048-bit key) header.d=nexthop.ai header.i=@nexthop.ai header.b=B5Lp9e+0; arc=none smtp.client-ip=74.125.82.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nexthop.ai Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nexthop.ai Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nexthop.ai header.i=@nexthop.ai header.b="B5Lp9e+0" Received: by mail-dl1-f41.google.com with SMTP id a92af1059eb24-134ac81c445so5182581c88.1 for ; Sat, 16 May 2026 18:28:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexthop.ai; s=google; t=1778981320; x=1779586120; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5ijbrgH3b8D533VQ6EqJABWk50CO0cbZFk7FFN+l0dY=; b=B5Lp9e+0XjvfYpbXDpgq2mGkkpRG11gRuKdI1nfw8/V1UGLjmMJi8e7GyovpLHlj75 5FNuVv9VjnQ9R+0cqEgNA4IpwbYyXpLpEYW2y4FriPdhWa/OaBjLWsmuhlDfEaDLtyo0 DKLTXbqzvO4nxsc+r8xvop1sIOjkuout+TKb6aDzfufnJYvJtN9qWppT0BgCvBEic7Es bE/iFUgKsEDdCfUzuJVq6FHtf5i3TWUge8xQj2F+6/1iSV/25HT9OGEsTVH+vS3UOcNS hF2y3KLrbelHFzaaSdAGt+Tl032sxzHY7irNx318wqO251MMDVNtygW4nJUjHzhbygss WDgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778981320; x=1779586120; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5ijbrgH3b8D533VQ6EqJABWk50CO0cbZFk7FFN+l0dY=; b=dYdNjks2PHU3kBxKctMD/px/h6FjCmffO/kstWK2IUtknE4g1clxhS1AQHBVxTwCAD He5+B9ojMDLbcHIml558Lp89tOeV7m+1Xsb4YISsGBQpE6OmofaUBZl/PIWKsX0M+aw8 85UDAl3tK1kODNGnhq9UrwSVSEaraagj0P2vCB1e7lNaZY8Nwjg0l7hxOxyQMzDUYK5X Nddf1eIIu01ECpLEYccBXgMuLnbaBDUVz8fV7lxEWFovSZXpgOfu5T42l0hlnkdR1igN mWDJYGlmH7zt2fJMTy079AWhNLucISOzbNNWtuKw/bkrr/PXhAG+AGt2p0XYD5T3J4Db Cfmw== X-Forwarded-Encrypted: i=1; AFNElJ9WQg4JjmPz+FvwP51QSAWWhr3XGuAuHAbarSlrWIl3CHF8cU9HZafWAa8YBfnnpGCqk5MM+E5nctvQRwQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8TCDlCBXToDeulqSmIuiaKpwNAodrzxfEJHKY4xfSdN9Gb0CQ TNqoyhqEuhy6jz5/XVvWIwKVsUh+yaW/rkmb709q6gC55q29Um/DhD2iaNJIBi3VmqU= X-Gm-Gg: Acq92OFpaPmqxVsUyxZHySz9Zbfeue6uBp0+QspSJnHexYi9DS9kGvsviXNnWW/CK4a Dqv+vghscuEvuZPL7cAR7n+foexswdauT+OmecaR0rjgh2cypB6StiCzuQrBcJsY2T1hfcyl94w PE7pkGXkGyaycRz5EOtv2wC8Msvodv9hVgwo0lsg6PXMLElLOnJDPr+/S+Iui7tooXvAeyoL07d eLxszAQK1yf3pnbLXMMEeC4Ejh8Qi8JaDj2MtvOGP6fuw7JAuDf/JhASVODaW8/yP7RX6EivzAe PU4AnV1+CZRGDAiTgMJPppFbqTw0QuhEwzRzsFhdXBc0ahaSmy1yS1ubBXXWtXg/dsNcvggYs9/ +g/E6MZVHkWo4CDK6uA1oe6laqAHh8pA3ICIuDB7xhBBGh5ttCc5izfeAaeb9lu2LbY4GNE7X5t tSQ8JaYHIfjYYsPdbBEX1F8KA= X-Received: by 2002:a05:7022:3d14:b0:12c:6a24:a24f with SMTP id a92af1059eb24-13504952278mr4237401c88.33.1778981319661; Sat, 16 May 2026 18:28:39 -0700 (PDT) Received: from localhost ([50.145.100.174]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-134cc2352f2sm15503968c88.10.2026.05.16.18.28.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 May 2026 18:28:39 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 16 May 2026 18:28:38 -0700 Message-Id: From: "Abdurrahman Hussain" To: "Peter Rosin" , Cc: , , Subject: Re: [PATCH] i2c: mux: reg: use device property accessors X-Mailer: aerc 0.21.0 References: <20260512075059.258309-1-peda@axentia.se> In-Reply-To: <20260512075059.258309-1-peda@axentia.se> On Tue May 12, 2026 at 12:50 AM PDT, Peter Rosin wrote: > [note change of email adress, I'm now using peda@lysator.liu.se] > > On Thu Feb 26, 2026 at 10:28 PM PST, Abdurrahman Hussain wrote: >> Hi Andy, Peter, >>=20 >> It looks like the patch is marked as "Changes Requested". I haven't >> heard any feedback lately. Did I miss something? > > Hi! > > First of all, as usual I'm sorry for being slow to respond. > > One specific thing I noticed with your patch that is a potential > problem is that it replaces the open coded little-ending/big-endian > logic with a call to device_is_big_endian() which is not an exact > replacement. The logic provided by device_is_big_endian() is simply > not equivalent. Further, the new behavior does not match the device > tree bindings. > > At a minimum, you need a matching patch for the binding before doing > something like this. But that would of course only expose the risk > for regressions. > > Since there are apparently few who can test this driver, and even > fewer with endian issues, I'm reluctant to make these changes. I > would prefer to keep the endian logic exactly as it is. > > I have not looked all that closely, but you also make the call to > devm_platform_get_and_ioremap_resource() unconditional. Why will > that change not cause regressions? > > Your commit message is lacking, you make these changes but only > talk about extending support to non-OF platforms as if that is > the only thing that is going on. > > And, the initail problem still stands. I would like to see some > tags that indicate that the driver still works for existing users. > Especially so since there are changes that look problematic. > > Cheers, > Peter Hi Peter, A gentle ping on v3 [1] -- just checking whether you've had a chance to take another look. The conversion was reworked deliberately across v2 and v3 to keep existing OF users behaviour-identical: - The three-way endian fallback ("little-endian" wins, then "big-endian", else the compile-time byte order via the original __BYTE_ORDER preprocessor block) is preserved verbatim. device_is_big_endian() is deliberately *not* used here because it ignores "little-endian" and introduces "native-endian" semantics that would diverge from the binding. - The "if (!mux->data.reg)" guard around devm_platform_get_and_ioremap_resource() is preserved so a platdata caller's pre-ioremapped reg from struct i2c_mux_reg_platform_data is not clobbered. - The dev_err_probe() wrapper at the probe_fw() call site is kept so the helper's silent error paths still produce a dmesg line on failure. Tested on ACPI hardware (two of our switches). The OF-only in-tree users are on PowerPC/SH so I couldn't bench them, but I'd appreciate a maintainer read to confirm I haven't missed anything binding-visible. Happy to respin if you'd like anything tweaked. [1] https://lore.kernel.org/r/20260513-i2c-mux-reg-v3-1-0fa7242605bc@nextho= p.ai Thanks, Abdurrahman