Received: by 10.223.185.116 with SMTP id b49csp2086005wrg; Sat, 17 Feb 2018 11:54:44 -0800 (PST) X-Google-Smtp-Source: AH8x224eclOTiF0R+fvKZ3lRJUeBsZ265b9LNSw4R5aprUwVxx1veja1DaqTvNb6Xy/Yx/ajGM+T X-Received: by 10.99.127.90 with SMTP id p26mr8430520pgn.268.1518897284325; Sat, 17 Feb 2018 11:54:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518897284; cv=none; d=google.com; s=arc-20160816; b=hQ7uMy4wgYEqkQFwjlI1/m5ZJUvjteVgg2b6jyNX7wTRvqW76qA8rOJGiVu93Z9gJh 98fBR3/n3Dyn/cH3yNcRxA4k5yT80XAN+hPqic7kX4tqjgnR+GxnQXfmWUquKpJ7RIqu 8QYN0Km+03BHPm1PhUDXkNcGohNEU4XHbiBCuTFZH7n591jeR2kR0zZeOSrmgXuLvl5q tFk4U0qD0mfUdPBFHCUSk6z3Vb7K+jso42a3WEBeD8P7k8D5Pk8brpEqNra8g9HEijWw gq5cFSaN7KI289hMJjXBbRQ0Y6nIaVWj3ca9Q2ek8zf0iDCe6CSnBxUSuYRngWJGPAo1 YQew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=NfFX61u4kPoH+PBO3D5s0b/nOLT4NCfwcwg9DTZhN5c=; b=h5rZmd7puhpZXiQ5khoeZLir6Ih0eSiPbzOf7Ve8HiSD/thEsz9+2S/RQj83z6/u84 /VILyZN5WqZRI1L6Tp0ALYpdzGgGOssNRCMUTaOIgLK+qqAKnH2i2dT7wqvwlRKWE1aT wSe/r3rh/Uzngnm1asjPfKVnoD59aZ/YaCU83GS5xLQAR5ebAs0hK1ME8LKZ3idlKqAZ n9Ihm5GpiyPNTNGRmEKYW868czt3O950UP2+hOjDNpgIB+LkK4qrwkQZPa10n/e/pHZt 5Q4j7ipWJrmY71INygOsslpTZOPM17n9+XtWim8wCsQuw+wPOAxdXosQFxCOsVWvKh3n xPmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lp2xYMJ9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b187si1561836pfg.273.2018.02.17.11.54.18; Sat, 17 Feb 2018 11:54:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lp2xYMJ9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751234AbeBQTvQ (ORCPT + 99 others); Sat, 17 Feb 2018 14:51:16 -0500 Received: from mail-ot0-f178.google.com ([74.125.82.178]:44286 "EHLO mail-ot0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131AbeBQTvP (ORCPT ); Sat, 17 Feb 2018 14:51:15 -0500 Received: by mail-ot0-f178.google.com with SMTP id 79so5527156oth.11 for ; Sat, 17 Feb 2018 11:51:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=NfFX61u4kPoH+PBO3D5s0b/nOLT4NCfwcwg9DTZhN5c=; b=lp2xYMJ9mXUzBXJCe6ZfGdW8Dqv9PaM8ijSf7GZhEhz/hWjFif48pHvcybTf1RPW1o 3OXgGKLjDp9oY9RVuege9s4lIXBBHLnVfCdlvJNv+490i82nMnHN3aQiVgXUlqt8Pmw6 5DH43Ymr/Iff/xptejYo374LJaMHTjQEeYSc9LkTFyNlZVTnaHV3XSYpM59Zhxl9gHD7 mIGGcZUiIc6lRGULImXfueihlhYT0rxpJw++cYCEJWgmck/UeBmaubEHQcujeO1U4hGl H/KQ0Hv0DtnlIeNEVvqaHoc+TKs3O0C9Tfgot3XiSFT1PyZFG0WH9QMtf/7Zk4XddfCM A+3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=NfFX61u4kPoH+PBO3D5s0b/nOLT4NCfwcwg9DTZhN5c=; b=Q9Wyc6w8FAPugGAhRBrDPQXlNrj98X2at44RAyocgzIFFAcYKw6oRXMMybiZfBQvw/ LdhkLUJLS5jP9mE3xaDXgyLubuVsTBgt6LWMyQpRnH08Zu0HjRjwu4ApUkIZfaYDB4yf XKpJlnLaKAiIe4dhKOwuH0PsbtLK27Vtryh/8VuF30JvkImFGu+ynF7jqkobcFL2RP/o 0iwISiCusJvPmTG2JQCbgnswIl0RqLH6yW3qaQ5qSLEAw2ji2Y7rMdTIPgk33GuMS5MG STkiziemkhulNYTkhk+Yzfha3uc0VikG7I5vTJVfykA2G5+Ii/xqp0nL1mKbY/ruo7x2 rh9Q== X-Gm-Message-State: APf1xPAk2/acq0BzcKfDDSWUq/2RALI35Q7h7TzyiwH8tz/kAzc0DOHp 67bSo79MzjgYe/UNKCXoh/NlPm89nRe0u7ocnr0= X-Received: by 10.157.64.251 with SMTP id t56mr2183348oti.112.1518897074415; Sat, 17 Feb 2018 11:51:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.168.66.10 with HTTP; Sat, 17 Feb 2018 11:51:14 -0800 (PST) In-Reply-To: References: From: Arnd Bergmann Date: Sat, 17 Feb 2018 20:51:14 +0100 X-Google-Sender-Auth: UguJLcHgw-k-JXOX8CxsYEyf80g Message-ID: Subject: Re: syscon regmap for disabled node? To: Suman Anna Cc: Lee Jones , Pankaj Dubey , Linux Kernel Mailing List , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 17, 2018 at 2:40 AM, Suman Anna wrote: > Hi Pankaj, Arnd, Lee, > > I am testing some code to use a syscon/regmap interface and I find that > the syscon/regmap is initialized even on a disabled device node using a > "syscon" compatible property when I have expected it to fail. Prior to > commit bdb0066df96e ("mfd: syscon: Decouple syscon interface from > platform devices"), the driver would have never probed, and the > of_syscon_register() only checks for the compatible, but not if the > device node is available. Is this intentional or a bug? My guess would be that nothing relies on the current behavior and that it could be changed if it causes problems, but it's hard to tell for the general case. Can you describe why you have a disabled syscon node? Most uses of the status property are for on-chip devices that we disable because nothing is connected to them, but that seems unlikely for a syscon. Arnd