Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1051854imm; Tue, 3 Jul 2018 04:49:41 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI47oqDC7oo1HnbfVHnBNxhccCBbPOnZKMTK5E+W5dyKCkc/rohRlYkooM6G0e5Lb+qHm5q X-Received: by 2002:a63:8442:: with SMTP id k63-v6mr25477522pgd.309.1530618581054; Tue, 03 Jul 2018 04:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530618581; cv=none; d=google.com; s=arc-20160816; b=iZp+XgfVMEj8vOAfsGow7gVj5v2OAl2Y8PaYqZ2wywIjy7ui6v0TXHZLwN9S1drQea OR9fTCj8MX0OPq4pbc+htZaEusrpC5JrctuAdDLLDHUdgkYLCuuQtRWa56gLh4Xiw1oX VTmVfiqX3jiFAhU8OSRPYL7gIWx/u55P71oPXWBnoavvAZTVOXbvx/0tff4Ypojvz1yy +7ZK+GP8IHHF1g/x88qIogHXCsBLxJxwsT97TDI+m3ZFG5YgH6fhLsImQ2b6w/Jf+lAz 9MrTO6HuUDSp6kyRsBxEgUtc5OAQVkUIIpyF+BnaHqK96dgCW5vJGGjvhvphapEqXuoR RS+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=N0H+5Cnux2S7B9hfOa5H91RvHRE0YC/gGCCeoabzBfQ=; b=q6Yfipb1VczDgugUgZhxvnhrgy9BAGxpIzx9D/mUQsYWLqtC56pOcJ/1/2dhFAWypV z8gsBjKQJ3jKfDB40uxy6i6d1W0wMQRx6X7RyTiMT60Zj+gz0jX0prf0c79GE9rTDxZe tarASuReoELsadiPbuBzlI7T1zU3gxGbSWy/XXqKYRDLpdSrELwF6zH0oALm36DOpjOK H8BS/vtXrP2QrzHKL9uka6ONzI3+8ai5Ldtl7LNlRZ7jo+lgeAx0+NaM4d7jgCzcguVJ t7dqwuWb2wk2Vt6PF0LwXcKe4Q3Hj1tXgvLvvq80g58W+567l+I0LyAwLPSTHIPPHQVP wATQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="BvGU7w1/"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k14-v6si935506pls.477.2018.07.03.04.49.26; Tue, 03 Jul 2018 04:49:41 -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=fail header.i=@gmail.com header.s=20161025 header.b="BvGU7w1/"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752724AbeGCLrQ (ORCPT + 99 others); Tue, 3 Jul 2018 07:47:16 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46065 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752251AbeGCLrO (ORCPT ); Tue, 3 Jul 2018 07:47:14 -0400 Received: by mail-lj1-f195.google.com with SMTP id q5-v6so1280973ljh.12 for ; Tue, 03 Jul 2018 04:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=N0H+5Cnux2S7B9hfOa5H91RvHRE0YC/gGCCeoabzBfQ=; b=BvGU7w1//5IsinDXiqh16H97UxFvsFXvJHKdI9prWC6nC9B1vBc/jkcaub70fGME4r s3iwsAnD5SQ5aL978NzI9K9XTZcbeT5ERy8W0t+3sAI04ynl8kRBrBiRW0GUH3qQIJRt s4L2kcDZxMJmNfPvlSUu/TyU27XtY+14itvyHAg2aQOZFwaHih+KFapye70JgIHuxGXk VDsZ9FTgskWrm/RhQ/K/QdVBNmiMs/CJZ/zv0IWEjl+orZgCcNGVxT/5BcdsflONnMj/ XXD/qZ0TBLKuaIFSn45I6nX2iDu3dYZkoJm9DXSsOe3QQGeconiD/XulsOMeGO0r7NJS DWXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=N0H+5Cnux2S7B9hfOa5H91RvHRE0YC/gGCCeoabzBfQ=; b=WK7/i+hpOmrrnCBdtl9fWb4opEXs5SRt0fFjE6Up5S+snVhQ+XgMrf/tGGz+etBVzO Xzhp0ox64W3y5cd+fdKCFtlqWIAcEWRvndbW6iuAmX57cS3mY5cijsVgZxZSkP6qF7m/ HjsU7NT7N0VqsH/TFj98Iw8oJ5mcTjZdWdP6ORD+CS/N14rAeyEMzXgiW1hLABYl+egF pE5AZzUfFZzKqWrxaa31Chn0FP54iig4qbpEJdgTugGpXu4fRKxRc8O0rteI7EjUNCEU P+VfdWRq7tKTKCkbVuuEYcoA69CvcvS03zZIxWklzsR4yUm02UXwW4Pe40ytKJ16DHmM I8xA== X-Gm-Message-State: APt69E1I7jASdQ/NEa924tvtB7MIte51DreJ39KoBXgWI/RFB62QM5YQ y656/8R/cR0LRAnFmhbY75k= X-Received: by 2002:a2e:6a04:: with SMTP id f4-v6mr1649709ljc.109.1530618432399; Tue, 03 Jul 2018 04:47:12 -0700 (PDT) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id o128-v6sm216377lfo.69.2018.07.03.04.47.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jul 2018 04:47:11 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1faJlv-0008AF-Rl; Tue, 03 Jul 2018 13:47:04 +0200 Date: Tue, 3 Jul 2018 13:47:03 +0200 From: Johan Hovold To: Vladimir Zapolskiy Cc: Johan Hovold , Greg Kroah-Hartman , Arnd Bergmann , Alexandre Belloni , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] misc: sram: enable clock before registering regions Message-ID: <20180703114703.GO9802@localhost> References: <20180703100548.30214-1-johan@kernel.org> <20180703100548.30214-2-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 03, 2018 at 01:23:30PM +0300, Vladimir Zapolskiy wrote: > Hi Johan, > > On 07/03/2018 01:05 PM, Johan Hovold wrote: > > Make sure to enable the clock before registering regions and exporting > > partitions to user space at which point we must be prepared for I/O. > > > > Fixes: ee895ccdf776 ("misc: sram: fix enabled clock leak on error path") > > Cc: Vladimir Zapolskiy > > Signed-off-by: Johan Hovold > > thank you for the change, however please note that the identified commit > for the fix is incorrect one apparently. > > In my opinion the proper tag contents would be > > Fixes: b4c3fcb3c71f ("misc: sram: extend usage of reserved partitions") > > I hope you agree to it, also I would suggest to swap the changes in > the series. No, I think I used the right commit in the Fixes tag as that was the commit which moved the clock enable to after the memory-region registration (at which point the memory could potentially be accessed). Johan