Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3705344imm; Sun, 10 Jun 2018 23:46:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJAtEy1zCxc8IR5oRpyHqb3U6y0u+v9InEFb9EwStAtPOZxmjXiilhvPyKzOkBw7bS2q2Hh X-Received: by 2002:a17:902:a416:: with SMTP id p22-v6mr17098834plq.228.1528699611513; Sun, 10 Jun 2018 23:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528699611; cv=none; d=google.com; s=arc-20160816; b=0wsOD4x2n6YmsH3DOYZHsAaNmaHBA7t1FYbPthTUczzdcxb1k6Y/WbAkoRDBTC0CHK rZwiaAvDDFo3cJ9QEFnSIrPMPxIf489HZzsD+ot2cgHpwzBrnTrRJVAZnNlDUQ5K5HdT uDkTvNUAB34e4aq4fkX0D/2Jz7Xzhfacl1uRY9L4VnjZLdWQc/xcMpzwsrJ6/h5riTXg CSiKxZA3w8Sj9XKrfIalK0qcRjauQiu8QxY7noeKkk0KFxFSP9wM8FORBZW4XIRuTXs8 xDUlt9+fW++8aBsh12KedpR7NLBpan5y83Z8UJslzvhPmaDIttEV5VhakSBGWr73WmVT br1Q== 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=rmM8FIsoOqMYX9eAs1e9A5xt38/N4GcVQNl9NWSst4I=; b=Rv0IgEgkiVEJETu6nzrgEu9I+u6+ys6SeHTrpBLrUnRG7N26nDj1WbkoQtC1CxDE16 msYIXo3N0T1A2C6zOSW8tfsegJUHnYgCTue8bEs2ZkBKAhZRUBG82PlriPTk03siyQUS zqdflF94qj+LNCRz7aTRL9ZijKkpckHTQnXp0XxByUWB2I/5ooWE+pMZsV9pU6d5vo1Z 9AwbrX1IRa1pXug5zOr4OZT9h0FjlShtMGWEqm4XyfNFHqVInxy0qfgiYWubadnffegu 1rQ+oMfWr41Wkoy9c2GbphFGPih6k3/mNv53fgoU0Hh1HpQF0UXXf9xflo8z5Wnrpc13 fs9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HBiy+2RU; 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 r3-v6si50178679pgf.621.2018.06.10.23.46.37; Sun, 10 Jun 2018 23:46:51 -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=HBiy+2RU; 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 S1754063AbeFKGqM (ORCPT + 99 others); Mon, 11 Jun 2018 02:46:12 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:38236 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753974AbeFKGqK (ORCPT ); Mon, 11 Jun 2018 02:46:10 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w5B6jXb7018436; Mon, 11 Jun 2018 01:45:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1528699533; bh=rmM8FIsoOqMYX9eAs1e9A5xt38/N4GcVQNl9NWSst4I=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=HBiy+2RUfG1qQUWRPvTpIrebn6lNzNFE0Ca0d4H3PtQkHpvO14w4zpIr8jCJVRCrx T3jd77K5cZDeP4RkfOoKbkxoql7GSVJtrVBA8egHyyjkruu2xiabzpFsEmSslQqBw6 +PdwxTqcLyQoC/tPQNrv5DuPhF2cO8RPvMpQ+NPA= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5B6jXuL022752; Mon, 11 Jun 2018 01:45:33 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 11 Jun 2018 01:45:33 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) 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; Mon, 11 Jun 2018 01:45:33 -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 w5B6jTRh007415; Mon, 11 Jun 2018 01:45:30 -0500 Subject: Re: [PATCH v3 4/6] bus: ti-sysc: Add support for software reset To: Tony Lindgren CC: , , , , , , , , , References: <20180606060826.14671-1-faiz_abbas@ti.com> <20180606060826.14671-5-faiz_abbas@ti.com> <20180607073530.GH5738@atomide.com> <20180608062158.GI5738@atomide.com> <20180611060957.GN5738@atomide.com> <20180611062904.GO5738@atomide.com> From: Faiz Abbas Message-ID: <89d55b0b-fe9e-793b-2694-25755ac2bc15@ti.com> Date: Mon, 11 Jun 2018 12:17:10 +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: <20180611062904.GO5738@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 Monday 11 June 2018 11:59 AM, Tony Lindgren wrote: > * Faiz Abbas [180611 06:28]: >> Great. I thought I completely misunderstood you. But I don't see what >> adding another function will accomplish. A QUIRK flag used in the same >> function would work well enough> > Fine with me as long as the function stays simple for both > syss and sysc reset. > In general a reset status bit being in sysstatus is the norm and it being in sysconfig should be the "quirk" for which a flag needs to be added. What do you think? As an aside, naming bitshifts by the name of the platform they were originally added in seems weird. There should be some generic mask saying "soft reset is the 0th bit". Currently I am using SYSC_OMAP4_SOFTRESET for a dra76x module. I guess it depends on how many different sysconfig types we have. Thanks, Faiz