Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1730257imm; Fri, 6 Jul 2018 05:36:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfgnXoaGozfO1L3EnK+NXcRgjaXLzWQcCzojUETAfgET+OyCjf+TMDXREixYPjAoOq0yyu0 X-Received: by 2002:a17:902:7295:: with SMTP id d21-v6mr10047815pll.221.1530880573951; Fri, 06 Jul 2018 05:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530880573; cv=none; d=google.com; s=arc-20160816; b=It3FR0igmd9zIzqW3XKcmSZYXG/LdZRlN4t71GGM6Oc4boLKYAr3EmjmRpkBcUt5NY 5y4gCpL7AjtJOErT2eawnY97GTS066I7GTSUnC3EEeZ2j9pfGKGijGSmB4aOz/aVirad Kl6UlkkE/LGCXHGz5+ZD0WeHvkvuHUIIx9dmBkhXVyTb6LnWnoAc9Gm/z+okKnERJjO1 KMTr/txX01RvWN/jEp7uM5ge5uUOxp4qQmPTc3TaQIhZQRk/C7AJmKbeiyUNJKyNP+Ia lYP7I1/48lKhcHYOvb9YApOxHLeQApuA9qRS9/lekrAJVDNd/TphAp26lGIFWlHP2eQr dYjQ== 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=Virzxj+LrQyTrEASzSq7FpJFNgCU1py7QxKAgEbqFzs=; b=d36q2jibhAhLIV2qI5jZ4vEejUd2qB0QXJk9aa6rbFPc3TDctzu2qmS5jFyQ9P6RuC //tqylsXEWICGBqoKcTAQmjSUYDKTWVBrDuGwRhOrQMyEMJxUfZgv8fkuhXmCZbiNn32 0IE9p6eULB+OAXugZbkGWw7wcASA8gW351V7II1wMBE3S6i6qibVi9kqH+v+n5Uvm+/W 4M/7mdQJusMkJMN+cnpUVRc3jd7fPTcp+Gz083lh/kTo2vSGVExQgdeSa0hboCAjZ2fm 3Q6jxekMy72Sp+Pd9YAIgmced9mwvDccYyvNPdj26XQF6CesWKCfqzz2fpni/NoUDgMZ Vdaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ilIi5uMl; 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 31-v6si7808826pli.45.2018.07.06.05.35.58; Fri, 06 Jul 2018 05:36:13 -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=ilIi5uMl; 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 S933036AbeGFMdu (ORCPT + 99 others); Fri, 6 Jul 2018 08:33:50 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:33532 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932648AbeGFMdr (ORCPT ); Fri, 6 Jul 2018 08:33:47 -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 w66CXQGr017730; Fri, 6 Jul 2018 07:33:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1530880406; bh=Virzxj+LrQyTrEASzSq7FpJFNgCU1py7QxKAgEbqFzs=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=ilIi5uMlKpEVE5cpFfn1k8pErgqd7GKOy+G4Y7G60RmbpmXN7D5+G0gAOaY9kCQCo 7+vE3C5IU73CL9xgmT2bIuk/ALtcdEsXlwPXGKi6Yi2DQ032VToeC+qj88NDe9uj0T ZZ2tt0TVKCpWILlSrZQKYSJqhsLXro4sQFNMvekA= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w66CXQTm017358; Fri, 6 Jul 2018 07:33:26 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE104.ent.ti.com (10.64.6.25) 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 07:33:25 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE113.ent.ti.com (10.64.6.34) 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 07:33:26 -0500 Received: from [172.24.190.215] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w66CXM0g030177; Fri, 6 Jul 2018 07:33:23 -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> <20180706103541.GC112168@atomide.com> From: Faiz Abbas Message-ID: <46b0d881-e6ba-f314-e995-2848ab9fc429@ti.com> Date: Fri, 6 Jul 2018 18:05:15 +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: <20180706103541.GC112168@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 Friday 06 July 2018 04:05 PM, Tony Lindgren wrote: > * Faiz Abbas [180706 10:05]: >> 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. > > It can but we currently don't have anything similar to > srst_udelay like we have in _ocp_softreset(). And we don't > currently have suport for sysc reset done bit. > > So we want to warn and return error except in the known > working case for now. > Ok. Thanks, Faiz