From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) (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 298AD3988FB for ; Mon, 13 Jul 2026 07:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783929403; cv=none; b=kL/h/MDXc+MSGRAlu4SFjNUESu4VfIYPdVxBq7kTDsNNo8FkGAOKg2cuM1CiVycfSHNBLtyOXSk9TIguodlwoJWKfJpGURMno2gNx85RD1pohq7qwCa5QBubMSFypPLVNTh06NIt7lBy9CJ/C2efaaloy0/nzBlaq/SMwB8pPJE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783929403; c=relaxed/simple; bh=aL01UCz5oQh/DomQ8SNmfwxRa+JNQ30Xd1UyAslLPSY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fOgD5I70eL2xivfmYema2ZxFIx3XXe+Bl/zlEiwArLejunhVRoAmPeMl4Q14qU3eNEkq9oCAeCqZizfa066Sm6a55FWZQb1rsdeayEB6iNWPo3M8Yau/WQHjTnGqo3ju2U+nl/heIh3wG/1xDcLHNjvua9CVqAaxxi3qYTKVSgU= 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=rkfhlj//; arc=none smtp.client-ip=209.85.160.43 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="rkfhlj//" Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-44ae264a785so1642975fac.3 for ; Mon, 13 Jul 2026 00:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783929401; x=1784534201; 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=P0vsxLxBBBbTIPap5RklVXU/DWovFUXWDEGWzYh+JAg=; b=rkfhlj//bq8xeZLTAfDB4hi63m6A6b25LrvI3ntebpF08NUAcoej8os5A0wttRhkGZ klv8rwwOuon9OQP08oaHw2mRgl10kEBe045PvtfCRm9DpdRXnIBIBpQTEcrr2RjWGVWX TTNEV2Iu7vv3kWnPpJQ9EI3lRRilY+ARQv5VUbnYM5nNVh8sb8ccs6k6kyQw1xVLocZi Lb0FfP3v0zDQnPyMs26d/fItBkIFJordkrPTxnW+4jtelLGvglVmEHEHfJTvaH3WQChe /bPoRYriCDd+TW6m6++TJ3nPyA/FkEWWEU9aln8FFAWN2bJOJzu6RhOV9mC9+NNSwArT 5WBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783929401; x=1784534201; 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=P0vsxLxBBBbTIPap5RklVXU/DWovFUXWDEGWzYh+JAg=; b=Geh0aFRMQB9H49q2uvwML3NMfBwj8DgN6ro0ynIDysIgmUyZ9xxSlVoh9x2RvfjfQF Winz6XG07SMGjpuh6mxbx0gV166bRDmolK5BJScWnVVrMC4bDxbMQDhQpbiGlaQQdpPo JuqN1WA/rXhLhIPBUtfbR0PRXkeDjQzhSDhZ90MY1Y4xhHSj+0o2oDQ4nFUNSjGsNiBJ jf4JvwGxE3NYVVxjkadcWaVanvlpid7bjfe1U9qMwXTsezaDI8nlj2pLqwk1Fz9j02Gx wGcwJagyCqYr06wdnRfW3+VQHSkSrHkx1V5UKiFAccn/HS3eROZUhteRloZpOI6aJihR byYA== X-Forwarded-Encrypted: i=1; AFNElJ9CbdbHV+5zQeXO0gEwgvf0iVL4cLyPraA75bhTiA8/V76EYw4BZFuyOBaVELP0Uz/9bUJukuFkjw==@vger.kernel.org X-Gm-Message-State: AOJu0Yxb4fSjpOZ5NI+47SQOQR2iQWziQCuDd7f1bm3V7gklI2OphYsO jinN8tIqrjc1JukUefeGZPcfRx9K2D3VKDdCKp3+K9aUMzufmUkbuA5T X-Gm-Gg: AfdE7cnQznjz0Mc9ud3jvW8XEaB0vU0+Ry8dCDmMB054AJi3zY4toTmvjVwnHPTDQau uDNcAjJWvdomheCKNkb+qQrLj1qyZs4RkUMw1Pc8pMLXUVl6F7rgXh927+/WMqVxzm2tk2v9At9 gGeNyiX3zA92CuoLmW26DLSs7BKutFNYwwFsRRQF9xtG9/c2wmifnbB9VC/JSs795JHMAaNoL7k 0SKEf50G+FHBG8MXe0Eqx/O4DWB0hvcIrKFuBMYADUk/TcMwyn6F3uMIHjFX7FGZFwpZOQIz5pn Iw+1EcAoFRFjiYFzKO9YKFY0WFGudiB+darKlOSIZG9ycXL2eg/4IZbbTvPa5DZHaUilbRlRyZc cQ/52y0w1+WXijmqMY4ccs/jO3yDIIx+5jC7HfGGCrY+rYj2L1rDsZxIfsGsDxZ0e1/0ohFsPX3 xFasEH X-Received: by 2002:a05:6871:780b:b0:44a:e523:aff2 with SMTP id 586e51a60fabf-451f12a69a9mr4363394fac.23.1783929401136; Mon, 13 Jul 2026 00:56:41 -0700 (PDT) Received: from localhost ([74.80.182.78]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-451a7c8fe33sm11393098fac.0.2026.07.13.00.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 00:56:38 -0700 (PDT) Date: Mon, 13 Jul 2026 10:56:32 +0300 From: Dan Carpenter To: Viresh Kumar Cc: Zhongqiu Han , Deepak Sikri , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] cpufreq: Fix an IS_ERR() vs NULL bug in spear1340_set_cpu_rate() Message-ID: References: Precedence: bulk X-Mailing-List: linux-pm@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 Mon, Jul 13, 2026 at 09:31:12AM +0530, Viresh Kumar wrote: > On 12-07-26, 21:30, Zhongqiu Han wrote: > > On 7/11/2026 3:34 AM, Dan Carpenter wrote: > > > The clk_get_parent() function doesn't return error pointers, it returns > > > NULL on error. Update the error checking to match. > > origin/master:include/linux/clk.h > > /** > * clk_get_parent - get the parent clock source for this clock > * @clk: clock source > * > * Returns struct clk corresponding to parent clock source, or > * valid IS_ERR() condition containing errno. > */ > struct clk *clk_get_parent(struct clk *clk); > > I think this is the source of the confusion. > I'll send a separate patch to update that documentation. regards, dan carpenter