Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp421074rdf; Fri, 3 Nov 2023 05:01:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEomgmwlA4H482cGzpnI/hz3BQYCu+SxgDON1rIbP8kLcp6gwOnYmBmHNYRx4opHJh5Oww8 X-Received: by 2002:a05:6808:181c:b0:3a7:5d83:14d2 with SMTP id bh28-20020a056808181c00b003a75d8314d2mr26135241oib.17.1699012913050; Fri, 03 Nov 2023 05:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699012913; cv=none; d=google.com; s=arc-20160816; b=PkODxDT0JTb/YvmL3bAJCXrFEXY3KekZy/jKTY5xGTxWnxhLZP80C6PR7QKw5Nt2t+ 7ByK0u86BXtl+z2KbS7eoeadHDKLvTfLWIhAdbM2l3nFdowMx2f56Sz+hwoZlCGBrV/F hYutgOoHlFZGrl5w+J+K903Az4Hzg8lIAglx+8M/PEjm/XlZH2UGr+KSFQ93Z/W0Rm3h SQMFU4dFpRQpAwKFtVE3vJV7Jp52heQM/Sl9Utu8+uzeAa8xA9rIONJinhdKxkguHt9Y mCAH8sPFQEDjVvX9PL4JzmckKsXXKZ3WfWPCf6rrdceD2BWymhtMGXbwwbpY5ItDk7+K rFIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=sLq2gnOQfnZFuKSGiEsng7DLJLtUSiDzwxdeFaFO+Fs=; fh=64s/DJZaEqmzd5lRGBpVzYigoGN8KphaL6Tl+vHHte8=; b=TA57P8JHI2ocERDLCL6+T5VtN84u0UCr4fz9w4QhmrmNE/8nDURa5e3zPTvVl+TQhB FhcUZUGM4tZJh81lSKtaRnwKniEs7RcWZVEo5KAqg68SlH8U1Q9+zeoNxtp1k6V1ej9y zksQ08bkjOX3oev0oFzeiIDyqZspKDAqrSv4I4H7o+1HNd4aAwDCozRwc9+Z+dCClT8j kdFstCyLCHnCoAA1xpzq+y+t/9tUeDVx1X3TqQRxoulk3SvP9H1FS3TRnGk1nhhN4FNo Q5tYPGmV+K/TpT+cNlnsU/0075/Yvuc5FedNGw3gwQoTQVdcP05DSqEs9iAXJ9ZOgzP1 tLwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l2GcnwgR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id e2-20020aca2302000000b003ab933b8387si578992oie.112.2023.11.03.05.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 05:01:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l2GcnwgR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 18584807D986; Fri, 3 Nov 2023 05:00:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233088AbjKCL71 (ORCPT + 99 others); Fri, 3 Nov 2023 07:59:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233005AbjKCL7Z (ORCPT ); Fri, 3 Nov 2023 07:59:25 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7423DD47; Fri, 3 Nov 2023 04:59:22 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B303CC433C8; Fri, 3 Nov 2023 11:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699012762; bh=5Dhf8Ir5TswWgOXTGHeCG9FSxtaoKRrn6eBt5c7IV3c=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=l2GcnwgRhaB5VHmF4HR+VcaXLV2J8tPKlDdIziRDT4/T85ca335zn5BPkLQjelau1 2VknViRhM2/29TiDSdpVPmMlaswu7/vYAKb0TA7oKFygZGW/JDQOnZDwqDm9Lz2xHj cvPgPOuFz9tBRfx7oLv2L3PgAcKcaAO0rtzQDZRXD6/ZjkoF9jccji5vr51yeU4EyU Ckh8LO99nnQwcifYL1QlSWDhZLiRQQHt0TUKOrIyV2wKBm/g0P6d9JE2uR+BdgkUSC +ZmLpi9qzOfSyjijwLpgTRdjEdRyu426jdOHXud7tNiwjrF6+YIjW9HaevkOZ8GZZD aL4Wf66qLdBeg== Message-ID: <4e6d286e-a40b-4c6a-afe2-ab91c576a235@kernel.org> Date: Fri, 3 Nov 2023 12:59:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V2 2/7] i2c: sprd: Add I2C driver to use 'reset framework' function To: Huangzheng Lai , Andi Shyti Cc: Orson Zhai , Baolin Wang , Chunyan Zhang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, huangzheng lai , Xiongpeng Wu References: <20231023081158.10654-1-Huangzheng.Lai@unisoc.com> <20231023081158.10654-3-Huangzheng.Lai@unisoc.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nw8U+7Yyl6gU BLHFTg2hYnLFJI4Xjg+AX1hHFVKmvl3VBHIsBv0oDcsQWXqY+NaFahT0lRPjYtrTa1v3tem/ JoFzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20231023081158.10654-3-Huangzheng.Lai@unisoc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 03 Nov 2023 05:00:07 -0700 (PDT) On 23/10/2023 10:11, Huangzheng Lai wrote: > Add the 'reset framework' function for I2C drivers, which > resets the I2C controller when a timeout exception occurs. > > Signed-off-by: Huangzheng Lai > --- > drivers/i2c/busses/i2c-sprd.c | 19 +++++++++++++++++-- > return -ETIMEDOUT; > - > + } > return i2c_dev->err; > } > > @@ -544,6 +554,11 @@ static int sprd_i2c_probe(struct platform_device *pdev) > return ret; > > platform_set_drvdata(pdev, i2c_dev); > + i2c_dev->rst = devm_reset_control_get(i2c_dev->dev, "i2c_rst"); NAK This is not documented in the bindings. You cannot sneak properties without their documentation. Also, you cannot sneak new properties to bindings conversion patches! Send proper patchset following submission rules, so first documentation, then driver implementing new feature. One patchset. Best regards, Krzysztof