From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 380EE3F0AA7 for ; Thu, 9 Jul 2026 08:34:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783586093; cv=none; b=GL+VLPkHWhKuM8anyIE2935KIkNK61EGMF8uWCRyCXlVXWVJY1ZTM6i4nSAhv3zaYx43GTS1LHqDQk1qV1keBa62maRabndRTnVu6dYma63sSlHs6TIrtp6C9I+rkP5TjC/VVcg0LqJVgISUZUEaGDMhOfkaKeR7h5VlKOyWE1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783586093; c=relaxed/simple; bh=v5m77H2AqJJ4tTbaOUw+5/3V+CtMKGQKg5H4OPgb+WI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=n+URzXiBMd9jXoE6wZlwm+7BW9iGoxAl2gQTMdU3KbIz3wqqhAURsXrYpWuKRL0HLnxd3mEDPTRdm+JYJaWP5D4oEHD6mKWhosU8KfYYK5+uuuD1llDCcPnY5wDsYU1LCOE8k8/+X8ucvl5AOwNlfrsqfEik2dOY9E+f6932ELI= 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=kaT15KMz; arc=none smtp.client-ip=209.85.167.45 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="kaT15KMz" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5b00ca000ceso749382e87.0 for ; Thu, 09 Jul 2026 01:34:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783586090; x=1784190890; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=THSFgL0Y2FKUJgLIXJuUKx+xnsBMsYVZ+QMA86TDiMA=; b=kaT15KMzYBo6KDRBn63AAZhPmvK0VO9ZDI5Q/1J0yuAPUEt2iJhSOQenyM7YAFNmtp 29+f1F4J0T62q1W/VUMBDDGxXUIkun2t2BJFb2eSTMFx0ARNAaqSpyNy7Ls3PHOb86e0 Sg8Mv2tLV4Z4xCpDLHDdla3JoCG+O8IE053grvBh242HaOPftjlEwlcEe2lyhfOoI7Nl zr5kLNOWqdiamRFlmT0s1IYCxeH/y0k0ooheHaf5P5OMYr8OtYZy5dBYvDO49WTnkO4w LC+QRY6tJnHCSbfyWBEEo7EOMYT9dGj2Aa26Pue+JKnvKVXUkSHnV6UzmMPM8bxDHaFj mftw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783586090; x=1784190890; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=THSFgL0Y2FKUJgLIXJuUKx+xnsBMsYVZ+QMA86TDiMA=; b=Gwmm1K7MOmJLM16KIAtUVxwgCqTShs0L3jy23iCxvwt9rPIc0My/aW+ZptXPfgRbIm 68gcXXGrsVgtKrqomPMD1m57SN6CiUlz+zCdtXcRRmbLHaJ65/BL/BR0Oj5MxbZ5vqM/ WLKcGyDfA7o75Bzq7nG/EI1P+iNW9iyBrPi5bSYeLOOXKkUSqGLZ6J5pzXRsA226IWkm Pw2Oj7B8cMF2zVyID9XI2GX3EzNi8hrNlJ9+X38SFWOcTJNrarZParkyOYzD4lTXFaPY uCWxUsTnKmwO24izzdzw+howCbTlx1IQleUGpAcCPUuDR+Mzy984LT6414qZFPaGG9C6 rYQQ== X-Forwarded-Encrypted: i=1; AHgh+Rpk+U1/GsKK8rC/pLmcv0F+9+5gqHRb29GQmZgX9oNf2P4EuDxYM7ozCo/Ry8O8XpptZL9mKxVN05qgf9U=@vger.kernel.org X-Gm-Message-State: AOJu0Yx/T56Y+fKrCfu8mbEyfJ2ISorQE9Dyrli6x9cRUeD+KK+gP2kY 1hbHNDaaE9t5BKZghhjlTC0d/qe8V1kZxsyJ826A3ujvHdMs9AUhX7QS X-Gm-Gg: AfdE7cl4QbAsvLvKoYYEYGXevrfdWmExA3zArlIZO215zPth+QkPdIS04mjHqOcdhcB qIrhi5jZrJX1RYRffMCa/4cIvdKt9YSLsnrfRGD90ZVBhiUn3+h7s2jnQ9RiliaLkM6WC+8v5Df uEqDxJ+6VU7DPAwGSzvKK6Wni5lydsJ1q6kEsCTz8tfo1l/uTPk56f71Snn+lXEjtPDigr620Qr 31w9GZie6WtZr0asWkBVquRcd5xqSZc6jyhbQ4ZfGWR8ODpzaWBVIQrV2Tk22MyV0N5/PUmbYyK cCKImSABScC3NKbwIijL+uNBLWL1wTlPhoHxU4S1ckSN66lQZ/YV0Svhz3qx2nJWs4Nipv4vh/z k7RfpvMPYL/PlnAaV8B0J8N33rNZ70MWbDD4PqZVHKY4w++Pj9Z2WQ+hvsPggz9/yISZ0zYsz2J cJLMWzmLflZYOk4GxUrqoCM/BYE1ABk1yIm//Y/TiAF36wtnMTqg== X-Received: by 2002:a05:6512:159c:b0:5ae:d399:ceb8 with SMTP id 2adb3069b0e04-5b011472e03mr1731318e87.56.1783586090129; Thu, 09 Jul 2026 01:34:50 -0700 (PDT) Received: from gmail.com (83-233-6-197.cust.bredband2.com. [83.233.6.197]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5aed13c3a15sm5082954e87.68.2026.07.09.01.34.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2026 01:34:48 -0700 (PDT) Date: Thu, 9 Jul 2026 10:34:46 +0200 From: Marcus Folkesson To: Andy Shevchenko Cc: Wolfram Sang , Michael Hennerich , Bartosz Golaszewski , Andi Shyti , Bartosz Golaszewski , Peter Rosin , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v10 4/7] i2c: davinci: calculate bus freq from Hz instead of kHz Message-ID: References: <20260708-i2c-mux-v10-0-09dca03c8a15@gmail.com> <20260708-i2c-mux-v10-4-09dca03c8a15@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Jul 08, 2026 at 10:30:32PM +0300, Andy Shevchenko wrote: > On Wed, Jul 08, 2026 at 02:16:16PM +0200, Marcus Folkesson wrote: > > The bus frequency is unnecessarily converted between Hz and kHz in > > several places. > > This is probably an old legacy from the old times (pre-devicetrees) > > when the davinci_i2c_platform_data took the bus_freq in kHz. > > > > Stick to Hz. > > ... > > > -#define DAVINCI_I2C_DEFAULT_BUS_FREQ 100000 > > - > > You need to rebase this on top of the i2c-next. Thanks, will do. > > ... > > > + /* standard bus frequency */ > > + unsigned int bus_freq_hz; > > While at it, I would dare to suggest _Hz as we started doing in IIO (id est > we start following more closely the SI units in the suffixes of constant > definitions and variables to be case sensitive). Sounds good, I will change to Hz. > > ... > > > r = device_property_read_u32(&pdev->dev, "clock-frequency", &prop); > > if (r) > > - prop = DAVINCI_I2C_DEFAULT_BUS_FREQ; > > + prop = I2C_MAX_STANDARD_MODE_FREQ; > > > > See above about rebase. > > -- > With Best Regards, > Andy Shevchenko > Best regards, Marcus Folkesson