Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1686913imm; Tue, 10 Jul 2018 06:19:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpddbwh1f+RZQgmSkslyTgAKe7HFkc98BSSTXSO1/L1zLI1ZtzzYTmjXxj830baWo79/Qkt8 X-Received: by 2002:a17:902:8ec9:: with SMTP id x9-v6mr24026141plo.1.1531228799414; Tue, 10 Jul 2018 06:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531228799; cv=none; d=google.com; s=arc-20160816; b=SpfSqnMD5yzFJrWczG/+32NY7UuWkUv2gqAqpbmOfhSnXNE2izWylwvv48+jWfuEbL EfWzsKsQ8eQm0z8smRftOAmlKSm35zgdqEAPHnI379TeDjEt1EXVzJHsmp56CHLBxtEG 32LkaUzdpqmjF8YwfpLcUNkHlnZkF38xq6hhfHvmy67Fe2OG63Q6FDGTM+LNBK1+Q24f XXy9XBXwyt7PDu1BggusT/OPw9XkjCGwfxlOoZOyRJ2w7fx5vKN6P0pKp/Jcd/sfZWPA P6APUcaBl6WZSMGJAmtNVKAyf0h4oX/zD7FkQsZMfk9DBB8RgXyxrLeyLmhS93I15IWa GiDw== 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=UIOz9s/aXMMmz7qc2REfWZVXKNo01EPqkLLDw2WjpP4=; b=bNY9asEFAMGm8BYd0Duj+Q+XK/F6bNnzjK/KVclu3jkpOLR/KKxVdPWDgLGVY/78q5 m83ZR65GrKvBfiOoOktvsFnRAX081UgeoHCEPaWjOhQ1UwBCyLv97SaoeoHLF2Z9U1JJ r0q9KuHcokSDZmX4rNOy24M4aqqLchHV7rStFY3a/iFT7V1tDRsEFTXLcY6g1/aj6PU6 hGLKkkC9HuWTzxVO3wfJ0s2ilfJ7Y32vZnte4wiBsZEhRvlH5nyCr2UdlANBy9m297na z2ohr3YJJGz0qz0XWzOY2K+vw+Cgry9neBVaxbRuPpy2kymkJ8OCWaLD6eKo1kIam3KX sa+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=zO3sHbNa; 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 f14-v6si15914106pgr.290.2018.07.10.06.19.42; Tue, 10 Jul 2018 06:19:59 -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=zO3sHbNa; 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 S933330AbeGJNS4 (ORCPT + 99 others); Tue, 10 Jul 2018 09:18:56 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:54084 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754260AbeGJNSy (ORCPT ); Tue, 10 Jul 2018 09:18:54 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id w6ADIUlt002439; Tue, 10 Jul 2018 08:18:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1531228710; bh=UIOz9s/aXMMmz7qc2REfWZVXKNo01EPqkLLDw2WjpP4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=zO3sHbNak+bFnAgC9BcvKn97Ocu7hYHKsQJYLczVz7OIYrAipAuIfh9S/NVmGu5Eu n8TR8uzWzbbcNmbGvAwo5EEztMekYncCkDV3TNnyahyFkWHLgykgsnZ/64CpG9nnU6 zeG3CunItF2gGYqsGxIaJ+X/uz38/I45KDgeEZoo= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w6ADIUeW011618; Tue, 10 Jul 2018 08:18:30 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 10 Jul 2018 08:18:30 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 10 Jul 2018 08:18:29 -0500 Received: from [172.24.190.215] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w6ADIPcb031164; Tue, 10 Jul 2018 08:18:26 -0500 Subject: Re: [PATCH v5 4/6] bus: ti-sysc: Add support for software reset To: Tony Lindgren CC: , , , , , , , , , , References: <20180709164841.14182-1-faiz_abbas@ti.com> <20180709164841.14182-5-faiz_abbas@ti.com> <20180710114248.GI99251@atomide.com> From: Faiz Abbas Message-ID: <0ece4ef9-1306-d36a-acff-6ee4b98337c8@ti.com> Date: Tue, 10 Jul 2018 18:50:14 +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: <20180710114248.GI99251@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 Tony, On Tuesday 10 July 2018 05:12 PM, Tony Lindgren wrote: > Hi, > > * Faiz Abbas [180709 16:50]: >> Add support for the software reset of a target interconnect >> module using its sysconfig and sysstatus registers. > ... >> --- a/drivers/bus/ti-sysc.c >> +++ b/drivers/bus/ti-sysc.c > ... >> +static int sysc_reset(struct sysc *ddata) >> +{ >> + int offset = ddata->offsets[SYSC_SYSCONFIG]; >> + int val = sysc_read(ddata, offset); > > Testing with omap4 sysc dts data I noticed we already > have modules where there is only rev register and no > SYSC_SYSCONFIG. So not using legacy mode. The > above offset with -ENODEV value will not work :) > > I added some more checks and moved them to the reset > function. Great. Thanks for the fix. Thanks, Faiz