Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1777118lqg; Mon, 4 Mar 2024 03:38:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWGsIjYpxMeAl7E7QD3JqPRNFmb9/7ihnTqy+PjVWL4ydYe3y7KRT+IdZFecVYCL64IK1Tfp613CxuboeD59qY8ReufYDQNm9CbwLe8yw== X-Google-Smtp-Source: AGHT+IE9eXuUpZkTQrkncRWzffJ9I3A9Rwi2T/Bc71V/WevQGTtzjFjX6uwt4VUC4QEuI0uJmANa X-Received: by 2002:a17:907:1186:b0:a3e:9def:5ed5 with SMTP id uz6-20020a170907118600b00a3e9def5ed5mr5849212ejb.33.1709552287749; Mon, 04 Mar 2024 03:38:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709552287; cv=pass; d=google.com; s=arc-20160816; b=yh6BWx+2eQQFlgC/Y/o7etA7Utwll7yDeOG5B91AZ5Ep4ZSzqoGDq36rSdf0bhIBoI 1iR+Exa4n/rnE9CsaWLnMsK21j2wcdheNyXVwSm/wPLvggRlNUxGt0ROsRaXu1E3xDDz oQzYqMNlW6kaxzK8kQc3fWjpBSrSUZXUEbV1iQuKZ5OguHv/rcDvrvJnBq0dV0rkzGNo dgxG4UHxSJYX5iJxWcBNQMN7D6GGW/Xi4QoaqARyZyXDHP7q67y5ucxVqcbvDIELH+5M N8OaTTEzhjwES3YA4FQ6W8exvDwIPwx//WMRWHlgg/VX/BeNVlfLJeSF0JQFPuSz63gY XdBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=tJBibIL8fWggb9ES4YCfI28dSHHa1nwKLlj0yPaaT5A=; fh=WFBbuB0+4EoISoNLKdVxh9iPtkL4XbOGRzOjhABSLNU=; b=XyQu8jCdJP9upFcwKQCRlo3BQnahmawiXq7di/kNH3iCR+f0rOWocfEESM9CVnlX2s MjcNwOakubdMnmuvaEjW0FrGrGPeQAqkZjm0XN6EHqkcSRHZ6lYm68TV1Ar0x/QCtdb1 myxGaJWj5lqTfoTUojHXLsKdo/SP8FHiYDMfgttf6G7APt0+yLnwsVD5V5rHqE1TLsek mq7OLT6BviUNAu87D5vIW5FkLel2/b1f8kxq2OIbXUB80evIoMHKdW5E9lQU6r6OXbVA ucKEd0khUk1RoaeLo+CRcnLIZmYMIbLw/7hjYJKkuIrxJUcApbtPv4PbTrst4w56AYL4 NUXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hskPch44; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90517-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c6-20020a17090603c600b00a44da9aa72esi2054262eja.73.2024.03.04.03.38.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 03:38:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90517-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hskPch44; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90517-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90517-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7B14C1F24164 for ; Mon, 4 Mar 2024 11:38:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 20C703A1C1; Mon, 4 Mar 2024 11:37:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hskPch44" 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 3D49E249F3; Mon, 4 Mar 2024 11:37:56 +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=1709552277; cv=none; b=nkd05dgVZiS2MPvhbz+ZTLXZFLwC1MPqtrA7Xj2coLsPhQ6InBp4OyRBUVmfv3QrNah9UrBGAAGPx6WYFbyHvU/ntKb3acFAjFZ8HVMg134A18d3/YcRHuAPjHyFgtizrSGFNwps3aCCe+ADyG6CYvnRJ0pjHIAon+hLCDUtzLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709552277; c=relaxed/simple; bh=5TZPumrHu7nOZMaUyKuATS4UdYvQenVHwGCAR2gaiC0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RBZvc/cJNyIDT3OcwnqFruaGcFmamsTc/6ddjVxgnugQ5YOmhjXkD/EW+oR2S7rQ/qP/Vx1FnFo6OQstlLkg3I04TiHO4sftdQxjeWp8PRNe6sG9/Y0uYT+c4JteZOwo0ANuYEkqrT7MIejRMsa4K23Z1N2JgBhF/gchBSE5l08= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hskPch44; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F8EEC433C7; Mon, 4 Mar 2024 11:37:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709552276; bh=5TZPumrHu7nOZMaUyKuATS4UdYvQenVHwGCAR2gaiC0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hskPch44nM09zbxpIg687TMJ6Q/lTPRAkyILKLkBCstGwd5agQW0C3sRjmLOZbVE7 1VT/lRMMmCrTBr9HWlZSVnoLvQmu4HbAG/JVGProBIIl12Rgr0f7j24yUe3thGsAyB ymelxx9kV9eT5NK0l/cohW1K1E/JGmuRDHQG5r/1oMinaRc2zIRJF9HR+CVJbNdpf0 XDs/zl8NABdL08nR+z7EIp+6K9m3Gq3ZvoMbBpOzrrgWJY2TFnuFp5D/oZBZNVh+iC zQ3mXvCCG26HrpJb76DV+sJfhckEfPlx8dtp3sH3pXHwtOAbqaZYK5cr2sGFWJeOvg bFKk3S1gZMfvg== Date: Mon, 4 Mar 2024 12:37:53 +0100 From: Wolfram Sang To: =?utf-8?B?VGjDqW8=?= Lebrun Cc: Linus Walleij , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Gregory Clement , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk Subject: Re: [PATCH v2 06/11] i2c: nomadik: support short xfer timeouts using waitqueue & hrtimer Message-ID: Mail-Followup-To: Wolfram Sang , =?utf-8?B?VGjDqW8=?= Lebrun , Linus Walleij , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Gregory Clement , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk References: <20240229-mbly-i2c-v2-0-b32ed18c098c@bootlin.com> <20240229-mbly-i2c-v2-6-b32ed18c098c@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5oCfEIbf9yhEOXcl" Content-Disposition: inline In-Reply-To: --5oCfEIbf9yhEOXcl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > > - int timeout; > > > + int timeout_usecs; > > > > I think 'unsigned' makes a lot of sense here. Maybe u32 even? >=20 > Yes unsigned would make sense. unsigned int or u32, I wouldn't know > which to pick. It gets (later) fed by of_property_read_u32(), so I tend to suggest u32. Sounds like least conversions then but please double check. --5oCfEIbf9yhEOXcl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmXlso0ACgkQFA3kzBSg Kba7aRAAp8MwXqIV0LPiw5/f0gf9Ya9eqn734mD8kNjabJrB7OQ/XDq0cBrG0bZr QTGhzV0kmEPcA7Eg3ezMaIuFiooPqnhWkIJNMXQA062XXMjrNrjjk44zZz+zHcIY JAUW/1fNcPgeTN5DbFtfRr/4wxPd78niGclcbFtIltQewyib9ecyXS6SMhFldi9S OlEm2p6ahwF8Cq4DKD3GgtjrEjDr1QGPh4ct5rsJ75dLvNlLvTDPxUiIA09RqQMh jOhfUL9OpNdcNRsz7pSBSmgM4f03Eb+jocKB3Q54G3wQHBBAMeSPwDWj/fGYpf+L 83eJkRl/6Zlp1XupCq5gK64qiJOeOhnMSNuvY2cKypET9wacdUKvXvJw6/Dd04xA +MgwTTpilIJUZZKMT1r3mjTGUbcod+9odmVXOO0KvgJBxErGBPzNunSZcePC/sy1 CYnCdC65q8P/XAgJnftDHFGFWRR+0zbUU5aJTPLfJMD2j4B/95EjR5aSJmErlaY5 bI5m0FZLKif/w9hTVKLqaPdHWMzDZUUW3cadqRr1sINDQuVh4decxrVss/9bZXh3 NXc10UNRPI+SYA7vMYuWFXtvMS6D49HcIH7iJSyEdFXqB8Wl+3ScGCx3UXrYUyFZ doh/MmTSP6huxKuyQyspeuVJsCoAZJRWqEr4+tg5YmnmIIH7kK8= =aOD+ -----END PGP SIGNATURE----- --5oCfEIbf9yhEOXcl--