Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5813325rdb; Wed, 13 Dec 2023 23:20:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8U2HpF9JfQVcJvi4ULBncGRuyP6CCG9ZxrMRcWEQNOtXjfoi/T/D2mtmeInerL/PjnfpH X-Received: by 2002:a05:6a20:258d:b0:190:d1d2:570d with SMTP id k13-20020a056a20258d00b00190d1d2570dmr3805320pzd.29.1702538438465; Wed, 13 Dec 2023 23:20:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702538438; cv=none; d=google.com; s=arc-20160816; b=zf6zeLdPoWr/qXPGCx3Tlc8uTSMDSprPELqZ0LZxRTmRd9DdbQ8Bgfl9wo3SO1CCIQ loUsaA8NSIISPXNmw9DGpSWLsdB2rsEkp35B1bCUz1cbpj8NB0UVdyEo/npdbFD+xrte bzS9Mio04PgesRMq5ZPW3SY9WndGVbs20mgP3WI+ne4jTXunfWkNWiuoNd+OaXHuUAgo 5bJBO4V03INV3jRAonM3ZHN+OlNtXUTj2q1XZfe9LguWg0XaXK+r/GOKdwOKEHjEcxrv X+oTJmkcprj9DKUOFdUgKiY4KvAKaL6Jhr3zERCs8/dSypySbe3kbt/uWMn6ZSeIVwJB adyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=/En5sEjt65KfXO77kHPbHZOUSMJXhFCPZupqsrV3I3I=; fh=Kuj7xFw99eqFG31SMvk1b8NTguG0Ma4/mug9Xozqv88=; b=ZOB7+7zwCB8dUgRVdIx5tDENV4ehfuSSPgOViC59zb9Q/nBMRG4+joQbnbv55xYxJv QNJxXlsCHAqAtpOVCmENxy/f6dMUE9LI+oZZY2NL1mBy7FZ8PTz35jsU9HLx/s2jPhXi e6EHvk9789XeQ0rtVfqR1Gtm7nYGv/v4MUcU8TuUdo0YWjeSusy1D/sqAk7bZ/w/A96X p8rocG2aSfvA7YZFWJHwXcftUisHnTvHxfh+zpokvV9886uKc/OyM8b6QDVOj0LuUn1b kVFVSkw/qxClQCKKC+9KH+ks99EoN9tq2RU9lNTF7AdvE7Kqs9BCVguVdwHc8uRQoBEV SAFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=1QCd5B7U; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=zTojNcPd; 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=arndb.de Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id b21-20020a170902d31500b001d3675664d3si714586plc.69.2023.12.13.23.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 23:20:38 -0800 (PST) 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=@arndb.de header.s=fm1 header.b=1QCd5B7U; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=zTojNcPd; 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=arndb.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id EB4EC803C96C; Wed, 13 Dec 2023 03:23:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377387AbjLMLXc (ORCPT + 99 others); Wed, 13 Dec 2023 06:23:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377345AbjLMLXZ (ORCPT ); Wed, 13 Dec 2023 06:23:25 -0500 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3F5DD5; Wed, 13 Dec 2023 03:23:31 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 306CD3200A55; Wed, 13 Dec 2023 06:23:28 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 13 Dec 2023 06:23:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1702466607; x=1702553007; bh=/En5sEjt65 KfXO77kHPbHZOUSMJXhFCPZupqsrV3I3I=; b=1QCd5B7Ul9zvxrOYkMaupIByn6 sZrfv5IM5J4xPeN9RewN5+T5Ph157PHQMd2LgEohARrUFpGptQWoQhmBCAdtn8G1 W6j4y9uy6FPsk2dnZblrIACAYgaMXfO0t8WVc/scQuLWk7C8aKD/eg02947jbr8R Sc/G7jpgAmUDynh85BuH0//d/pc9Kox7yVkDyu8jxPOskljBs9paxX2NUOyT6QDW T5UfpkdnxI6/MRVOqZWozWp1QFMWpKSB0znN2IaRu7oN7nBQX6Qq7B7c2dh+AfSu rkSRnO9bh99afDX2gqzE1Z4fV/1xoNQ4i/whb1aC2TT2yL9XvtN2/0fcsgvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1702466607; x=1702553007; bh=/En5sEjt65KfXO77kHPbHZOUSMJX hFCPZupqsrV3I3I=; b=zTojNcPdIdLGTwVWFKlBVI93ESdIUubhizGqpSAICzFZ cMDyMMRSU0fjtZEVd4Lu/YlbN1Hx07UqjPwyvzJNNTkcg0w2c10gsaTY6DYZc83Q tQ0L5eqKJkPpOTBKJyhzaVmEfIhlWITGdaFrOyjW7MgW1KMF3rF872hf0JxB+JZu H9kVjIn1Q5F2cEkfGQnIJ+y29JGi1Z3hZTiaRZtgWXH6KF43YH8NLBOGYZ4crv9G CrVXeHLE+L5Nll/UpCnW7gwN2DKg/v2FwezvIi4HIpSdT4ysUJt6rwcnljopZtA/ tIccG3YNkJxmqb1/gMCkSfoK4jD12mS4pCmk+3XpNQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeliedgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 31533B6008D; Wed, 13 Dec 2023 06:23:27 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1283-g327e3ec917-fm-20231207.002-g327e3ec9 MIME-Version: 1.0 Message-Id: <1992d665-cb98-4190-bee3-e5629c7d0e8d@app.fastmail.com> In-Reply-To: <20231213095849.GA2191@pendragon.ideasonboard.com> References: <20231212213625.3653558-1-arnd@kernel.org> <97a826ab-cd68-4494-884e-f7bd512a7bef@app.fastmail.com> <20231213095849.GA2191@pendragon.ideasonboard.com> Date: Wed, 13 Dec 2023 12:23:05 +0100 From: "Arnd Bergmann" To: "laurent.pinchart" , "Sakari Ailus" Cc: "Arnd Bergmann" , "Mauro Carvalho Chehab" , "Nathan Chancellor" , "Jacopo Mondi" , "Hans Verkuil" , "Nick Desaulniers" , "Bill Wendling" , "Justin Stitt" , "Hans de Goede" , "Tomi Valkeinen" , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] media: i2c: mt9m114: add CONFIG_COMMON_CLK dependency Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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]); Wed, 13 Dec 2023 03:23:53 -0800 (PST) On Wed, Dec 13, 2023, at 10:58, Laurent Pinchart wrote: > On Wed, Dec 13, 2023 at 09:10:19AM +0000, Sakari Ailus wrote: >> On Wed, Dec 13, 2023 at 09:39:01AM +0100, Arnd Bergmann wrote: >> > On Wed, Dec 13, 2023, at 09:09, Sakari Ailus wrote: >> >> The datasheet says the input clock range is between 6 MHz and 54 MHz. We >> could check that, and return an error if it's not in the range. The rate is >> needed for other reasons, too, and the sensor is unlikely to work if it's >> (more than little) off. >> >> I wonder if this could address the Clang 16 issue, too? I'd replace >> udelay() with fsleep() in any case, and at the very least Clang should be >> happy with this. > > I'm fine with both of those changes. I verified that the build failure is solved by either one. I would just do the fsleep() change in that case since that is a sensible change regardless of the undefined behavior. I'll send a v2. Arnd