Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1597371imm; Fri, 6 Jul 2018 03:04:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcmt+OGzKbRcvMFewUwD0SxlmCO1YjG+zC+/b9PA9hOZcjT9uKW43yBi0JDoMGSS/dZcwl/ X-Received: by 2002:a17:902:28c8:: with SMTP id f66-v6mr9834810plb.60.1530871494167; Fri, 06 Jul 2018 03:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530871494; cv=none; d=google.com; s=arc-20160816; b=dsJmo/aKViks3cvx6OMV1QwqTqZ9w/yjwJT6JMpsWmnxUEk6Oa52YbMgD+i4vxTd// 2Gih9o9Cq4AA4G8vfToruQEHokKKXTjQwwc1PW9uQkEidi8Hixxxqmk30NKUai4bcECw XH/Z4Kxh8Z+OoF8LBox9SvHC4fxQK2X/HlDUGPxweU2LpHJZw7sIhpxzu+5E2oUhow4n k/Gzz0AAs0HRLSk9ls1nI2An3uTJvQBIAEDeLejFVp16OfuO+621zRefJ5skFeyyf75y czscRaUx+kjVL3iF0L7aOuMbR0fJfH8jrzepdU2UEEoVCjdZvA3lqQBr9xKGXNkzDe0Y Knww== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=IBeuIYaOQyZaPIY/EY7u6tLtSbjMhl5xTYxTfEZFhzo=; b=lkaxrKpQenT/KROgVw+jbvY61sK9hqswLYADyuBeacuHdq3Xmjd8/DyiXjs7Vt9W4S 3sgR6bbB4C4NhZnPq3mCsawEmhBsF4bpnou5oYk0F6tDWoT6EFov6w5J2TzZmqsEJG8c J996Zb7rGeutpWpvkPlbTjG/XI3GbQqktNJABHtKeSUk/lA37YbDQDuBd3Mw41YVGQil JET/yMRe6fDHZu29xIH3FIbz0KDioNhpuvSfTlAv4aFnL1m8uLbVihLP8mrbK8VdPa/+ 5In/u+ArtzgvHB54NAFVnuMmgI30So+sEBScIqM5TQViyRHuOzRUTWnlRFQwYqAYGwUe fHCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZMRfTFVI; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4-v6si7571207pgd.657.2018.07.06.03.04.39; Fri, 06 Jul 2018 03:04:54 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZMRfTFVI; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753598AbeGFKDK (ORCPT + 99 others); Fri, 6 Jul 2018 06:03:10 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:53804 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751517AbeGFKDH (ORCPT ); Fri, 6 Jul 2018 06:03:07 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id w66A2gDq125003; Fri, 6 Jul 2018 05:02:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1530871362; bh=IBeuIYaOQyZaPIY/EY7u6tLtSbjMhl5xTYxTfEZFhzo=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=ZMRfTFVI+D999v7g3UArDU9INiwxQfY/Ybglur7TnHsQ/nG2qGp6tqOw0kMo6NprQ C8hxmlMfjR/8eS7G4K1Sy3W2ytmFW6mSVjWRSoyxPIOYNZ5JoAtQRG9KQXE9FXM3Q2 bw6L/VvaaqZjC7EiSx983xaeaFGEs/2mbCz/31Ts= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w66A2f7L015980; Fri, 6 Jul 2018 05:02:41 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 6 Jul 2018 05:02:41 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 6 Jul 2018 05:02:41 -0500 Received: from [172.24.190.215] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w66A2bWx001208; Fri, 6 Jul 2018 05:02:38 -0500 Subject: Re: [PATCH v4 4/6] bus: ti-sysc: Add support for software reset To: Tony Lindgren CC: , , , , , , , , , References: <20180705142319.19583-1-faiz_abbas@ti.com> <20180705142319.19583-5-faiz_abbas@ti.com> <20180705154758.GA112168@atomide.com> From: Faiz Abbas Message-ID: Date: Fri, 6 Jul 2018 15:34:31 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180705154758.GA112168@atomide.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thursday 05 July 2018 09:17 PM, Tony Lindgren wrote: > * Faiz Abbas [180705 14:24]: >> +static int sysc_reset(struct sysc *ddata) >> +{ >> + int offset = ddata->offsets[SYSC_SYSCONFIG]; >> + int val = sysc_read(ddata, offset); > > Can you please just warn and return early for now if no > syss_mask is specified? Otherwise we'll have mysterious > errors if somebody leaves out "ti,hwmods" for module types > we do not yet support reset for. RESET write to sysconfig can still happen even if there's no syss_mask right? Not all modules need to poll on reset status. Thanks, Faiz