From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 2D84814A4EA for ; Fri, 30 Aug 2024 17:59:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725040767; cv=none; b=exe9u4WX+p9cE5BullA2+FaSkPyLo0nWtOzruYFZP38kJZKL+trjGruwpV8m12rvZi1G0eLblPvkbQoDZEIAHVbx9tfDWmEr99ZiRA/gDcumk2nCYaiD0XeRAOis8yA01LN/wroKWGWmGGlXQ9b3BmXgE7pJB0I98s0BrYHuhEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725040767; c=relaxed/simple; bh=uqNNpVMf8T+RMH5/FE8Yq3sy1hJAlrYNUThmGNqb/Sk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=a/EMAT5MQds2ZVDW/Ax/54gCwagzir0kkn5ldA31qSHqm1qS5Xa9R7gb2NrtxdGs/iprAjy3wfxrlKvaB50oh9KzpWPjarqik5w8elpWIDlzuRcd8MYi3+EIgBvkazNN7mwHcTbF6hSz6AdUrldBL4OlX7nMk0HnB4FrgQ54xjE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=baylibre.com; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-7143ae1b48fso1408438b3a.1 for ; Fri, 30 Aug 2024 10:59:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725040765; x=1725645565; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uqNNpVMf8T+RMH5/FE8Yq3sy1hJAlrYNUThmGNqb/Sk=; b=uGy6fhxqEEKWzsAjPCMrhVLqL+U2dgo3rbWZGgHErxz62Z6QmD8eiofMkifbK970Qa /7xMhwWvlofmOsLoOGL2zubsC2vm7NbSsNSRCDCmcWbFya2zqpf1tA1uiPuF6Y7/ZKHm eP5v5aagzHU4ioNFJdVUMkS9HrZnRbnKMwB5wKYldGqhNtQ3gesvEEplx5n6i/3Ik8LL xuVC0Exlu14O6ZxS/YD/K1kJoWNIRDgrdBR6ERAN+RvJNXfJoyvMG1lA+Ei65SrZASEA v4sInlxfDgJivZs2Bjvv/69u+ujiAjAJYh+KSWgC/YuYhoFZ01GBwX9Zvd7ZGtumyf0z gdtw== X-Forwarded-Encrypted: i=1; AJvYcCVkZvX/KZtIMUooQH7JJ3kROIzPH87hRWfk9I58NN5ZFfYuS+2ZO7IDjlKhNYCfcV/TR1eqgzzOS7ICptY=@vger.kernel.org X-Gm-Message-State: AOJu0YxJySjGsYDbgk0mPWWUmVTY9QbyMLNhcL+BwhVrBkmT3b2I0XUp 9Nx49CUQMyBtXqkA8SECg1HO78aZBf+IBihRyUlUKhAxQEEIHOIjr3YRAZDIuHk= X-Google-Smtp-Source: AGHT+IFFlZgugvq1wKksGfIalTYQouMqa+FlAvXZoVmgoJEv1R3TuN28RgGuwEgfM0n3Xfl45ubesg== X-Received: by 2002:a05:6300:44:b0:1cc:e069:e937 with SMTP id adf61e73a8af0-1cece502344mr386419637.16.1725040765324; Fri, 30 Aug 2024 10:59:25 -0700 (PDT) Received: from localhost ([71.212.170.185]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d85b141fc9sm4189612a91.30.2024.08.30.10.59.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2024 10:59:24 -0700 (PDT) From: Kevin Hilman To: Nishanth Menon , "H. Nikolaus Schaller" , Viresh Kumar , "Rafael J. Wysocki" Cc: Tony Lindgren , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bb@ti.com, d-gole@ti.com, Nishanth Menon Subject: Re: [PATCH] cpufreq: ti-cpufreq: Introduce quirks to handle syscon fails appropriately In-Reply-To: <20240828131915.3198081-1-nm@ti.com> References: <20240828131915.3198081-1-nm@ti.com> Date: Fri, 30 Aug 2024 10:59:24 -0700 Message-ID: <7hjzfxx56r.fsf@baylibre.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 Nishanth Menon writes: > Commit b4bc9f9e27ed ("cpufreq: ti-cpufreq: add support for omap34xx > and omap36xx") introduced special handling for OMAP3 class devices > where syscon node may not be present. However, this also creates a bug > where the syscon node is present, however the offset used to read > is beyond the syscon defined range. > > Fix this by providing a quirk option that is populated when such > special handling is required. This allows proper failure for all other > platforms when the syscon node and efuse offsets are mismatched. > > Fixes: b4bc9f9e27ed ("cpufreq: ti-cpufreq: add support for omap34xx and omap36xx") > Signed-off-by: Nishanth Menon > --- > > NOTE: this combined with https://lore.kernel.org/r/20240828121008.3066002-1-nm@ti.com > has created a bunch of un-intended bugs on other TI SoCs such > as seen in https://lore.kernel.org/all/20240826-opp-v3-1-0934f8309e13@ti.com/ > https://lore.kernel.org/all/20240827131342.6wrielete3yeoinl@bryanbrattlof.com/ > etc. Reviewed-by: Kevin Hilman