]> git.baikalelectronics.ru Git - kernel.git/commitdiff
crypto: ccp - Change mode for detailed CCP init messages
authorGary R Hook <gary.hook@amd.com>
Thu, 9 Feb 2017 21:49:48 +0000 (15:49 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Feb 2017 05:23:34 +0000 (13:23 +0800)
The CCP initialization messages only need to be sent to
syslog in debug mode.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev-v5.c

index 9c6ff8b813d966e86f3aa0e56116fcdb6ecee203..e0dfb6a05c484ee4401e114d148b31cce3b0977e 100644 (file)
@@ -531,7 +531,7 @@ static int ccp_find_lsb_regions(struct ccp_cmd_queue *cmd_q, u64 status)
                status >>= LSB_REGION_WIDTH;
        }
        queues = bitmap_weight(cmd_q->lsbmask, MAX_LSB_CNT);
-       dev_info(cmd_q->ccp->dev, "Queue %d can access %d LSB regions\n",
+       dev_dbg(cmd_q->ccp->dev, "Queue %d can access %d LSB regions\n",
                 cmd_q->id, queues);
 
        return queues ? 0 : -EINVAL;
@@ -573,7 +573,7 @@ static int ccp_find_and_assign_lsb_to_q(struct ccp_device *ccp,
                                         */
                                        cmd_q->lsb = bitno;
                                        bitmap_clear(lsb_pub, bitno, 1);
-                                       dev_info(ccp->dev,
+                                       dev_dbg(ccp->dev,
                                                 "Queue %d gets LSB %d\n",
                                                 i, bitno);
                                        break;
@@ -731,7 +731,6 @@ static int ccp5_init(struct ccp_device *ccp)
                ret = -EIO;
                goto e_pool;
        }
-       dev_notice(dev, "%u command queues available\n", ccp->cmd_q_count);
 
        /* Turn off the queues and disable interrupts until ready */
        for (i = 0; i < ccp->cmd_q_count; i++) {