Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp377116imm; Wed, 17 Oct 2018 01:26:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV62v+TLbu+0ISEgGgQvubl86tgdGQ73hemjG7Bdfkfjy/MxRMCSOOCa4H/yXRExWRGrbm2b2 X-Received: by 2002:a62:9f11:: with SMTP id g17-v6mr25401331pfe.144.1539764810580; Wed, 17 Oct 2018 01:26:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539764810; cv=none; d=google.com; s=arc-20160816; b=HsKVwYyv6beuhg14XeogrGuLtOYyWtfDh9Yk1f6Vi0mXvutITn3C0OeIyd0s0yiPy2 kSIhYQyjpychSQd8XDmr6AWK9A6YAjmoT0RbYEyRCf+f/Cx3EbMR6qsuSXb2dKQGYQk3 8yI5e6/NYueCzfWzuPs4WVJzFRpe8Wda/rbEeD/6ZX+wwZbZZXKISyoNKxMgPuy1q/BH IBwlNpMw9X7919W1ymFm410DoSNZm2ucdz3LW9B0jSzAZV7VPKXsqMDDYssJjfTDPJ9F Yuj/cQduNOQCWCl7XN9Gkh11thHu84uz2iByFRd3aOXPxe6yp1CnbhIKkHibOprJsU+h M3Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=k6zpMeUD1hnXIQt6SveV+FJcEsuK99MaJDdjRb4CZFI=; b=sUm5q2EP75awzu4Ytz7PLn36sNxuEJInnq8tAxm58SsR9QqBrl3ZsC4DOl1vtzow/8 d7KwgkLOaxGaRlDmRWWEQ1UxDYuiVxeBVP8VDl41OCLpuZz2NFaTGBz/bGMEKLv57xLZ LLwHI8Y2S9H6laQ7L2qELQ1ao863Xo9kBbLNGlEpAMfE92DFaK1BrTszImih1a5Rg+/A T9t7lL6lBQ6k+t9XZCNCRRMFo/l+gsNLeUihUxk9z14Zus/2/d1iT+GCDN5rWxYtSaei 8RtvAO0ie1R5PlZlxmGJIj83mFgfSAvtXV0RHdZlnR3ITAXYgoxbAtDy1FEPQjUTUt9B XSzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ojTZ2pH2; 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 w6-v6si17349246pgw.316.2018.10.17.01.26.35; Wed, 17 Oct 2018 01:26:50 -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=ojTZ2pH2; 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 S1727254AbeJQQTW (ORCPT + 99 others); Wed, 17 Oct 2018 12:19:22 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:46001 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727108AbeJQQTW (ORCPT ); Wed, 17 Oct 2018 12:19:22 -0400 Received: by mail-qk1-f195.google.com with SMTP id m8-v6so15928843qka.12; Wed, 17 Oct 2018 01:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k6zpMeUD1hnXIQt6SveV+FJcEsuK99MaJDdjRb4CZFI=; b=ojTZ2pH2ML6I9yaJH65ijm4k+R4pW3L4+GlEvCchmAaO6CD1mfNL8W/eLB7nMY9eEb kVj1dwCSjpBvvdKGxG86PXQxG1RIK8kRkQ/KSjucEghcKKzbv0m6zhV3sVovXPsewuab 0NyLU/99WcdKZL1iKjLp3g5IF4xSMQuYcCW3qrlmOjlTOM1XWX3ghxrwYtGCsU2CpHCK vTY7ulmAQQwKTAWYVWpS2Vph98m6wqbo0ZVl90u9tZbsDBF8zt/7AA28iS2jHI357CJC oWgcKNJPYWsUqIAPx5rGWDl9Y0Cy5hcr+FLL+CLDAB8HJKuJg/POVz2fm/13PEyssfJe Gvsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k6zpMeUD1hnXIQt6SveV+FJcEsuK99MaJDdjRb4CZFI=; b=eZbKYu584baat1dTaAmWqgrcWH5Rb5635yotkQ7kZRhZ1ENxujtJuA9z7p/Qqu+2Ij 6e8TP7fYcrb500hA6Fo76/FGEDxh/QkQaDYAqLH1d2EuH/izOcEI2eSKpYjOkb2pC2sy Lzk+WA9GfOS5L00ZSuW2EgCc8GpbwPztMq+9w1cDUftrOI5kOdqbeOukVIAALDoN1Ocf NgrXG2fYCrN69qqKqNEz4ebYf1nYlcsfCJILH3UnolsufrzejsT4YE22Cev0bBob2184 5jc7oCnxwZBHfvPOagUPf8/CGqKVbY6rWZcoiVN9MZ/Siv0nivr5fTxx4TiqUMzw9Mzu bB9Q== X-Gm-Message-State: ABuFfoiMyYx7GXZFs1FUHo5Tn7G5x1PKF2J7Dsp67Uwj4reEaxSrKqIp xppVEaygrCAJIq9msn3iGPKWD1JUCPRMG2BDHN0= X-Received: by 2002:ae9:c307:: with SMTP id n7-v6mr23577475qkg.70.1539764687865; Wed, 17 Oct 2018 01:24:47 -0700 (PDT) MIME-Version: 1.0 References: <1539755947-27014-1-git-send-email-suganath-prabu.subramani@broadcom.com> <1539755947-27014-4-git-send-email-suganath-prabu.subramani@broadcom.com> In-Reply-To: <1539755947-27014-4-git-send-email-suganath-prabu.subramani@broadcom.com> From: Andy Shevchenko Date: Wed, 17 Oct 2018 11:24:36 +0300 Message-ID: Subject: Re: [v5 3/4] mpt3sas:Fix driver modifying persistent data. To: Suganath Prabu Subramani Cc: Bjorn Helgaas , Lukas Wunner , linux-scsi , linux-pci@vger.kernel.org, Linux Kernel Mailing List , Benjamin Herrenschmidt , ruscur@russell.cc, sbobroff@linux.ibm.com, oohall@gmail.com, Sathya Prakash , Sreekanth Reddy Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 17, 2018 at 8:59 AM Suganath Prabu wrote: > > * If EEDPTagMode field in manufacturing page11 is set, > unset it. This is needed to fix a hardware bug > in SAS3/SAS2 cards, So, skipping EEDPTagMode changes > in Manufacturing page11 for SAS35 controllers. > > * Fix driver modifying NVRAM/persistent data in > Manufacturing page11 along with current copy. Driver should > change only current copy of Manufacturing page11. > - if (ioc->manu_pg11.EEDPTagMode == 0) { > + if ((!ioc->is_gen35_ioc) && (ioc->manu_pg11.EEDPTagMode == 0)) { No need to have parens. -- With Best Regards, Andy Shevchenko