Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3147409imm; Fri, 20 Jul 2018 10:58:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpflzaA/2o6ix9AMMzofcHwupT22Oey2EZ/qKaelQvtXRhOyH3vwh3cOU7iINNEcmgaGFCme X-Received: by 2002:a63:3c4a:: with SMTP id i10-v6mr2949885pgn.415.1532109483671; Fri, 20 Jul 2018 10:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532109483; cv=none; d=google.com; s=arc-20160816; b=ewx6OAAp7IIoFN9p+3ToRIy7fddVZO2Ry3nBsmu+keKphj+o2KoHzdL51CSEeLiv29 c9saUiZGU1rC7U+Tm+AgN8oSztQAZR6vVNwSvCd1eojieCYTq5lT7x/gNGB3cRoBy7ii 7MTIfbFdjVGyDwHKeiyelJzufOBWSbPD+lCuHXM+EENvA4IOHGcWY1W8qAFv0KY2Bt/M ci2pYAAeAGB68ANHg3PZhcFZRTnZakguU0/Vfqr9e67j2t8B5ukiyJWXuKMGu9GHxjG5 Jos39rMXjXp6c4II61xSaRIW1rM7PGo6D4WnZOZjAmcS6FrsmUzAG/pITxg1Q1T4HHlW 1L3A== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Psgn7FKoFGrtQZQ6Ijpq8PkNv74rzZlWBmpuohue/qg=; b=qklXFaHHTGM9MYxMMFbORqNdzXf63xYzyYpP05PDjAfrvHpKTlg7e78qv/k+BujBZr CtK4+DY5Go4W7RXJsNpPKA8cbWzGd2ZGmSPx0GRhbrq5wTI7b7hjoHjaxQ/8Gahd2pJT kKfs7/+6QjuWpj9xZ+RNMuPuIsemRhUIWoJ+qV64jtSs6h2w9RYuleulcfh4IgpbehNH /RVZA3Kl9xJqPl+cqYzR54HuloCH0QAVBWAc0Pxm/NrejfPz3dZYBp1Sx409semlmry7 WRKR/zVh+Ldc8yzHCb8FSpYD9zC2EDQf6kGH/GKEMVXjEfp7ejZj/yicr3nbHNwlm2Hf Hd2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J8On4HoH; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n38-v6si2261947pgb.536.2018.07.20.10.57.48; Fri, 20 Jul 2018 10:58:03 -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=@gmail.com header.s=20161025 header.b=J8On4HoH; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388288AbeGTSpy (ORCPT + 99 others); Fri, 20 Jul 2018 14:45:54 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:37193 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387950AbeGTSpx (ORCPT ); Fri, 20 Jul 2018 14:45:53 -0400 Received: by mail-lf1-f66.google.com with SMTP id j8-v6so2354528lfb.4; Fri, 20 Jul 2018 10:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Psgn7FKoFGrtQZQ6Ijpq8PkNv74rzZlWBmpuohue/qg=; b=J8On4HoHYFrYntkev9Y2Nmna+wG+JScr8oLvm/ISN0jmvYksissT/yAmSNtltUxjjN e+AowKvQ8ysNh6s0w5YqZTGBvaQAALluVEG5WrwBoR05ebOAdumSRA0aZviKjUHSDJ4d 7DimjoN+b7PIqPkRHWu8T7UHcayvv3uLL3mrPLV49Z8Y+ka/bNJYLjGjdtizn9tQAhxK O/3NW4+46j3hG+/lclQ9112ZtPRMrFudO3JUK4/2zIbW1+co/YG2XQGd9tKDcL2d1Vb7 oYtoDZ/UlbNpm7fk9qk6jRluvQ5nLwW9FnqtYVa+2rQ5SYlNp5PjiUByJPKhi3A76mvB FoDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Psgn7FKoFGrtQZQ6Ijpq8PkNv74rzZlWBmpuohue/qg=; b=JVt1OUlNiHa3HgbYNcFUf/cvu37I/h+JqPu3SzDmA859SmBFXooxfKEY4k7zaG0vyx utitWsxTvSAtsWcjl/l17rImWnta/twKpk+bwXWXkKFZZH3jkf1EogsCsFT/lzaVGfkA MezzvCCLjw0w1cSmrQi+9mv0uIkuCCFfJgJyRDOe5gn4NdlAb6TVklL3Oe1ks0PtpgiE aLjK8azRM4jATh0Dyhi4sR2YFVV9YUO0z66tslPQKOYhBH5Pq7Np/2sNpohma/2W54fD iJmKrH0gJvn/HNvpRiTGmOnXWlxjoLx3c1XZ7rnExLIlDjGd1qErxrka23YPM6yCuFBF Zc7A== X-Gm-Message-State: AOUpUlE6XqUWvNrVMmTPVJ87x3b8LQIn/KH47VUPb663JtBhUTUIZisL mILhjlEkkKmh+Mu83BUBkg8= X-Received: by 2002:a19:5d54:: with SMTP id p20-v6mr1908342lfj.143.1532109390614; Fri, 20 Jul 2018 10:56:30 -0700 (PDT) Received: from z50.localnet ([31.0.82.186]) by smtp.gmail.com with ESMTPSA id p65-v6sm455730lja.44.2018.07.20.10.56.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jul 2018 10:56:29 -0700 (PDT) From: Janusz Krzysztofik To: Boris Brezillon Cc: Miquel Raynal , Tony Lindgren , Aaro Koskinen , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Linus Walleij , Richard Weinberger , David Woodhouse , Brian Norris , Marek Vasut , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Artem Bityutskiy Subject: Re: [RFC PATCH 1/8] mtd: rawnand: ams-delta: Use private structure Date: Fri, 20 Jul 2018 19:57:12 +0200 Message-ID: <1763213.HC3d3VW7aF@z50> In-Reply-To: <20180719081728.46eb7ab5@bbrezillon> References: <20180718235710.18242-1-jmkrzyszt@gmail.com> <20180718235710.18242-2-jmkrzyszt@gmail.com> <20180719081728.46eb7ab5@bbrezillon> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, July 19, 2018 8:17:28 AM CEST Boris Brezillon wrote: > On Thu, 19 Jul 2018 01:57:03 +0200 > Janusz Krzysztofik wrote: > > > Introduce a driver private structure and allocate it on device probe. > > Use it for storing nand_chip structure, GPIO descriptors prevoiusly > > stored in static variables as well as io_base pointer previously passed > > as nand controller data or platform driver data. > > That's a good thing. Thanks for doing that. > > > Subsequent patches > > may populate the structure with more members as needed. > > > > While at it, fix missing mtd->dev.parent and drop useless mtd->owner. > > I'd prefer to have it done in a separate patch if you don't mind. No problem, I'll split it. Thanks, Janusz