Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp391626pxk; Fri, 11 Sep 2020 09:39:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/616Yybp5hpRMsETTvrWkzk71z0Ky8KBVGgbks/qT1tt6TTNbEDyvOotw0ZLTuLXxnNtW X-Received: by 2002:a17:906:6d4c:: with SMTP id a12mr2775606ejt.64.1599842370378; Fri, 11 Sep 2020 09:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599842370; cv=none; d=google.com; s=arc-20160816; b=fq6bzZKUaWmgaOvhrvLC3oeypXhA+LQJHpRg7vx72h65Z2/hQc5BE0xR+ZBRHnWvs5 +2KWPEOx8myzDp77pJVfAz4dQUnxGpgFzbwaBhkgNaRLPPO+aqI53I9gSNJFXrxjwbsr jiw/qRwgmdz+/CLiuRg9HRYP5qOdaQM+cqNbUjoraMz7EemH8pwbZ+AaHbO74ZNTwuDV EMFvQzfR5pVTjG5ZaDED04aQjLTGjAtQlDLfGaQAZ73AUs6qCvm4Fbprglyg9+WyGKwh le6ZTxJ23qqBzktdDEcEEi9AJOSeJQ5L4eNtCYC0MRDltcu96QC2UbsNlD8ylmMVZnDZ 6bbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=tphI08cJOX2Ntq3urITFOARBFnsUOsF9qpQGdzAw1vI=; b=kNHPrTbim268Cco3ofuC4SeuGqlK18q5fmH9HwXw9t3syr8hSt9hdPVoYc+apQXFJH rhhjubxlCapHviHioVoMjpJRt3ufblBTQ2OsPt7jkPL9fc9ur9YGxhmcUnE4jwIblSzP a1Jyl1vRNfOE7IEelWM2vNAkg8V7qu0QF2Firsf2nYAoCRA33rnqOyDgP/pLb01IoFVs WhN09LCc798KNMYdfLCFMi7UgF0rnK8hHV4yVjA8dfErFpQIMNLcyAkJ3shro8RDB5Bc 1BcohYrSXXEfBNJFmdBdW1RIOYYc10237GnYrs5dtj6tQMrV5t2AkcLCL4bYjy7aPo7G LPdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si1578975ejs.214.2020.09.11.09.39.05; Fri, 11 Sep 2020 09:39:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726607AbgIKQh7 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 11 Sep 2020 12:37:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbgIKPM6 (ORCPT ); Fri, 11 Sep 2020 11:12:58 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F033C061350 for ; Fri, 11 Sep 2020 07:26:44 -0700 (PDT) Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGk0a-0003r9-8y; Fri, 11 Sep 2020 16:26:36 +0200 Received: from pza by lupine with local (Exim 4.92) (envelope-from ) id 1kGk0Y-0003Gl-Ik; Fri, 11 Sep 2020 16:26:34 +0200 Message-ID: Subject: Re: [v4,3/4] reset-controller: ti: introduce a new reset handler From: Philipp Zabel To: Crystal Guo , Suman Anna Cc: "robh+dt@kernel.org" , "matthias.bgg@gmail.com" , srv_heupstream , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Seiya Wang =?UTF-8?Q?=28=E7=8E=8B=E8=BF=BA=E5=90=9B=29?= , Stanley Chu =?UTF-8?Q?=28=E6=9C=B1=E5=8E=9F=E9=99=9E=29?= , Yingjoe Chen =?UTF-8?Q?=28=E9=99=B3=E8=8B=B1=E6=B4=B2=29?= , Fan Chen =?UTF-8?Q?=28=E9=99=B3=E5=87=A1=29?= , Yong Liang =?UTF-8?Q?=28=E6=A2=81=E5=8B=87=29?= Date: Fri, 11 Sep 2020 16:26:34 +0200 In-Reply-To: <1599804422.14806.27.camel@mhfsdcap03> References: <20200817030324.5690-1-crystal.guo@mediatek.com> <20200817030324.5690-4-crystal.guo@mediatek.com> <3a5decee-5f31-e27d-a120-1f835241a87c@ti.com> <1599620279.14806.18.camel@mhfsdcap03> <096362e9-dee8-4e7a-2518-47328068c2fd@ti.com> <1599792140.14806.22.camel@mhfsdcap03> <9d72aaef-49fe-ebb6-215d-05ad3ab27af4@ti.com> <1599804422.14806.27.camel@mhfsdcap03> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Crystal, On Fri, 2020-09-11 at 14:07 +0800, Crystal Guo wrote: [...] > Should I add the SoC-specific data as follows? > This may also modify the ti original code, is it OK? > > + data->reset_data = of_device_get_match_data(&pdev->dev); > + > + list = of_get_property(np, data->reset_data->reset_bits, &size); > > +static const struct common_reset_data ti_reset_data = { > + .reset_op_available = false, > + .reset_bits = "ti, reset-bits", ^ That space doesn't belong there. > +}; > + > +static const struct common_reset_data mediatek_reset_data = { > + .reset_op_available = true, > + .reset_bits = "mediatek, reset-bits", > +}; I understand Robs comments as meaning "ti,reset-bits" should have been called "reset-bits" in the first place, and you shouldn't repeat adding the vendor prefix, as that is implied by the compatible. So this should probably be just "reset-bits". Otherwise this looks like it should work. regards Philipp