From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 449452E7F3F for ; Thu, 25 Sep 2025 21:46:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758836774; cv=none; b=tlKHF0r0O/Vhai6fcfg1HpELHUwsadouUPP3LeNhYb1AxRwy+cuauEI34Z6czow0GBEPUZwYMY2578QJQjbe/qi7ZuhNtJ4zfI3SipQ9oMfxynOh3eQ8EE16q0ydCRa7HCk+uI/snm8KaP+2KAZNO3ngVp+pj4xF/CnZpPMfFZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758836774; c=relaxed/simple; bh=jw4AgoZPRQFGh3biyZBcEMRiVCUFSYcUXqzTm/yIDkA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rdydsHuEpkHMZ1a63J7h//O5ndhli+6z/qRMKYlHIO1An5ULRPu4xkFlVeQGUV5r17OUhUHuIlJtNEf2uQDb7GP/LCOzOMGUIoL3nbVFpnwDSKx0DbygFXnMI8Ro/7i+QmFRUqMNmbd4zApLRaQ6y/dLKgifteFnDFfa9jwiGy0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MTgHEwM3; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MTgHEwM3" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-46dfd711172so12005545e9.1 for ; Thu, 25 Sep 2025 14:46:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758836770; x=1759441570; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jw4AgoZPRQFGh3biyZBcEMRiVCUFSYcUXqzTm/yIDkA=; b=MTgHEwM3CAnNT5IOqybGvfHf7sfUgs5YLEaWESDDfLZhOg0HO7DUU0Td/QtOVTmPZb MOv4Mt06RgAQEFH08AfIKddjTQt8MhRo/DUxSILI2Vynq8vOc6sOY08Dob6SPEIX2mhb JaZaa4dSt0FTY6cGQpATdCTzoYvKNySJiLl16sJoGsarz4GZN9nGk0ug+LbWNtukPm2w NFmeW6Pwx4B+9wvpptWh4u9l4erNr5ElZjyFZiLohszUmI0wTFtwOi5jwAwNBBIj1FiL we7BleCUuqTeqit2lLSx0PxP7cFbTEEuKUryrBaKAwvRYj3lbPYG66MB7PVNOMsLd8+D 1fng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758836770; x=1759441570; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jw4AgoZPRQFGh3biyZBcEMRiVCUFSYcUXqzTm/yIDkA=; b=BHiM05ikKV68GE0jaBsgwYKYcNRiygwH3AL0ujpBf07RYtz5ZHUqpOugZI8AVlc5Ly Zhh5pdQpMizOnx3UyBpiRMPq5CL6nko/VnwSV4sGG3ME8FIT0c9+lQMKmM3w0B9ShDtc zzrOkZTbNYJbzT0j/d9go98fJO3H/QbJSgCpg5adE7f0hFeMPF2ArH1NXUSiXLDh0Xc5 CfaVI6GENQc0NHqVtZENWdhoeA3iROz/TNJcBdyBYGFC17lCtHlos5mm5P08UPb0BlA7 qdJ3cjl4KLUzdpTAnRdbArlwp3DZQODCN1ok9hX+OmTtci01Vov0DSFvTBDUI431Qlmx u6DQ== X-Forwarded-Encrypted: i=1; AJvYcCW1Rjn3Dtf95q7apr8TKZfXn97PCAa4QYaL0LdLxLYNGe2vkXp7AR8/Bo3n69WdWO2yyPaWWSaEoe8M@vger.kernel.org X-Gm-Message-State: AOJu0Yzomrjs37Rk/8+Q02m6W5UO1oqugExqtwYNhEyhPljujwMlkrcC off79Lkrr7XgylgWeS7kU7jYIVR+HTyrg4UMBpKy2CmzK4zTTSLfRsmK X-Gm-Gg: ASbGncuEPI6Q3yAkjtTJCpmDW6SV0PbKN44j63bSohvjr7/XMkodR94WzwSje+CMs6r Sw5kyKcCwT7XHdZHQDHRVsbrucT4fvN+EnW3+yF8k0VnVB5pstj//WUYUVT18XwHBlLiY0idbCZ iLYDmJxXzFVIWs3t/2+sH2ZBNErz5ttBiAvCq8eKU4hHdKTPjxiE14jeaLpLIOzcVYvkouFCLh3 ct4WvZ6XlDS5R0tsnsPYgB17Wr+8TldDnm7FP5IIFLraA1CCUPVGRWaxmEkl5QolzlrDsTerr99 bROhwmpThuPRPNeXtfu/MovWwXryBBNbtNMg6f0qSaxK2V7edgMB1r9eTWe1YsWGxPP4bRBGHP/ yIwcsNT5NmIBdqbO5LbGd93BrbhlnXmasMw/oLGhkLQ6jA/SaBemgOJfmbQcGCOdigRwcD7Ckmf 15TvwznqWZ654B3+FV X-Google-Smtp-Source: AGHT+IE2xAcSQuVcodr/7hBVP7bq8EdfLJE4Esmkq4G3jP1jFOI8kOHeGuKLezUsQ9xVBsjiAJFyig== X-Received: by 2002:a05:600c:1c24:b0:46e:3686:a2dd with SMTP id 5b1f17b1804b1-46e3686a524mr43098075e9.11.1758836770122; Thu, 25 Sep 2025 14:46:10 -0700 (PDT) Received: from ?IPV6:2001:9e8:f10e:2c01:2019:a9e4:7f02:ec05? ([2001:9e8:f10e:2c01:2019:a9e4:7f02:ec05]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-46e32b5504csm26022235e9.0.2025.09.25.14.46.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Sep 2025 14:46:09 -0700 (PDT) Message-ID: <476cd546-1bde-4ff0-a785-2e6fa21b79d4@gmail.com> Date: Thu, 25 Sep 2025 23:46:08 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 04/12] i2c: rtl9300: use regmap fields and API for registers Content-Language: en-US To: Wolfram Sang Cc: Chris Packham , Andi Shyti , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Stockhausen , Sven Eckelmann , Harshal Gohel References: <20250831100457.3114-1-jelonek.jonas@gmail.com> <20250831100457.3114-5-jelonek.jonas@gmail.com> From: Jonas Jelonek In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 25.09.25 23:30, Wolfram Sang wrote: > On Sun, Aug 31, 2025 at 10:04:49AM +0000, Jonas Jelonek wrote: >> Adapt the RTL9300 I2C controller driver to use more of the regmap >> API, especially make use of reg_field and regmap_field instead of macros >> to represent registers. Most register operations are performed through >> regmap_field_* API then. >> >> Handle SCL selection using separate chip-specific functions since this >> is already known to differ between the Realtek SoC families in such a >> way that this cannot be properly handled using just a different >> reg_field. >> >> This makes it easier to add support for newer generations or to handle >> differences between specific revisions within a series. Just by >> defining a separate driver data structure with the corresponding >> register field definitions and linking it to a new compatible. >> >> Signed-off-by: Jonas Jelonek >> Tested-by: Sven Eckelmann >> Reviewed-by: Chris Packham >> Tested-by: Chris Packham # On RTL9302C based board >> Tested-by: Markus Stockhausen > I wanted to apply the rest of this series but applying fails. Can you > kindly rebase it to 6.17-rc5 or later? > I just noticed that it seems like an already applied patch got lost [1]. This was supposed to be merged to Andi's i2c/i2c-host [2] and actually was there until the first three patches of this series got merged. Since I had already issue a few days ago trying to rebase the remaining patches, this might be the cause it also fails for you? Best, Jonas Jelonek [1] https://lore.kernel.org/linux-i2c/20250810-i2c-rtl9300-multi-byte-v5-5-cd9dca0db722@narfation.org/ [2] https://lore.kernel.org/linux-i2c/a422shurtl3xrvnh2ieynqq2kw5awqnmall2wjdpozx336m26i@54ekftmkwvrv/