Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8753039ybi; Tue, 23 Jul 2019 14:31:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbCmEUoLvmmF6Syk5cQ3eskNY+dCftnz6JI9JC4OlvF6DyzX8XCS1scTeawlS6yeTIy7em X-Received: by 2002:a63:ea50:: with SMTP id l16mr79461587pgk.160.1563917500789; Tue, 23 Jul 2019 14:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563917500; cv=none; d=google.com; s=arc-20160816; b=wEpBFiuqTDW/OUCcaY0GMd8uyzTJ2sXTmH03VHhPH9YUxykMG8omCa1gPB0YAvTa40 AvmpsenwXaqrYOGhJ0h+ZRIQWq9QRtNZ5bf34X0IuMYPGwyVZ99nmWlXUxptH3vQ00ch GONtwqdFI1imZ0pPDCcDlP9zkt92642YDQ3zkTUfMInyxFIJX5P/MLTHORzLSWdhgx6z uRlmSfv0ldteFcyf/lYWxJNkWrYVt2qC5fLbqCUSjXZP5LfnvhXtyrB62h6B4mnb57KW ZHjlmYcLal/N4bh1/DaewOq4LFhr3yZAWcjb3Raw6rsNJQfxkLP9r87DV+khwW0HBbST mLcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=KpojcveWsUInnKXyOKNVpihGmwYjyxEWqhKdyFLcwmQ=; b=kR+O6T+2OgGrqTf3x4UnfjTlHa0wLy4sgyBrDi6EVeLJrQGMSjpqWXL54DLvrPdX8K tE8JyRLVUFLe6wXzxUg9E6XvAypcDTXLmIJEHYfYRy8iJIVVqihVtN3oIHKG3FVJrwqZ JE5jWv0UMnVIh2oj4oZ8IQtoAkDv04BYAqLJ6r34QYsmd6a2fTY4OPHsxqkWy6gIwmD+ umlcDXLYKo0wHgcsyvFu2DXkMGSiAo1C9Ni2nsejTuqaT5LWZcqoX1rtUbr6Z/tGLxUY w5G2CF0mlY1xlV4n2uPo91136+s6eIo9fX1C5sp8/7aeZ/nz8k7T4KT1ZI07wcid1ghZ n/Ag== ARC-Authentication-Results: i=1; mx.google.com; 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 d67si14175001pgc.62.2019.07.23.14.31.23; Tue, 23 Jul 2019 14:31:40 -0700 (PDT) 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; 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 S2389404AbfGWL22 (ORCPT + 99 others); Tue, 23 Jul 2019 07:28:28 -0400 Received: from muru.com ([72.249.23.125]:55638 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389398AbfGWL20 (ORCPT ); Tue, 23 Jul 2019 07:28:26 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 898EA808C; Tue, 23 Jul 2019 11:28:51 +0000 (UTC) From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Keerthy , Nishanth Menon , Peter Ujfalusi , Roger Quadros , Suman Anna , Tero Kristo , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/8] bus: ti-sysc: Fix using configured sysc mask value Date: Tue, 23 Jul 2019 04:28:07 -0700 Message-Id: <20190723112811.44381-5-tony@atomide.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190723112811.44381-1-tony@atomide.com> References: <20190723112811.44381-1-tony@atomide.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have cases where there are no softreset bits like with am335x lcdc. In that case ti,sysc-mask = <0> needs to be handled properly. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -1692,10 +1692,7 @@ static int sysc_init_sysc_mask(struct sysc *ddata) if (error) return 0; - if (val) - ddata->cfg.sysc_val = val & ddata->cap->sysc_mask; - else - ddata->cfg.sysc_val = ddata->cap->sysc_mask; + ddata->cfg.sysc_val = val & ddata->cap->sysc_mask; return 0; } -- 2.21.0